custom print preview error.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Maryse
Newbie
Newbie
Posts: 3
Joined: Mon Feb 13, 2006 12:00 am

custom print preview error.

Post by Maryse » 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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Feb 16, 2006 11:48 am

Hi Maryse,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply