LabVIEW Access Violation Crash When Printing

Updated Nov 20, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW Report Generation Toolkit

Issue Details

I have a LabVIEW application that crashes when it tries to print. For example, in my application I am using the Print.Panel to Printer invoke node to print the front panel of my block diagram. However when this node executes I receive Access Violation 0xC000005 and LabVIEW crashes. 
How can I troubleshoot this? 

Solution

There are many underlying root causes that could cause issues when printing. Follow the troubleshooting steps below to help you narrow down and rectify the issue.
  • Update printer driver. Find information about your printer's driver from your printer manufacturer.
  • Try with a different printer or a different computer. This can help narrow down if this issue is with a specific printer or connection between computer and printer.
  • Verify that your page margins are set to values which your printer will accept. Incorrect page margins can lead to unpredictable results. This information should be available in documentation from your printer's manufacturer.
  • Vary your video settings and check your video driver. Although it is not immediately obvious, your video driver and settings play a role in printing. Some printing problems disappear when you vary your screen resolution (e.g. 640 by 480) or color depth (e.g. 24-bit True Color). It is usually a good idea to check with the manufacturer of your graphics card to see if there is an updated driver available.
  • Try printing to HTML or RTF. You may be able to work around your printing problem by having LabVIEW print to HTML or RTF, and then using a web browser or Microsoft Word to print your document. You can print to these formats using the Print wizard or using the VI Server Print VI to [destination] methods
  • Try printing with a different function. You may try to print through a different programmatic approach or using the report generation toolkit