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

Difference between preview and printer

edited June 2002 in General
Hi,

I've a random problem with my report.

In preview mode, it works fine. But in printer mode, report don't look like
report in preview ...

My report contains detail band (for one record) with richedit.
In preview mode, I have 8 bands per page (8 records).
In printer mode, on first page, I have band 1 to 7 and, on second page, band
9 to 16 .

Why this difference ?

Thank's a lot for response and your help.

Delphi 4 SP3, RB 6.03, Win98, HP Deskjet 895 cxi

Laurent VARES.
_____________________________
D?calog
1244 rue Henri Dunant
07500 GUILHERAND GRANGES
FRANCE

T?l (33) 04 75 81 50 50
Fax (33) 04 75 81 34 50
Email : decalog@paprika.net
Site : http://www.paprika.net

Comments

  • edited June 2002
    ----------------------------------------------
    Article: ReportBuilder's RichText architecture
    ----------------------------------------------


    The RichText in ReportBuilder is a wrapper around Delphi's TRichEdit which
    in turn relies on Windows. There are two versions of Windows richedit -
    RichEd32.dll is the older one and RichEd20.dll is a newer one (RichEd32 is
    being phased out).

    Delphi by default relies on RichEd32 - the older version.

    A problem occurs when using the RichEd32 with Office 2000 installed and
    trying
    to print.

    To correct this problem, we made a modification, to use RichEd20 when
    possible.

    Options:

    1. You could try downloading a newer version of RichEd20 from MS web site.

    2. You could try downloading the latest printer driver and testing with
    another printer.

    3. If you want to revert to the old RichText behavior, add an initialization
    section to the bottom of your unit and code:


    uses
    ppDrwCmd;


    initialization

    ppRegisterRichEditClass(TRichEdit);


    For an example of the above, check out ppDrwCmd.pas. It registers
    a class called TppRichEdit:


    initialization

    ppRegisterRichEditClass(TppRichEdit);

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited June 2002
    Hi,

    Thanks for your response.

    However, this problem (difference between preview and printer) occurs too
    when I don't have RichEdit.
    Example :
    I have a report where I have property columns to 2. My dataset is a sample
    query which returns 2 values. These values are strored in 2 DBText like this
    :

    Report

    DBText1 DBText2

    My query returns to report 100 or 200 records and I have 2 pages with 2
    columns.
    In preview mode, all is allright. In printer mode, randomizely, the second
    columns disappears !
    It's the same thing in Portait or LandScape.

    An idea ?

    Thank's a lot for your quickly response. It's very nice to work with you.

    Sorry for my english.

    (Delphi 4 SP3, RB 6.03, Win98, HP Deskjet 895 cxi)

    Cheers,

    Laurent VARES.
    _____________________________
    D?calog
    1244 rue Henri Dunant
    07500 GUILHERAND GRANGES
    FRANCE

    T?l (33) 04 75 81 50 50
    Fax (33) 04 75 81 34 50
    Email : decalog@paprika.net
    Site : http://www.paprika.net
  • edited June 2002
    There is a patch available that addresses the issue of certain printer
    settings not being saved between preview and printing. This might be able to
    address your issue. Please email support@digital-metaphors.com to request
    it.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.