How can I Print the Dashed and Dotted Lines on CWGraph? Primary Software: Measurement Studio>>Visual Basic SupportPrimary Software Version: 6.0 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: If I print a Control Image of the CWGraph, all plots have solid line styles and not any dashed or dotted lines. How do I print dashed and dotted lines? Solution: To print out the dashed lines, you will need to first set the LineWidth of the plot to 0. This is required because the Windows drawing API does not render certain types of lines correctly if the width is greater than 0. Then to get the output correctly to the printer, you will need to use the DPI value of the printer and pass that to ControlImageEx. Generally printers have a higher DPI value than the monitor (96 by default), so the image needs to be set up appropriately. So you can try: Picture1.Picture = CWGraph1.ControlImageEx(Printer.PrintQuality, Printer.PrintQuality) Printer.PaintPicture Picture1, 100, 100 As a note: Printer.PrintQuality can also have negative values (-1 for Draft ...-4 for HighQuality), which are dependent on the printer driver. You could use this setting as well to control the print type on the printer. Related Links: Attachments:
Report Date: 04/25/2005 Last Updated: 05/13/2005 Document ID: 3KODOLRY |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
