custom print preview error.
Posted: Wed Feb 15, 2006 8:47 pm
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
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