Welcome! Log In Create A New Profile

Advanced

Windev open document from wan

Posted by DW 
DW
Windev open document from wan
August 13, 2008 01:42AM
I am using Windev 11 in client server mode and would like to open a document stored on the server over a wan. How?

Thanks,
Dennis W
KenKnight
Re: Windev open document from wan
August 13, 2008 04:09AM
Hi Dennis,

Few methods available:

1) Store document in blob of HF. Then you can treat like any other record. You'd point to the record, retrieve the binary info and save it out locally and shellexecute.

2) Use windev to create a soap server which has methods that enable you to retrieve and pass it to your app across the net. This could also be written to allow you save the document back.

3) create a virtual directory (or alias) in your web server that points to document storage on your server. Implement some type of authentication on this folder. Then use windev with HttpRequest() to get your document and store it locally.

#3 will be the easiest implement.


Hope this helps.

Cheers!
Ken
DW
Re: Windev open document from wan
August 15, 2008 11:28AM
Thanks Ken,

I was thinking of trying option 1
1) What command saves a document or file to the db.

2) What Data Type "Sound , Image , Binary"?
if so what sub type "Other Binary" ?

Dennis W
KenKnight
Re: Windev open document from wan
August 17, 2008 06:07AM
Hi Dennis,

To stay completely generic you'll want to use the hMemoBin with the hLinkMemo to place the file in the memo field and hExtractMemo to get it back out.

Pay attention to the destination file of the extract process as you need to consider storing the filename in a separate field in the record for extraction in a generic place on the client computer.

Cheers!
Ken
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: