NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: ianburgess on August 17, 2012, 02:01:28 AM
-
I want to be able to open a generated PDF report as a "file" so the browser gives option of saving or opening, but at present they all open in a new tab in the browser.
By contrast, if I open a URL of a static file (including PDFs) it opens as I want with the option to save or open.
How can I make a genearated PDF report open the way I want?
Thanks
Ian
-
set the "content disposition".
See the File Download example.
-
Ok I see p_web.HeaderDetails.ContentDisposition = 'attachment; filename="'&p_web.GetValue('name')&'"' in the example which is serving a static file. If I want to make a standard report (using Tracker PDF Tools) to download rather than open in the browser, what would I embed where?