I'm connecting to a remote server using Remote Desktop. The server runs under Win2K Terminal Server. When I preview the report, everything runs fine, but when I click on Print button, I get an Access Violation. I have RB 9.02 build 2.
When using a terminal service, the most common cause of errors it that you do not have access rights to the printer driver needed to generate the report. Be sure you have access to the proper driver files and re-print.
I discovered that Win2K is not in cause of my Access Violation. I just can't print from the preview screen. If i print directly to printer, there are no Access Violations, but if I preview my report, and then print it, Access Violation occurs... my report has CachePages to TRUE. I'll check if there are any other properties that can point out...
If you point your library path to \RBuilder\Source\... are you able to trace into the RB code after the exception occurs? If so, where is the error occuring?
stop searching. I discovered that setting TppReport.ModalPreview to FALSE was causing my problem. I set it to TRUE and it fixed everything. Thank you for your support!
Comments
When using a terminal service, the most common cause of errors it that you
do not have access rights to the printer driver needed to generate the
report. Be sure you have access to the proper driver files and re-print.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I discovered that Win2K is not in cause of my Access Violation. I just can't
print from the preview screen. If i print directly to printer, there are no
Access Violations, but if I preview my report, and then print it, Access
Violation occurs... my report has CachePages to TRUE. I'll check if there
are any other properties that can point out...
David Caouette
If you point your library path to \RBuilder\Source\... are you able to trace
into the RB code after the exception occurs? If so, where is the error
occuring?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I'm actually tracing it. I'll post a message as soon as possible.
David
the line causing the error is in TppReport.PrintToDevices at line 1895:
SendDesignMessage(RM_REPORTPRINTING, ppWCustomMsg, TObject(0));
This causes an Access Violation.
David Caouette
"David Caouette" a ?crit dans le message de
Thanks for the info. Please send an example of this to me in .zip format
and I'll take a look at it for you.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
stop searching. I discovered that setting TppReport.ModalPreview to FALSE
was causing my problem. I set it to TRUE and it fixed everything. Thank you
for your support!
David Caouette
Excellent! Glad you found a solution.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com