ReportTextFileDevice.AutoCalcGrid
Hi,
I've been reading lots of posts on here about using the
ReportTextFileDevice's AutoCalcGrid property to set up printing to a
file intended for sending to a dot-matrix printer. My problem is that I
can't seem to find where the ReportTextFileDevice is actually referenced
when printing! The report.device field is apparently deprecated and
always reads dvScreen, and I can't find anywhere else to reference the
ReportTextFileDevice.
Also, many of the posts refer to demo 107, but I don't seem to have any
demos on my system. We're using RB12.02 Enterprise for Delphi 2009. I
didn't notice if there was an option to install demos when installing
the product, and if I now run the installer I only get the option to
Repair or Remove, which I'm reluctant to do.
Thanks,
Steve Branley
I've been reading lots of posts on here about using the
ReportTextFileDevice's AutoCalcGrid property to set up printing to a
file intended for sending to a dot-matrix printer. My problem is that I
can't seem to find where the ReportTextFileDevice is actually referenced
when printing! The report.device field is apparently deprecated and
always reads dvScreen, and I can't find anywhere else to reference the
ReportTextFileDevice.
Also, many of the posts refer to demo 107, but I don't seem to have any
demos on my system. We're using RB12.02 Enterprise for Delphi 2009. I
didn't notice if there was an option to install demos when installing
the product, and if I now run the installer I only get the option to
Repair or Remove, which I'm reluctant to do.
Thanks,
Steve Branley
This discussion has been closed.
Comments
If your report is set up to export to a file such as a Report Text File, you
can directly access that file device by typecasting the TppReport.FileDevice
property. The BeforePrint event is a suitable event to access the file
device if it is created.
uses
ppFilDev;
...
if ppReport1.FileDevice <> nil then
TppReportTextFileDevice(ppReport1.FileDevice).AutoCalcGrid := True;
See the following article on where to find the demos and tutorials with
versions of ReportBuilder 11 and up.
http://www.digital-metaphors.com/rbWiki/General/Installation/Tech_Tip:_Demo_Location
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
as nil, but that could be because of when I was trying to access it.
I'll look into the event you suggested.
Thanks,
Steve