From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Reports print function default printer behaviour

Just an FYI... Using the NI Reports Print Report.vi without wiring the printer name does not always work as expected at least for Excel. If you do the following with an Excel worksheet:

 

1) Print to "Printer1"

2) Print to "" (default)

 

The second printer operation will print to "Printer1" because it is now set as the 'Active Printer' in the open Excel workbook.

 

The Print Report.vi does not actually write the name of the default printer to the Excel _Print.vi PrintOut method. It passes an empty string, so Excel will print with the current active printer which may or may not be the default printer. 

 

The Print Report.vi documentation should probably be changed to reflect that passing an empty string to the 'printer name (default)' terminal will not print to the default printer in all cases.

0 Kudos
Message 1 of 1
(1,958 Views)