Cdu 50003
Cdu 50003
{
OBJECT-PROPERTIES
{
Date=16/02/21;
Time=20:20:29;
Modified=Yes;
Version List=;
}
PROPERTIES
{
OnRun=BEGIN
// Export Invoices example
// This example is based on PDF Printer 10.2 or later.
// Please go to www.bullzip.com to download the printer.
// There is a counter that limits the number of invoices printed to
PDF.
// NOTE: You should change the paths to match the location of the files
on your system.
CREATE(pdfSettings);
CREATE(pdfUtil);
counter := 0;
REPEAT
// Set file name for output file.
pdfFileName := baseFolder + '\Output\Invoice ' + header."No." +
'.pdf';
// Add a background.
// If a professional or expert license is installed the quality of
the
// background will improve.
pdfSettings.SetValue('Superimpose', backgroundFileName);
pdfSettings.SetValue('SuperimposeLayer', 'bottom');
counter := counter + 1;
UNTIL (header.NEXT=0) OR (counter >= 2);
END;
END;
}
CODE
{
VAR
header@1160840000 : Record 112;
header2@1160840006 : Record 112;
pdfFileName@1160840002 : Text[250];
statusFileName@1160840005 : Text[250];
certificateFileName@1160840001 : Text[250];
certificatePassword@1160840009 : Text[30];
backgroundFileName@1160840008 : Text[250];
mergeBeforeFileName@1160840011 : Text[250];
mergeAfterFileName@1160840012 : Text[250];
baseFolder@1160840010 : Text[250];
pdfSettings@1160840003 : Automation "{A3F69B34-EAD8-4A3B-8DD5-C1C3FD300D67}
4.0:{F6C83BBD-F620-4F13-8320-9C51D1996EC4}:'Bullzip - PDF Writer
Automation'.ComPdfSettings";
pdfUtil@1160840004 : Automation "{A3F69B34-EAD8-4A3B-8DD5-C1C3FD300D67} 4.0:
{F9444F96-C32A-4745-9FF3-9059B92CDAB0}:'Bullzip - PDF Writer
Automation'.ComPdfUtil";
pdfFolderName@1160840007 : Text[200];
counter@1160840013 : Integer;
BEGIN
END.
}
}