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

TppDesignerWindow

edited November 2006 in End User
I recently upgraded to version 10.04 from 7.x and some of my code will
not compile. Most of it has to do with methods that seem to have been
removed from the TppDesignerWindow class. Where did the following
methods go:

NewReportFromWiz
NewReport
CheckReportDelete
CheckComponentAdd
LoadTemplate
ToolbarManager.FindToolBar (and the entire TppStandardToolbar class)

Mike Hubbard

Comments

  • edited November 2006
    Hi Mike,

    The designer has been drasticly changed for RB 10.x. The following examples
    will give you a good idea how to perform a few of the tasks you have listed
    below. The CheckReportDelete and CheckComponentAdd are available from the
    TppDesignDocumentController as well. The LoadTemplate routine is now
    protected but you should be able to use the Open command in the
    DocumentController to perform this task.

    NewReportFromWiz:
    ppDesigner1.Form.DesignControllers.DocumentController.New(True);

    NewReport:
    ppDesigner1.Form.DesignControllers.DocumentController.New(False);

    Toolbar examples:
    http://www.digital-metaphors.com/tips/Designer10_CustomizeMenusAndToolbars.zip

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2006
    Thank you for the help. I have it mostly working now.

    When I load some of my report templates in the designer, I get an
    exception that says "Class TraCodeModule not found." From looking
    around in the forum, that error seems to be related to using RAP, but
    I am not using RAP. What could be the cause of this error?

    Mike
  • edited November 2006
    >When I load some of my report templates in the designer, I get an

    Please ignore, when I add raIDE to the uses clause the problem goes
    away, so I think that I was using RAP for a few reports.

    Thanks again for all the help.

    Mike
This discussion has been closed.