Using templates

From DBReport wiki
Jump to: navigation, search

This is a tutorial about how use templates in DBReport. The goal is create a report based on previous saved report.

A template is just a report definition previously saved witch is imported in designer. Is useful for save time with similar reports.



  1. Rename "DBReportTut01.xml" file to "Template.xml".
  2. Open Tutorial01 project.
  3. Open Action event of Designer button.
  4. Change rpt.Designer line.
  5. Save project as Tutorial03.
  6. Run App.
  7. Click on Designer button.
  8. Click on Export button.
  9. Choose "Import" from popup menu.
  10. Select "Template.xml" from desktop.

A video show an example here.

Code for Designer line

rpt.Designer "{""ShowExpImpBtn"": True}"