Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Chart Control
  New Posts New Posts RSS Feed - [QUESTION] How do I Print a ChartControl?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[QUESTION] How do I Print a ChartControl?

 Post Reply Post Reply
Author
Message
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Topic: [QUESTION] How do I Print a ChartControl?
    Posted: 23 February 2011 at 5:27am
Hi,

I am looking to Print the ChartControl, I have successfully managed to create a Print Preview, however I would like to also have the ability to Print the ChartControl without first previewing it.

Unlike the ReportControl's "PrintReport & PrintReport2" it doesn't appear to have a "PrintChart" option.

Does anyone know of a way to print a ChartControl directly?
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2011 at 6:47am
I have a workaround for this at the moment.

To perform a Print without first previewing I have added a PrintPreview control to the form and set  Visible = False.

Then I use the following code:


    With PrintPreview
        .Orientation = xtpOrientationLandscape
        .PrintView = ChartControl.CreatePrintView()
        .ShowPrintDialog
    End With


It works but it would be nice if the ChartControl had a PrintChart option like the ReportControls PrintReport & PrintReport2 options.
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.