Home General

Double rows

edited March 2012 in General
Hi,

I have a report that I export to PDF and Excel like this

PoolOraQuery.Execute;
PoolppReport.DeviceType := 'PDF';
PoolppReport.TextFileName
:= PeriodFolder + 'Pool.pdf';
PoolppReport.Print;
Poolppreport.DeviceType := 'XLSData';
PoolppReport.TextFileName
:= PeriodFolder + 'Pool.xls';
PoolppReport.Print;

The export to PDF works fine, but in the export to Excel, some records
get exported twice, not necessarily just below each other.

Using Delphi XE, RB 12.0.5.251

Any idea what's going wrong here?

Arno

Comments

  • edited March 2012
    I tested with RB 12.05, Build 251 here and did not encounter any issues,
    each detail band exported to one XLS row. Check the report designer Help |
    About to verify this the version you are using.

    If you would like to create an example that I can build and run here, please
    send in zip format to support@. Also, please use standard Delphi components
    and RB. Use the DBDemos data or dump some data to TClientDataSets.


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited March 2012
    Nard Moseley (Digital Metaphors) wrote:


    Hi Nard,

    got it solved by putting a ppReport.Reset after the first
    ppReport.print. Tried to create an example, but, as expected, that
    works without problems :(.

    Have a nice weekend

    --
    Arno
This discussion has been closed.