Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Abstract Error

edited February 2006 in General
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

Comments

  • edited February 2006
    Hello,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2006
    The custom preview dialog only differed with cosmetic stuff - different
    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
  • edited February 2006
    Nico:

    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
  • edited February 2006
    Hi,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2006
    Hi,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.