chart print Preview() problem

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
faisal
Newbie
Newbie
Posts: 5
Joined: Fri Dec 07, 2007 12:00 am

chart print Preview() problem

Post by faisal » Fri Nov 07, 2008 5:40 am

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();

}

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

Post by Narcís » Fri Nov 07, 2008 9:57 am

Hi faisal,

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

Thanks in advance.
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

faisal
Newbie
Newbie
Posts: 5
Joined: Fri Dec 07, 2007 12:00 am

problem exist i m not need to javascript print option

Post by faisal » Fri Nov 07, 2008 11:06 am

problem exist. No need to javascript print option i Need Teechart print option window open on webpage.

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

Post by Narcís » Fri Nov 07, 2008 11:52 am

Hi faisal,

Chart editor and print preview are not supported in WebForms applications. You need to use browsers printing facilities.
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