RB Ver 14.02 Build 376 Print to Screen Issue Delphi XE2 (32bit)
Just released updated app to users and have had numerous trouble calls
of reports not working. Upon review I have discovered that the reports
in question all had the same set up. They were set, in design and run
time, to be print to "Screen" by default in the designer.
Tried tracking it down but am unable to see what is happening. The
preview window opens and the the status bar states "Accessing Data ...."
but that is where it hangs. Only solution at that point is to reset the
app (in project manager run) or the users have to use Task manager to
kill the app.
Have been able to duplicate in debug mode. If the default is set to
"Printer" the report will run and print properly.
This application was originally created with Delphi XE.
Any Ideas?
Kelvin Taite
of reports not working. Upon review I have discovered that the reports
in question all had the same set up. They were set, in design and run
time, to be print to "Screen" by default in the designer.
Tried tracking it down but am unable to see what is happening. The
preview window opens and the the status bar states "Accessing Data ...."
but that is where it hangs. Only solution at that point is to reset the
app (in project manager run) or the users have to use Task manager to
kill the app.
Have been able to duplicate in debug mode. If the default is set to
"Printer" the report will run and print properly.
This application was originally created with Delphi XE.
Any Ideas?
Kelvin Taite
This discussion has been closed.
Comments
discovered it was 2 pass. Changed it to single pass but no difference.
I will alter based on your suggestion and get back to you.
Thanks for the prompt response
Kelvin
For the current version of RB, getting an "Accessing Data" message while
the report hangs usually means you are generating a two pass report that
is creating infinite or a large number of pages.
As a test, try setting the PreviewFormSettings.SinglePageOnly property
to True and see if that helps with this report.
Note that this is just a temporary solution, the next release of RB will
include enhanced status updates for two pass reports as well as more
robust user control.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
least gotten around the error. Not sure why but changing the pass
settings had no effect. Selecting printer as default also gets around
the error.
Thanks
Kelvin
I was getting the same "Accessing Data..." message that stays forever,
and also "List Index Out of Bounds..." errors all over the place. This
was only if print goes to screen. If it goes directly to printer, or
any other format (like pdf), all works fine.
I did Table.DisableControls before call to Print, and
Table.EnableControls after the Print. Now it works fine for me.
Is it RB, or XE2, or Win7?
Win7, 64, XE2, RB 14.02
On Wed, 18 Jan 2012 13:23:17 -0330, Kelvin Taite
-
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com