Hi Experts,
Can pdfCreator save my report to pdf file by sales inv no?
Example:
When i print "Sales Inv" rpt and filtered by inv no: 1000..3000
and i expect pdfCreator to create and save 3 individual reports which like 1000.pdf, 2000.pdf and 3000.pdf.
Unfortunately at the moment pdfCreator save all records that belong to inv no 1000..3000 into a single pdf file.
How to implement tis??
Below is my coding:
IF ISCLEAR(PDFCreator) THEN
CREATE(PDFCreator);
IF ISCLEAR(PDFCreatorError) THEN
CREATE(PDFCreatorError);
filedir := 'C:\sentbox';
filename := "Sales Invoice Header"."No."+'.pdf';
PDFCreatorError := PDFCreator.cError;
IF PDFCreator.cStart('/NoProcessingAtStartup',TRUE) = FALSE THEN
ERROR('Status: Error: ' + PDFCreatorError.Description);
PDFCreatorOption := PDFCreator.cOptions;
PDFCreatorOption.AutosaveDirectory := filedir;
PDFCreatorOption.AutosaveFilename := filename;
PDFCreatorOption.UseAutosave := 1;
PDFCreatorOption.UseAutosaveDirectory := 1;
PDFCreatorOption.AutosaveFormat := 0;
PDFCreator.cOptions := PDFCreatorOption;
PDFCreator.cClearCache();
DefaultPrinter := PDFCreator.cDefaultPrinter;
PDFCreator.cDefaultPrinter := 'PDFCreator';
PDFCreator.cPrinterStop := FALSE;
Thank in advace~~
0
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
If i call each invoice in a separate report i wonder how i'm gotta to specify the filtering? User might need to enter the filtering "date", "invoice no" in the report itself.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thank YOU VERY MUCH~~~ UR APPROACH WORKED WELL~~~~!!!!!!!!
Please, add prefix [solved] into subject of your first post in this thread...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.