Print Page | Close Window

[QUESTION] How do I Print a ChartControl?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17942
Printed Date: 23 November 2024 at 10:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [QUESTION] How do I Print a ChartControl?
Posted By: Xander75
Subject: [QUESTION] How do I Print a ChartControl?
Date 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)



Replies:
Posted By: Xander75
Date 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)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net