Hi,
I want to design my own printing preview dialog box (C#), because the Teechart.Printer.Preview() dialog didn't provide the GUI i need.
I create a forms with an System.Windows.Forms.PrintPreviewControl on it.
private System.Windows.Forms.PrintPreviewControl GraphPrintPreviewControl;
then i set the document of the preview control to the print document of the teechart element. and call InvalidatePreview after.
GraphPrintPreviewControl.Document = m_Chart.Printer.PrintDocument;
m_Chart.Printer.Resolution = 10;
GraphPrintPreviewControl.InvalidatePreview();
The problem is, i'm unable to see the teechart in the preview. i only see an empty page. But, when i print it, the chart is printed correctly.
any idea of what the problem could be?
Thanks for your help, Maryse
custom print preview error.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Maryse,
I've just sent you an example of what you request.
I've just sent you an example of what you request.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |