cancel
Showing results for 
Search instead for 
Did you mean: 

Save pop-up instead of download window while generating PDF.

Former Member
0 Kudos

Hello,

*Is it possible to allow the user to save the generated pdf right away instead of having them download first. (download option opens the PDF in a new window, and firefox 3.06 crashes upon opening the pdf).

One more issue is, can we control the View based on browser. If user opens in firefox, I have to hide button and enable a link to save the PDF (as requested above * ).

Currently I am using this code:


 // Open the resource to save or in new browser
	  IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(res.getUrl(WDFileDownloadBehaviour.AUTO.ordinal()),
	  res.getResourceName()); 

This works fine in IE 6.0.

Thanks

Srinivas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

WDFileDownloadBehaviour.ALLOW_SAVE instead of AUTO should do the job

Answers (0)