LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmaticly name the PDF from report generator

Hi,
 
I'm currently developing an application that contains report generation.
Using report generation pallet I was able to make PDFs but the problem is that a dialog box appears asking me to give a name to the PDF.
Since the application will be running all the year generating weekly reports I need to make automatis naming for the PDFs because I don't have all the Time operator to name the file.
 
Thanks in advance
 
Tareq Al-Arja
0 Kudos
Message 1 of 4
(3,332 Views)
I have the same problem. Is it a matter of labview or about the printer configuration (pdf)?
Thanks.
0 Kudos
Message 2 of 4
(3,272 Views)

I'm assuming that the method you are using to create PDF reports is to "print" them to a PDF writer. In this case, it is an issue that resides outside of LabVIEW. LabVIEW simply sends the document to the PDF "printer" and it is actually the PDF Writer that is querying you for the name. Since most printers don't require you to name files that you print, LabVIEW does not provide any way of sending this information programmatically.

If automation of those PDF names is imperative, you might be able to build PDF documents through ActiveX with Adobe and programmatically provide PDF names that way, but from my experience, Adobe does a pretty poor job of documenting their ActiveX functions. However, it may be something worth exploring if the issue is important to you.

Kind Regards,

E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(3,258 Views)

Hi

What pdf printer are you using?

I had a few problems with pdf creator but then I found out that it could generate a filename from the timestamp automatically and all I needed to do was to rename that file after the "printing" had finished.

greetings from the Netherlands
0 Kudos
Message 4 of 4
(3,255 Views)