LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PrintGraphHiRes not working with several Printer drivers

Hello,

We have developped a data analysis application (CVI 5) which uses the PrintGraphHiRes() function from the CVI Toolslib (prthires.fp). We use this function to printout the actual contents of a PlotWaveform graph control on a HP Laserjet 4 or 5. Our customer would like to use any printer which can be installed under Windows, however reported back problems like different fonts sizes or just a blank page when using the application software with other printers.

From the CVI Instruments Help for prthires.fp we know about the problems subject to scaling of fonts but this does not explain why some printers, respectively printer drivers will not work at all.

We are now using CVI 6 but the problem is still t
he same. Are there any known issues on this topic.

Many Thanks
0 Kudos
Message 1 of 2
(2,517 Views)
Hello

Generally, when you have printing issues with specific printers when using the CVI printing functions, it is almost always caused by the specific driver implementation they are using. I know that this may be hard to believe that so many different printer drivers are the cause and not CVI, but the following informatoin explains why.

CVI creates standard Windows GDI instructions for rending text and images on display devices and does not directly interact with the driver, it is up to the driver to be fully compatible with the Windows GDI subsystem standard and properly render all of the instructions. The printing functionality of CVI has remained unchanged for quite some time and has stuck with this method of using GDI only to maintain the highest
level of compatibility with all output devices, but sadly many of the newer driver implementations have forgone GDI compatiblity to optimize their drivers to work best with certain applications. Now, if you think about it, since an older driver often can correctly output the graphics and text without incident (depending on when the printer was originally manufactured there may not be an older driver), it must be a change in the new driver that is causing this to happen, and the printer itself nor CVI is the problem.

Explanation of GDI printing is found at this link

I would recommend using bitmap printing mode (SetPrintAttribute) which is more reliable on different printer drivers.

I hope this explains things.

Bilal Durrani
NI
Bilal Durrani
NI
Message 2 of 2
(2,517 Views)