Save to text
Hi,
I use RB Pro 5 with Delphi 5.
When saving my reports to text (i.e. allow user to select provide a
filename, set the ppReport.DeviceType := dtTextFile and call ppReport.Print
I find that components on the report are not always printed in the correct
order.
I would for instance have TppDBText1 to ppDBText4 components with SaveOrder
0 to 3 respectively, and the saved file would end up wth ppDBtext3, then
ppDBText4, then a carriage return/linefeed and then ppDBText1 and ppDBText2
on the next line. The following x lines would all be correct, then a
screwed up record again and so on.
There appears to be no common issue with the text or contents of the record
values and it does not happen after a certain number of records.
Does anybody know hot to fix this?
All help appreciated...of course
Jaco
I use RB Pro 5 with Delphi 5.
When saving my reports to text (i.e. allow user to select provide a
filename, set the ppReport.DeviceType := dtTextFile and call ppReport.Print
I find that components on the report are not always printed in the correct
order.
I would for instance have TppDBText1 to ppDBText4 components with SaveOrder
0 to 3 respectively, and the saved file would end up wth ppDBtext3, then
ppDBText4, then a carriage return/linefeed and then ppDBText1 and ppDBText2
on the next line. The following x lines would all be correct, then a
screwed up record again and so on.
There appears to be no common issue with the text or contents of the record
values and it does not happen after a certain number of records.
Does anybody know hot to fix this?
All help appreciated...of course
Jaco
This discussion has been closed.
Comments
This is not currently a known issue however you are using a rather old
version of ReportBuilder. Try downloading a trial edition of the latest
version to work with Delphi 5 (RB 7.04) from our web site and test with
that.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
In the meantime I have found a workaround. I placed one TDBText on the report, set the Save property to true (all the other components to False) and in the GetText event I concatenate all the column values into one long string, separating the values with a Tab. I therefore end up with a tab delimited file.
Jaco