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

Error creating form: Ancestor for 'TppCustomPreviewer' not found

edited September 2012 in General
So it is 2 in the morning and I feel like I'm losing my mind. I've
used form inheritence for over 12 years and I know the various
requirements/tricks to keep the IDE happy.

We've had an custom previewer inherited from TppCustomPreviewer since
Delphi 5 and ReportBuilder 5. when I upgraded this project to Delphi
2009 and RBuilder 11, I was able to open the form and modify it. I
don't remember whether the form was modified when we used Delphi 2010.

We're now using Delphi XE and RBuilder 11.08, and I can't open this
form. I always get the error in the subject.

I've tried adding ppForms to my project (although I don't want to
recompile it), but that doesn't help. I've tried making sure ppForms
is open in the IDE before opening my derived form, and that doesn't
help.

...

Ok, now I'm really losing my mind. I just downloaded
ReplaceFormAndAddSearch.zip and opened it in Delphi XE. I'm able to
open the TmySearchPrintPreview form no problem. Neither myPrvDlg nor
ppForms is "in" the ReplaceFormAndAddSearchProj project.

I have no idea why this isn't working for my project. Any advice?

Comments

  • edited September 2012
    Hi Jon,

    We did not release a version of ReportBuilder 11 for Delphi XE. Are you
    certain you are using RB 11.08?

    You mention that this error occurs when you try to open the form. Is
    this at design-time? Are you able to run the application successfully?
    If you try to open the ppPrvDlg.pas file (which also descends from
    TppCustomPreviewer) do you get the same error?

    Best Regards,

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