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

Import/Export report

edited July 2004 in End User
Hi,

I want to setup the option for a user to import or export a report
definition without going into the report designer. What is the best way to
achieve this?

Regards

Alex

Comments

  • edited July 2004

    You could add some options to do this from the Report Explorer.

    1. One approach is to add menu items. You can do this using the
    TppReportExplorer.MergeMenu property.

    2. Another approach is to create a custom report explorer form and register
    it with ReportBuilder. For an example, see

    ..\RBuilder\Tutorials\Complete\II. Applications\04. End-User with Custom
    Explorer



    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2004
    Hi Nard,

    I have created a custom report explorer and added a button to import. What
    is the best way to import a report ie I now want to import a report
    definition (ms file) into rbItems table.

    Regards

    Alex

  • edited September 2004

    To load the report from file, try using

    if Report.Template.ShowFileOpenDialog then
    Report.Template.LoadFromFile;

    To save the report to the report explorer try using the
    TppReportExplorer.SaveReport method. This method requires the name of the
    report and a folder id. To save to the currently selected folder use
    TppReportExplorer.CurrentFolderId

    example:

    myReportExplorer.SaveReport('TestReport',
    myReportExplorer.CurrentFolderId);



    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.