Solved

Supressing "File Download" dialog box

Posted on 2002-06-19
12
290 Views
Last Modified: 2013-12-18
Hi Experts!

I have a .tif file attached in a document.  I want to download it to the "windows\temp" folder of the web user's machine.  Is it possible to supress the "file download" dialog box to automatically download the file without user intervention?

regards
0
Comment
Question by:cezarF
12 Comments
 
LVL 10

Expert Comment

by:zvonko
ID: 7094818
Yes, it is possible.

Open the Form for such documents containing tiff attachments in Designer.
Go to PostOpen event of this form and switch it from LotusScript to Formula.
Put this formula into PostOpen event of this form:
attachment:=@Subset(@AttachmentNames;-1);
extention:=@LowerCase(@Right(attachment;"."));
@If(extention="tif";@Command([EditDetach];attachment;"C:\\temp\\"+attachment);"")

Tell me how it works for you.

So long,
zvonko

0
 
LVL 10

Expert Comment

by:zvonko
ID: 7094824
Sorry, I overred half of your question :-)

No, absolutely not, never. It is never possible to place a file anywhere on web user's machine.

Sorry.

0
 
LVL 10

Expert Comment

by:zvonko
ID: 7097331
Here a short explanation why this download is possible on Notes client but never possible on web client.

On Notes client there is an ECL, ExecutionControlList allowing or prohibiting access to local disk drive. This ECL allows or prohibits every design signer to do special things.

On web client there is an option to sign scripts but it is so complicated that it is seldom used. And even with signing there are to many open doors for misuse so does the web client SandBox model disallow all actions which could be dangerous.

I suppose you did know all this but hopped to get a trick here to circumvent this barrier :)

0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 14

Author Comment

by:cezarF
ID: 7106420
Thanks for your comments.  I managed to do it using an activeX.  Regards
0
 
LVL 10

Expert Comment

by:zvonko
ID: 7106662
It would be nice from you asking EE Community Support to refund your points and close this question together with your working example :)

The link to post such a refund request is here:
http://www.experts-exchange.com/commspt

Cheers,
zvonko

0
 
LVL 10

Expert Comment

by:zvonko
ID: 7136940
Hello cezarF,

can you provide here this example how do you this dedicated download without user intervention?

0
 
LVL 14

Author Comment

by:cezarF
ID: 7147933
sure... actually i need the file to be downloaded in an activeX application. in my activeX application i used the "URLDownloadToFile" API of the "URLmon".  this wil work only in IE.
0
 
LVL 10

Expert Comment

by:zvonko
ID: 7148363
I used this function in LotusScript in Notes client, but what would be the code in JavaScript and without user intervention?

0
 
LVL 14

Author Comment

by:cezarF
ID: 7150974
i did not use java script. my activeX is coded in VB6.  :)
0
 
LVL 10

Expert Comment

by:zvonko
ID: 7350997
Hello cezarF,

so as conclusion we can say, suppressing download dialog is possible when user accepted once your ActiveX module, right?

Please do not let this question abandoned. Either let it close by CommunitySupport and reward your points, or give me this one with an A+ plus only for being a kind companion :-)

Thanks,
zvonko


0
 
LVL 63

Expert Comment

by:Zvonko
ID: 11250489
cezarF,
No comment has been added to this question in more than 595 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:

RECOMMENDATION: Accept cezarF's answer http:#7147933 and Refund

Any objections should be posted here in the next  4  days. After that time, the question will be closed.

Thanks,
Zvonko
EE Cleanup Volunteer
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 11293625
Closed, points (50) refunded

Netminder
Site Admin
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now