Page 1 of 1

chart print Preview() problem

Posted: Fri Nov 07, 2008 5:40 am
by 13047644
print preview option not working on web page when i press the button

error Occur


Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.


my code is that

protected void Button1_Click1(object sender, EventArgs e)
{
Steema.TeeChart.Chart ch3 = teechart1.Chart;

ch3.Printer.Preview();

}

Posted: Fri Nov 07, 2008 9:57 am
by narcis
Hi faisal,

You should print as told here. Does it work fine at your end?

Thanks in advance.

problem exist i m not need to javascript print option

Posted: Fri Nov 07, 2008 11:06 am
by 13047644
problem exist. No need to javascript print option i Need Teechart print option window open on webpage.

Posted: Fri Nov 07, 2008 11:52 am
by narcis
Hi faisal,

Chart editor and print preview are not supported in WebForms applications. You need to use browsers printing facilities.