DroidDB Tip of the Month
DroidDB® Tip for April 2016
Print Preview
A report-writer is built into DroidDB which you can use to print reports, invoices, etc. But, before you actually print, you might want to allow your end-user to do a "print preview".
First, select START | PROGRAMS | SYWARE DROIDDB | DROIDDB REPORT and create a report template. Call it MyReport.
Then, in the form designer, select EDIT | MACRO/EVENTS and create a new macro called PrintPreview. The macro has three steps:
Step 1: REPORT: Select MyReport from the
dropdown. Select the "To a File" option
Step 2: ASSIGN: Set "Col" to @var(0). Set
"Value" to 'MyReport.pdf'
Step 3: RUN EXTERNAL: Leave "Command" blank.
Set "Arg" to @var(0).
Finally, create a Command Button on your form. Set the action to "Run Macro" and select "PrintPreview" as the macro to run.