Page 1 of 1

Full Screen Print Preview

Posted: Tue Dec 19, 2006 10:46 am
by 9643076
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.

Posted: Wed Dec 20, 2006 1:03 pm
by narcis
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();
		}

Posted: Wed Dec 20, 2006 1:06 pm
by 9643076
That's great, just what I was after. I should have thought about doing it that way.

Many thanks!