13.07.2015 Views

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Caution: If the print destination is a file in HTML, PDF, XML or RTF format, the following points must be checked:• You have the rights to write into the directory in which the document will be generated (the documentis generated in the site directory by default).If you generate a report in PDF format, this file can be saved in the data directory (path returned byfDataDir).If you generate a report in HTML format, this file must be saved in the _WEB directory of the site (pathreturned by fWebDir).• A specific name must be used for each document generated on the server. Otherwise, several simultaneousprints would overwrite the prints already performed.Use GetIdentifier or TimeSys to give a name to your reports (for example: FileName = "CustomerReport"+ TimeSys() + ".HTML").This principle must be adapted according to the data source used in each report.12.1.3 Principle for printing in WinDev MobilePrinciple for printing a report in iOSThe principle for printing a report in iOS is straightfoward: a PDF file is created when printing the report. Then,all you have to do is open this PDF file in the appropriate software and print it on the printer configured for the<strong>com</strong>puter used.1. Specify the print mode of the report (preview, direct print, generation of an HTML page, …) with iPreviewor iDestination.2. Start the print in PDF format with iPrintReport.This principle must be adapted according to the data source used in each report.Principle for printing a report in WinDev MobileThe principle for printing a report in WinDev Mobile is straightfoward: a PCL file is created when printing thereport and this file is sent to the destination printer. The content of the PCL file is specific to the printer used.The steps for printing a report created in the report editor are as follows:1. Configuring the print parameters:• Printing on the printer selected by the user.• Printing on a printer selected during the development.2. Printing the report.This principle must be adapted according to the data source used in each report.Notes:• The result of the print differs according to the selected printer.• In Windows Pocket 2002, the available memory is not sufficient to print reports.Case 1: Printing on a printer selected by the userA specific window allows the user to choose the printer that will be used. The user can add a new printer if noprinter is listed.To perform this type of print, you must:1. Use iConfigure or iParameter (without specifying any parameters).2. Use iPrintReport and specify the name of the report to print.112Part 1: Report editor

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!