Abstract Error
I just upgraded from D6 / RB 6.03 to D7 / RB 9.03.
All my reports render in preview, but when I attempt a print, I get an
"Abstract Error".
I found several references to this problem in a Google search, with
replies by Jim Bennett and Nico Cizik, but I did not understand
specifically how to get around the problem.
My reports are rather simple master-detail reports, with a slightly
modified ppPrvDlg. I traced the error to the ppViewer1.Print command in
the ppPrvvDlg.
Can anyone help me with more specific information about how to get my
reports working again? Every single report (over one hundred reports) is
now broken in this same way.
Thanks
--- posted by geoForum on http://delphi.newswhat.com
All my reports render in preview, but when I attempt a print, I get an
"Abstract Error".
I found several references to this problem in a Google search, with
replies by Jim Bennett and Nico Cizik, but I did not understand
specifically how to get around the problem.
My reports are rather simple master-detail reports, with a slightly
modified ppPrvDlg. I traced the error to the ppViewer1.Print command in
the ppPrvvDlg.
Can anyone help me with more specific information about how to get my
reports working again? Every single report (over one hundred reports) is
now broken in this same way.
Thanks
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
If you remove the modified preview dialog and use the native one do you
still get the error? How is your custom preview dialog different from the
original?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
form caption, and a logo.
I removed the custom ppPrvDlg from the project, then I deleted all the
DCUs from my project, then I made wure I was pathed into all the updated
RB stuff
c:\program files\borland\delphi7\Rbuilder\source
Then I recompiled.
I still get an Abstract error. Now it is in the "PrintToPrinter" statement
in the PrintWithSameParameter procedure in ppProd.pas.
Thanks for any info.
James
--- posted by geoForum on http://delphi.newswhat.com
I see more specifically what's going on.
I had also built a very heavily customized ppPDlg, which is causing the
Abstract error. If I remove that from the project, it prints fine.
The purpose of the custom ppPDlg is to allow the user to select any/all of
the output formats (html, PDF, etc) and print them all simultaneously -
with one click.
It took me quite a while to create that modified ppPDlg. Do you have any
suggestions for either modifying my old (v 6.x) ppPDlg to eliminate the
abstract error, or else an easier way to enable the user to print multiple
output formats with one click?
Thanks.
--- posted by geoForum on http://delphi.newswhat.com
What code have you overridden in your custom print dialog? Are you able to
trace into your code and find out where the problem is occuring with respect
to the original print dialog?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Take a look at the TppCustomPrintDialog class located inside the ppForms.pas
file. This class includes a number of routines that are virtual abstract.
You will need to be sure you implement each one of thes routines in your
custom dialog.
I know for sure that the GetBackgroundPrintSettings method was not included
in RB 6.03 so this is probably missing from your custom print dialog code.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com