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?
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.
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
Comments
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
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
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