ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting a Word document to PDF

Hey everybody:

 

The attached VI seems to work okay, but I was wondering if anyone has suggestions for improvements.

 

It's in LabView 2011 with MS Office Report toolkit, using MS Word 2007.

 

It reads in a Word document as a report, attaches a Word macro to the document, executes the macro, then closes the report.

 

The macro just saves the file as a PDF with the same file name +.pdf.

 

I don't know much about Word macro programming, so there may be some room for improvement there.

 

Thanks for your insight.

0 Kudos
Message 1 of 4
(3,069 Views)

Hi,

I think this topic would be usefull. (Search "save pdf" in Labview forum...)

Best regards,

V-F
Message 2 of 4
(3,022 Views)

Excellent! When I saw this question pop up I remembered that very thread but couldn't find it.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 4
(3,004 Views)

I didn't like the previous solutions because they requre third-party software (in some cases, you have to pay for)... and some of them have difficulty because the PDF software requires user input.

 

I like this solution better because (1) it's super-simple (2) doesn't require additional software (3) lets you set the PDF file name programmatically without user input so the whole process is completely automated.

0 Kudos
Message 4 of 4
(2,988 Views)