User (Legacy) Posted July 31, 2003 Report Share Posted July 31, 2003 I have a chart on a aspx chart and I want a print button to print the chart on landscaped. On the click event, I got this.Chart1.Printer.Orientation = Orientation.Landscape; now how do I bring up the printdialog box or just print it? The help samples says use chart.printer.print()..but .print isnt available under the intellisense list..only stuff like forcecolors, compress etc.... So what is the code to bring up the print dialogbox or just direct print? Thanks Elvina barchart.bmp Link to comment Share on other sites More sharing options...
Software FX Posted August 1, 2003 Report Share Posted August 1, 2003 The Printer object expose the following public methods public void Print () public void Print (int fromPage, int toPage) public DialogResult PrintDialog () public DialogResult PrintDialog (bool fromTo) public DialogResult PrintPreview () Note that to minimize footprint and/or WinForms dependencies these methods are not present in our server component, you do not want to the chart to be printed in your data center. In your case you have to script the client control (so you will need full trust), in the client control you will have access to all the previously mentioned methods. -- Regards, JC Software FX Support "Elvina Lam" <elam@europeancredit.com> wrote in message news:z0Ttwj2VDHA.2896@WEBSERVER1... > I have a chart on a aspx chart and I want a print button to print the chart > on landscaped. > > On the click event, I got > this.Chart1.Printer.Orientation = Orientation.Landscape; > > now how do I bring up the printdialog box or just print it? > > The help samples says use chart.printer.print()..but .print isnt available > under the intellisense list..only stuff like forcecolors, compress etc.... > > So what is the code to bring up the print dialogbox or just direct print? > > Thanks > > Elvina > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 4, 2003 Author Report Share Posted August 4, 2003 Im not quite sure how to script the control. All I know that my chart is a server side control. I need to reference SoftwareFX.ChartFX.Internet.Client.dll? Would I need to change my chart to a client control? Please advise! Elvina (beginner) "SoftwareFX Support" <support@softwarefx.com> wrote in message news:ZcR1lpFWDHA.1484@WEBSERVER1... > The Printer object expose the following public methods > > public void Print () > public void Print (int fromPage, int toPage) > public DialogResult PrintDialog () > public DialogResult PrintDialog (bool fromTo) > public DialogResult PrintPreview () > > Note that to minimize footprint and/or WinForms dependencies these methods > are not present in our server component, you do not want to the chart to be > printed in your data center. > > In your case you have to script the client control (so you will need full > trust), in the client control you will have access to all the previously > mentioned methods. > > -- > Regards, > > JC > Software FX Support > "Elvina Lam" <elam@europeancredit.com> wrote in message > news:z0Ttwj2VDHA.2896@WEBSERVER1... > > I have a chart on a aspx chart and I want a print button to print the > chart > > on landscaped. > > > > On the click event, I got > > this.Chart1.Printer.Orientation = Orientation.Landscape; > > > > now how do I bring up the printdialog box or just print it? > > > > The help samples says use chart.printer.print()..but .print isnt available > > under the intellisense list..only stuff like forcecolors, compress etc.... > > > > So what is the code to bring up the print dialogbox or just direct print? > > > > Thanks > > > > Elvina > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted August 4, 2003 Report Share Posted August 4, 2003 You don't have to modify the way you are currently building your ASPX pages, all you have to do is add code to script/handle events on the client. Please check a sample in our support site, under Miscellaneous named "Events - Get Tip". Note that scripting a .net control in the browser requires full trust. -- Regards, JC Software FX Support "Elvina Lam" <elam@europeancredit.com> wrote in message news:N0M$sHnWDHA.228@WEBSERVER1... > Im not quite sure how to script the control. All I know that my chart is a > server side control. I need to reference > SoftwareFX.ChartFX.Internet.Client.dll? Would I need to change my chart to a > client control? > > Please advise! > > Elvina (beginner) > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:ZcR1lpFWDHA.1484@WEBSERVER1... > > The Printer object expose the following public methods > > > > public void Print () > > public void Print (int fromPage, int toPage) > > public DialogResult PrintDialog () > > public DialogResult PrintDialog (bool fromTo) > > public DialogResult PrintPreview () > > > > Note that to minimize footprint and/or WinForms dependencies these methods > > are not present in our server component, you do not want to the chart to > be > > printed in your data center. > > > > In your case you have to script the client control (so you will need full > > trust), in the client control you will have access to all the previously > > mentioned methods. > > > > -- > > Regards, > > > > JC > > Software FX Support > > "Elvina Lam" <elam@europeancredit.com> wrote in message > > news:z0Ttwj2VDHA.2896@WEBSERVER1... > > > I have a chart on a aspx chart and I want a print button to print the > > chart > > > on landscaped. > > > > > > On the click event, I got > > > this.Chart1.Printer.Orientation = Orientation.Landscape; > > > > > > now how do I bring up the printdialog box or just print it? > > > > > > The help samples says use chart.printer.print()..but .print isnt > available > > > under the intellisense list..only stuff like forcecolors, compress > etc.... > > > > > > So what is the code to bring up the print dialogbox or just direct > print? > > > > > > Thanks > > > > > > Elvina > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.