LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I print from word in Labview

Solved!
Go to solution

I am trying to do some automated testing for printers and I need to be able to print a specific document in 10 point size in Courier font. So what would probably be easiest is to print directly from Word. Hopefully someone has some suggestions to do this task. I also have the file on a PDF as well but it is only on one specific page within the document. So either print the document on Word, print in 10 point size Courier font through Labview, or print a page from a PDF file. Thanks for any help I can get.

0 Kudos
Message 1 of 6
(3,345 Views)

The Report Generation Toolkit will do it for you.  Create a report, included the Word document that you want, then change the font type for the whole document.

 

print word doc.png

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Message 2 of 6
(3,332 Views)

Do you have the Report Generation Toolkit?  If so, the easiest way to do it is probably use the Word report tools; I think you can even print from there.

 

Otherwise, it's fairly easy to use ActiveX to control Word, including printing.  I think there are more Excel examples than Word, but the approach is similar.

0 Kudos
Message 3 of 6
(3,329 Views)

Thanks for the help unfortunately I only have a trial version of the report generation toolkit from Microsoft. Unless there may be another package out there with the same vi's in it. Thanks again for the help and maybe I can do some searching for the 2 vi's that are not part of the main Labview program.

0 Kudos
Message 4 of 6
(3,311 Views)
Solution
Accepted by topic author ULDennis

Thanks for all the help I figured it out based on what I needed. I found the Easy Text Report vi which you can choose a font and size and tell Labview to print from the default printer or a location. Thanks again for all the help.

 

0 Kudos
Message 5 of 6
(3,305 Views)

Hey ULDennis,

 


There are ways within LabVIEW to do the automated testing you described. I think the best example to get you started is found under the Help menu in LabVIEW. Follow Help->Find Examples->Printing and Publishing Data -> Printing VIs-> Print Control Report. Focus on the event for Print Data: Value Changed.

Patrick H | National Instruments | Software Engineer
0 Kudos
Message 6 of 6
(3,303 Views)