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