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

Blank pages when printing

edited April 2003 in General
Hi,
We have an application with RB 7.01 (D7) that works fine with our system,
Windows 2000 and Lexmark printers. Our users have Windows 98 and get endless
blank pages when they send the reports to the printer. These reports are
usually contructed by creating one report and adding the other existing ones
as subreports to get a composite report. We had this working fine in
QuickReport on the users site when printed, but with our new Report Builder
version it doesn't work well. Our users have Lexmark printers too. We've
made sure the AutoSize is true on all reports including the one that
contains the existing reports, and also applied the other hints found in
this newsgroups. The only difference is that they have Windows 98. Any clues
of what else we could try is greatly appreciated.

Thanks.

Morten

Comments

  • edited April 2003
    Morten,

    Though the printers and reports are the same, the printer drivers are
    different in Windows 98 vs. 2000. Find out the margin settings for the
    printer
    running in Windows 98 and increase the margins in your report accordingly.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2003
    Nico,
    I created a new project with two buttons and one TppReport in D7 using RB
    7.01.

    One button executes the following code:

    with TppReport.Create(self) do
    begin
    print;
    end;

    The other button executes this code:

    ppReport1.Print;

    Now, both reports' preview show one blank page, but when I send the
    dynamically created report to the printer it loops forever. The other report
    created at design time prints fine. Both reports prints as expected in
    Windows 2000, but not on Windows 98. I did try AutoStop, CreateDefaultBands,
    margins, etc, but that did not make a difference. It doesn't matter which
    printer I send it to, but I got these results using the FinePrint printer
    driver from www.fineprint.com.
    Please, see if you can recreated this problem.

    Thanks.
    Morten




  • edited April 2003
    Well, if I add the following line to my dynamically created report it works
    fine:
    PrinterSetup.Papername := 'Letter';

    So problem solved.

    Thanks.
    Morten

This discussion has been closed.