Page 1 of 1

Print Preview

Posted: Mon Oct 02, 2006 4:35 pm
by 9641347
I'm making my own print preview dialog.

I would like to know how to implement the option "Format->Print background" from the standard tChart print preview dialog.

I'm drawing the preview with:

Code: Select all

		private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
		{
			tChart1.Chart.Draw(e.Graphics, GetRealMarginBounds(e, true));
		}
How can I make Chart.Draw not to print the background?

Posted: Tue Oct 03, 2006 10:22 am
by narcis
Hi Sinais,

You can try using:

Code: Select all

      tChart1.Printer.PrintPanelBackground=false;