LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I select pages to print from a Word document using the report generation 'print report' vi?

I have researched the knowledge base and found:

Printing A Range of Pages or Number of Copies of a Report Using the Report Generation Toolkit in LabVIEW.

 

This seems to be from a previous version of LV. I am using LV2010. The instructions given do not match up with the current vi. The information did provide a tip and drilling down into  the vi I was able to insert the from/to page numbers at the printout invoke method, however this prevents the print function from working in that it can no longer find the default printer.

 

The error message is:

Error 1015 occurred at NI_ReportGenerationToolkit.lvlib:Word_Print.vi -> NI_Word.lvclass:Print Report.vi ->

error 1015 is: Printer is not responding. Check printer configuration.

 

Any ideas how I can make the modification to print, for example, pages 24 through 29 out of a 32 page word document?

 

Thanks,

Chris

 

0 Kudos
Message 1 of 4
(2,462 Views)

Hello, take a look at this article. Unfortunately the Generate Report Get Data to Modify.vi was remove since RGT 1.1.3 release. That being said, we can try to find a workaround. See "Configuring a Printer Through the Windows Dialog in LabVIEW", open the GetPrinterSettings.vi, at the PrinterSettings property node you can select the from/to page. I hope this helps.

Alejandro C. | National Instruments
0 Kudos
Message 2 of 4
(2,440 Views)

Thanks for the reply.

 

I'm still looking into this and have not yet found the solution.

Is there something in ActiveX controls that could help me? I am not familiar with using that aspect of LabView.

 

Thanks,

Chris

 

0 Kudos
Message 3 of 4
(2,420 Views)

Hih,

 

I am still trying to figure this one out. Is there a way to:

1. Access an open a Word document.

2. Select the print function

3. Fill in the "Print Pages" box with the specific page numbers I need

4. Print the document

 

Can this be done with ActiveX?  I am not familiar with using that feature.

 

Thanks!!

Chris

 

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