Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

print preview first page strangeness

edited September 2001 in General
Hi everyone, I'm a reportbuilder newbie generating a report from my
own data structure using TppJITPipeline. I have this small bug
ocurring and was wondering if anyone had any suggestions:

When I do a print preview of the report using the following code:
ppreport1.reset;
ppjitpipeline1.RecordCount := reportquant;
ppreport1.print;

If the report contains no records then the first page in the preview
window is completely blank, i.e. the % magnification, page number, and
actual report window contain no printed text at all. Only after the
right arrow button is pressed to go to the next page do these fields
fill in with text, and the report shows the page # and headers, etc.

If i preview a report that contains many records, it works fine. If I
then preview a report with no records, I get the blank page. Then if I
preview the report with many records again, I still get the blank
page, so I suspect it is some sort of initialization thing to set what
the first page number should be. Once I hit the next-page arrow to go
to page 1, then the previewer works fine and I cannot hit the left
arrow to go to the previous page.

Any suggestions would be appreciated!
Thanks in advance for your help,
Martin

Comments

This discussion has been closed.