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.

13. PRINTING DUPLICATE COPIES13.1 OverviewFor legal reasons, it may be useful to keep an identical copy of a report (an invoice for example).Furthermore, due to the large amount of data to process (statistical reports for example), some reports maytake quite a long time to generate.The Duplicate feature automatically proposes a solution to this problem.The principle is straightforward:When editing a report (created in the report editor or by programming), its identical copy can be generatedand stored in a file in ".dpl" format.This allows you to re-edit a duplicate copy of the report. The data is not processed again so it is protectedagainst the modifications and this re-edit operation is performed immediately.The creation of a duplicate copy can be performed:• from the print preview (WinDev only).•by programming.This duplicate copy can be signed or not.Notes:• Printing a report with duplicate copies slows the print down. Indeed, the duration for creating the duplicatecopy is included in the print duration. We advise you to run performances tests.•Printing a page of a report with duplicate copy triggers the creation of the duplicate copy for the entirereport.13.2 Creating a duplicate copy from the print preview(WinDev only)13.2.1 Print available by defaultThe print preview proposes a button allowing the user to create a duplicate copy of the report currently displayed.When this button is clicked, a file picker allows the user to:• enter the name of the duplicate file that will be created.• specify the certificate that will be used to sign the duplicate. The signature of the duplicate is optional.By default, the duplicate:• is saved in the directory of the application.• has no password.• is named: Dupli_YYYYMMDD_HHMMSS.dpl.Note: To modify these parameters, you can use iParameterDuplicate before displaying the print preview window.13.2.2 Customizing the created duplicate copyTo modify the default parameters for the duplicate copies created from the print preview, you have the abilityto use iParameterDuplicate associated with the iDplPrintout constant.130Part 1: Report editor

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

Saved successfully!

Ooh no, something went wrong!