landscape/portrait printing

TeeChart for ActiveX, COM and ASP
Post Reply
GLSWG
Newbie
Newbie
Posts: 39
Joined: Fri Jan 09, 2004 5:00 am

landscape/portrait printing

Post by GLSWG » Thu Oct 12, 2006 10:53 am

Hi,

I am using ActiveX 6/VC++ 6 and CHartPreviewPanel for printing. I have found that it has method to set the orientation of printout. Basically here's my code :

Code: Select all

CButton *pLandscapeOrient = (CButton*) GetDlgItem(IDC_PRINT_LANDSCAPE_RADIO);


if (pLandscapeOrient->GetCheck()) {
	m_ctlChartPreviewPanel.SetOrientation(1); 
} else {
	m_ctlChartPreviewPanel.SetOrientation(0); 
}

m_ctlChartPreviewPanel.PrintPage();
But it does not have any effect whatever I set 1 or 0 there. It always prints as landscape.

Any ideas? Thank you in advance.

Best regards,
Michael.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Oct 13, 2006 10:15 am

Hi Michael,

Have you tried using 1 for portrait and 2 for landscape?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

GLSWG
Newbie
Newbie
Posts: 39
Joined: Fri Jan 09, 2004 5:00 am

Post by GLSWG » Sat Oct 14, 2006 3:30 pm

Hi Narcis,
narcis wrote:Hi Michael,

Have you tried using 1 for portrait and 2 for landscape?
That worked like a charm. Thanks!

Post Reply