LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically change filename and path for PDFCreator

Solved!
Go to solution

Hello,

 

I know that creating PDFs is a common question on the forum but I've yet to see someone with the same problem that I am encountering.  I'm following the example at http://decibel.ni.com/content/docs/DOC-4552#comment-12005.  I posted a question on this page but am posting again here for hopes of a faster response.

 

I am able to create a pdf of the test.txt file.  However, I am unable to change the path or filename.  No matter what I select the file is created with the name and path defined in the autosave options of PDFCreator.  Since the file is created, I know that the reference is correct.  It seems that the cOption invoke nodes are not working.  If I turn on autosave in the PDFcreator options, I am prompted with a save as window.  This means that my command to use auto-save (in the config subvi) is not working.  Likely, the autosavedirectory and autosavefilename are also not doing anything.

 

I'm at a loss because everything appears to be correct.  Any thoughts on what could be wrong?   (labview 8.6.1     PDFCreator 0.9)

 

0 Kudos
Message 1 of 4
(10,060 Views)
Solution
Accepted by topic author pjr1121

Hello,

 

Have you tried downloading the latest version of PDF Creator? It looks as though it is at 1.0.1 now. If this is a problem with the ActiveX interface, it may be resolved in the latest version.

 

-Zach

0 Kudos
Message 2 of 4
(10,027 Views)

Hello,

 

Try to select again ActiveX Class using right button of your Mouse. Then browse the clsPDFCreator class of your PDF Creator.

In this way I was able to work fine with the PDFCreator example otherwise I had the same problem you experienced.

 

I use LabVIEW 8.6 and PDFCreator 1.0.1

 

Bye

Golzio

0 Kudos
Message 3 of 4
(9,991 Views)

Updating to 1.0.1 did the trick with no modifications to my code.  I didn't expect the version to be the problem as it came with coding examples for this exact purpose.  Guess it goes to show you shouldn't rule anything out until you try it.

0 Kudos
Message 4 of 4
(9,981 Views)