I have a somewhat similar situation where I create a pdf printable
version of an on-screen receipt for a web-sale and then send the file
to user when they click on a link or form button. What I do is use the
preprocesshook that Aparajita has put in his "On Web Connection" method
in the Active4D shell. In the preprocesshook I check for a specific
filename in the parameters of the http request and then use the 4d
command "SEND HTML BLOB" to send the file with the appropriate mime
settings. In my case it is "application/pdf" Seems like you could
easily load your document with "DOCUMENT TO BLOB" and then send it to
the user, where they will get the file dialog depending on how there
browser prefs are set, or it will open it in a text editor. In my
case, most browsers simply display the pdf file with their built-in pdf
plugin, or they launch acrobat.
Good luck
Gary
On Friday, July 4, 2003, at 08:00 AM,
[EMAIL PROTECTED] wrote:
I've used other websites where I can download/save a text document with
a normal left click, so I know it's possible!
Thanks,
Jason
------------------------------------------------------------------------
Gary Pedretty /\ [EMAIL PROTECTED]
Systems Manager / \ /\ www.frontierflying.com
Frontier Flying Service, Inc. / /\ \ 907-450-7251 voice
5245 Airport Industrial Road / / \ /\ 907-450-7238 fax
Fairbanks, Alaska 99709 / / America's Original Homeland Security
Serving Alaska's Interior / / "Love your neighbor as
Temperature +55 spring is here. yourself" Matt 22:39
------------------------------------------------------------------------