The PrintPanel function can print in two different modes: "Bitmap printing enabled" or "Bitmap printing disabled". With "Bitmap printing enabled" the panel is rendered as a bitmap and then sent as a standard .bmp file to the printer to reproduce. With "Bitmap printing disabled" the panel is rendered by sending common GDI graphical rending information that all printers should support if they are designed to work with Windows (unfortunately sometimes they do not).
The recommended way to go is with bitmap printing enabled if you are having image problems and two ways to enable it are as follows:
1) Use the following function call to enable it directly:
SetPrintAttribute (ATTR_BITMAP_PRINTING, 1);
2) Use the following functoin call to enable a CVI printing dialog that
allows you to select bitmap printing via a checkbox:
SetPrintAttribute (ATTR_SYSTEM_PRINT_DIALOG_ONLY, 0);
Have you tried printing with "Bitmap printing enabled"? This is usually the only way to get around the problems with some printer drivers not being able to properly implement the GDI commands created by the PrintPanel function for drawing the image on paper. If all else fails you can try using an older printer driver for your model, because it seems as though they implement GDI better than the newer ones.
Jason F.
Applications Engineer
National Instruments
www.ni.com/ask