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.

Example:// Configure the duplicate of the invoiceiParameterDuplicate(iDplPrintout, "C:\Temp", ..."MyDuplicate_%d_%h", "DDDD DD MMMM YYYY", "HH.MM.SS")// Print the duplicate copyiPreview()iPrintReport(RPT_Invoice_Report)iParameterDuplicate allows you to:• customize the options for duplicate copy proposed by default by the button.• automate the print of a duplicate copy from the print preview. Indeed:• the duplicate copy will be generated during the print (performed from the print preview).• if an annotation or an edit control is modified in the print preview, a new duplicate copy will be generatedduring the next print.• if the print is performed on several printers, a duplicate copy will be generated for each printer.Note: The list of duplicate files created during the last print is returned by iLastFile.13.3 Creating a duplicate copy by programmingTo create a duplicate copy by programming:1. Use iParameterDuplicate (associated with the iDplPrintout constant) to configure the options for creatingthe duplicate copies.2. Use iDestination and specify that the print must be performed on a printer. The duplicate copy will becreated during the print.To stop printing the duplicate copies, use iParameterDuplicate (associated with the iDplNone constant).13.4 Signing a duplicate copyThe duplicate copies can be signed via a certificate. This signature ensures the integrity of the reports stored.The signature is included in the duplicate.This signature automatically perform a date and time stamping. If may be required legally for some uses.The signature standard used is PKCS7.You have the ability to sign a duplicate copy via a certificate:• from the print preview (See "Creating a duplicate from the print preview" in this page.•by programming:• The signature of duplicate copies is performed via functions:iDestinationiParameterDuplicateConfigures the print destination of the reportConfigures the automatic creation of the duplicate copy generated during thenext print.• the signature of a duplicate file is checked by CertificateCheckDuplicate.Part 1: Report editor 131

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

Saved successfully!

Ooh no, something went wrong!