Print Report VI Is Not Using the Correct Printer When Printing HTML Reports

Updated Sep 6, 2018

Reported In

Software

  • LabVIEW 2018

Issue Details

I have an application that uses Print Report VI. However when I wire the name of the printer, it's not sending the report to the correct printer. Even if I change the default printer the report is sent to the incorrect printer.

What can I do?

Solution

  1. Change the default printer, either manually or programmatically using the attached code.
  2. If your default printer is changed by your code but the behavior is the same, then this is an Internet Explorer bug. This can be fixed by adding a registry key.
  3. Follow these steps, and then quit Registry Editor:

    1. Click Start, click Run, type regedit, and then click OK.
    2. Locate and then click the following key in the registry:
      1. HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
    3. On the Edit menu, point to New, and then click String Value.
    4. Type AlwaysUseDefaultPrinter, and then press ENTER.
    5. On the Edit menu, click Modify.
    6. Type yes, and then click OK.

Additional Information

Print Report VI ignores the input and uses the default printer for Internet Explorer.

WAS THIS ARTICLE HELPFUL?

Not Helpful