Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Portrait or Album

Status
Not open for further replies.

SAWIACH

ISP
Dec 1, 2003
13
BY
I need to know orientation of my report: a portrait or an album. What variable or function bears the responsibility for it???
 
That depends, what are you using to create reports?

Crystal Reports version?

RDC?

You're better served supplying technical information when requesting it, Crystal has many ways to generate and deploy reports.

It will likely be a property/method, not a variable/function.

Also orientation is generally described as Portrait vs. Landscape.

-k
 
But are you using the RDC? And what programming language?

If you're using the RDC w/VB6, then you can get/set the page orientation using the .PaperOrientation property:

Code:
Dim App As New CRAXDRT.Application
Dim Report As CRAXDRT.Report

Set Report = App.OpenReport("C:\ReportName.rpt")

MsgBox Report.PaperOrientation

.....[code]
The constants for page orientation are:
crDefaultPaperOrientation (0)
crPortrait (1)
crLandscape (2)

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top