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

RBuilder 10.09 ReportTextFile

edited July 2008 in General
Hi,
I upgrade RBuilder from 6.02 to 10.09.
There is a problem about ReportTextFile print.
Detail band and dbtext's height is 16 screenpixel and
font is Courier New.

But when printing to dot-matrix printer or text file
There is a blank line after each 7 lines, likes below.
When I set detail band buttomoffset property to 2,
Blank lines dissappear but report's page include more
than 66 lines (dot-matrix printer line limit), about 75,
and printed lines overflow papers.

Any suggections?

Thanks

Report text file example :
DETAIL BAND DATA....................................
DETAIL BAND DATA....................................
DETAIL BAND DATA....................................
***There is a blank line here but there isn't at report preview***
DETAIL BAND DATA....................................
DETAIL BAND DATA....................................
DETAIL BAND DATA....................................
DETAIL BAND DATA....................................
DETAIL BAND DATA....................................
DETAIL BAND DATA....................................
DETAIL BAND DATA....................................

DETAIL BAND DATA....................................
DETAIL BAND DATA....................................
DETAIL BAND DATA....................................

Umit

--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited July 2008

    You have sent this same question to support@digital-metaphors.com for the
    past 3 days. Please check your email junk/spam folder.

    Please configure your newsreader to post using your full name, rather than
    just Umit.

    ReportTextFile is a very primitive format. For tips on printing to a report
    tezx file, run RBuilder\Demos\Reports\Demo.dpr and check out demo 107. Read
    the description and view the example report.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited July 2008
    Hi Nard,
    I have checked our mail server, spam folder, there isn't any mail sent by you.

    I sent same mail to Lisa, she answered it. She forwarded our mail to you.

    Anyway, thanks for answer.

    I set beforeprint event like below, text print is faultless.

    Thanks.

    procedure Tfrm0107.ppReport1BeforePrint(Sender: TObject);
    var
    lDevice: TppReportTextFileDevice;
    begin

    if (ppReport1.FileDevice <> nil) and (ppReport1.FileDevice is
    TppReportTextFileDevice)then
    begin
    lDevice := TppReportTextFileDevice(ppReport1.FileDevice);

    {120 characters per line, 66 lines per page}
    lDevice.CharacterGrid(120, 66);
    end;

    end;

    Umit

    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.