Full Screen Print Preview

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Loz
Newbie
Newbie
Posts: 2
Joined: Tue Nov 14, 2006 12:00 am

Full Screen Print Preview

Post by Loz » Tue Dec 19, 2006 10:46 am

Hi,

Is it possible to force the print preview to be full screen?

I couldn't see an obvious way of doing it. At the moment I'm using the following code to produce the preview...

embeddedChart.Printer.Landscape = true;
embeddedChart.Printer.Proportional = true;
embeddedChart.Printer.Preview();

Thanks.

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

Post by Narcís » Wed Dec 20, 2006 1:03 pm

Hi Loz,

Yes, you can achieve that doing something like this:

Code: Select all

		private void button1_Click(object sender, EventArgs e)
		{
			Steema.TeeChart.Editors.PrintPreview preview = new Steema.TeeChart.Editors.PrintPreview(tChart1.Chart, tChart1.Printer);
			preview.WindowState = FormWindowState.Maximized;
			preview.ShowDialog();
		}
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

Loz
Newbie
Newbie
Posts: 2
Joined: Tue Nov 14, 2006 12:00 am

Post by Loz » Wed Dec 20, 2006 1:06 pm

That's great, just what I was after. I should have thought about doing it that way.

Many thanks!

Post Reply