User (Legacy) Posted June 2, 2006 Report Share Posted June 2, 2006 I'm evaluating VS 2005 version of ChartFX. In order to print during runtime according to documentation you need to execute Chart1.Printer.Print() command. I'm wondering where it is... Is it removed in evaluation version or there is a new way to print now? Kind regards, Alexei Dragoner Link to comment Share on other sites More sharing options...
Software FX Posted June 2, 2006 Report Share Posted June 2, 2006 Chart1.Printer.Print does exist in the Server control, you don't want to print the chart in the server. What exactly are you looking for ? If you wan to print in the client you can do it either using the provided ui, your browsers print button or Java Script (if using the .NET client control). -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted June 2, 2006 Author Report Share Posted June 2, 2006 Thank you for your answer. Clearly I need to print on the client. I have all user graph interactions turned off, that´s why I was looking for a method to do it at run-time by pressing some button on the page. P.S. I still don´t see the Printer.Print() method. Maybe it´s not available in trial version? "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:b2Hp48khGHA.1572@webserver3.softwarefx.com... > Chart1.Printer.Print does exist in the Server control, you don´t want to > print the chart in the server. > > What exactly are you looking for ? If you wan to print in the client you > can do it either using the provided ui, your browsers print button or Java > Script (if using the .NET client control). > > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
Software FX Posted June 2, 2006 Report Share Posted June 2, 2006 > I was looking for a method to do it at run-time by pressing some button > on the page. ... You need to do this in Java Script. You are looking for the method in the wrong class, you will not find it in the server control class. You can NOT write server-side code that prints a chart in the client. Are you rendering the chart as an image or as an active client (RederFormat) ? -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted June 6, 2006 Author Report Share Posted June 6, 2006 That´s clear. I just find a documentation a bit confusing, since it says that print command should be there. As a user I have no idea how it is technically implemented, maybe it´s done through a AJAX type of call so it does trigger a client side print command. Maybe documentation part needs some additional clarification for different scenarios (it´s just a suggestion) or/and an explanation (example) how to do it on a client side in a web environment. I´m rendering chart as an image. I have disabled all interaction with the graph, so all I have is a an image. I guess I have to write simple JavaScript function for printing in this case, don´t I? "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:O4uRgllhGHA.2324@webserver3.softwarefx.com... >> I was looking for a method to do it at run-time by pressing some button >> on the page. ... > > You need to do this in Java Script. You are looking for the method in the > wrong class, you will not find it in the server control class. You can NOT > write server-side code that prints a chart in the client. > > Are you rendering the chart as an image or as an active client > (RederFormat) ? > > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
Software FX Posted June 7, 2006 Report Share Posted June 7, 2006 Right. For example: document.execCommand("Print",true,document.getElementById("chart1")); -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.