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.

 

Back to List »

Visit our store

Top rated! I needed a solid database application development tool for mobile devices. I chose DroidDB for Android OS because it provided a way to get a strong product to market quickly. DroidDB is relational, gives me control over form layout, handles macros, and supports events. It works on all Android versions I have tried and is a great companion product to SYWARE’s VisualCE.

Mark Read, President
SyntegraTech, Inc.

signup for our newsletter