Hi,
I was hoping that you could resolve an issue I have. When I create a dynamic pdf on my pc, an instance of Adobe Acrobat reader is opened with the new pdf and with the name I chose for it in code behind.(my webpage remains open with the variables that I chose for the report; I can even generate a second or third report that opens another instance of Acrobat Reader.) My users, however, are getting their pdfs generated into their browser and it has the name of my webform, which is Webform1.aspx.pdf.
I'm using document.DrawToWeb("customname.pdf"). I'm perplexed as to why this is happening. Any help would be most appreciated. Thanks!!!
Drawing To Adobe Reader for Me But in Browser for Client
Re: Drawing To Adobe Reader for Me But in Browser for Client
Support · Dec 6, 2007When streaming the PDF directly to the browser, the PDF name is always pulled directly from the name of the ASPX page (this is pulled directly from Acrobat or whatever viewer is used). The only way you can specify a specific name to use as the PDF is if you force the user to save the PDF by setting the ForceDownload Boolean to true in the DrawToWeb method. This will prompt the user with the "Open", "Save", "Cancel" dialog box and if they click on save button it will pull the string that you have specified from the DrawToWeb method as the file name. But by default the viewer uses the name of the ASPX page.
As for the PDF opening up on your machine outside of your browser and on your customer’s machine it is opening up inside their browser, this could be for a couple of different reasons. There is a setting in Acrobat where you can specify whether to open the PDF in the browser or not (for me this was in Preferences -> Internet -> Web Browser Options for Acrobat Professional v7). By default this option is selected (meaning the PDF should always open in the browser). The other consideration is that the PDF viewer plug-in (the one that opens the PDF in the browser) on your machine could have gotten corrupt. In this case also you will see the PDF being opened in an actual seperate Acrobat window instead of the PDF browser plug-in. If this is the case a standard uninstall and reinstall of the viewer will usually fix that for you.
Thanks,
ceTe Software Support Team