Print Page | Close Window

PrintPreview Orientation

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=18763
Printed Date: 19 May 2024 at 3:54am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PrintPreview Orientation
Posted By: McKloony
Subject: PrintPreview Orientation
Date Posted: 03 August 2011 at 2:07am
How can I set the PrintPreview orientation to horizontal?

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



Replies:
Posted By: Xander75
Date Posted: 03 August 2011 at 3:22am
Hi,

You could cheat by using a hidden PrintPreview control then calling the following code:

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



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


Posted By: McKloony
Date Posted: 03 August 2011 at 6:47am
Yes thanks, I know about the PreviewControl. But the buildin PrintPreview is faster and takes less trouble. If you try to print the CalendarControl with PreviewControl in the new Release 15.1.2, vb6 hangs.

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6


Posted By: Oleg
Date Posted: 04 August 2011 at 2:00pm
Yes, Orientation for ChartControl can be changed with PrintPreview only.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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