<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>21 Jun 2016 20:34:00 Z</lastBuildDate><pubDate>21 Jun 2016 17:13:00 Z</pubDate><description>Hi,&#13;
&#13;
I am displaying my report as PDF to the user, but when they save the PDF they get a strange name 4N4AABaBBdVWRnJTUGFKS1dwAAA.pdf (always different, seems random ?)&#13;
&#13;
This is the code I use to generate the PDF:&#13;
&#13;
sFilename = DateToString(Today,"YYYY-MM-DD") + " " + TimeToString(Now(),"HHMMSS") + " " + ReportName + ".PDF" iDestination(iGenericPDF,sFilename) // Set language of the logged in user (TODO) // Print the report iPrintReport(MyParameters) // Display IF fFileExist(sFilename) THEN FileDisplay(sFilename,"application/pdf") fDelete(sFilename) END&#13;
I read the artikel of Pete H. about setting the name of the PDF for Windev, but it seems that these commands are not available for WebDev.&#13;
&#13;
When I add the extra parameter to FileDisplay, the PDF is directly downloaded with the correct filename, but I want a preview of the PDF in the browser !&#13;
&#13;
Does anybody knows how the name can be set ?&#13;
&#13;
Thank&#13;
Danny</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58238-wb21-how-set-name-pdf-downloaded-user/read.awp</link><title>[WB21] How to set the name of the PDF downloaded by user ?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58238-wb21-how-set-name-pdf-downloaded-user-58246/read.awp</comments><pubDate>21 Jun 2016 20:34:00 Z</pubDate><description>Hi Peter,&#13;
&#13;
This does indeed solve the problem of the filename, But this starts a direct download. I would rather open the PDF …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58238-wb21-how-set-name-pdf-downloaded-user-58246/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58238-wb21-how-set-name-pdf-downloaded-user-58246/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58238-wb21-how-set-name-pdf-downloaded-user/read.awp">[WB21] How to set the name of the PDF downloaded by user ?</source><title>Re: [WB21] How to set the name of the PDF downloaded by user ?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58238-wb21-how-set-name-pdf-downloaded-user-58241/read.awp</comments><pubDate>21 Jun 2016 18:01:00 Z</pubDate><description>Hi Danny,&#13;
&#13;
This should do the trick:&#13;
//Display the PDF file FileDisplay(pPDFFile, "application/pdf",pPDFSaveAs)&#13;
The pPDFFile…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58238-wb21-how-set-name-pdf-downloaded-user-58241/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58238-wb21-how-set-name-pdf-downloaded-user-58241/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58238-wb21-how-set-name-pdf-downloaded-user/read.awp">[WB21] How to set the name of the PDF downloaded by user ?</source><title>Re: [WB21] How to set the name of the PDF downloaded by user ?</title></item></channel></rss>
