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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help to get the page height/width of a report

Status
Not open for further replies.

Joeyshin

Programmer
Mar 21, 2002
3
US
Hi,

I'm using Crystal Report 8 (developer version) and Visual Basic 6.

I need to get the page size of a crystal report in my program. Specifically, I need the width and height of a page. Although there is a Pagesize property for the report object, it's enum value. :(

Currently, I'm using the following code to get page height --

for each sect in report.sections
height = height + sect.height
next sect
height = height + TopMargin + BottomMargin

However, the problem is the detail section -- section("D") has too small a height value. My guess is that it gives me the height of Detail Section at design time, without runtime populated records.

Any suggestion on getting report page height? I'll appreciate it. Thanks.

Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top