Hello,
I want to save a document as pdf-file automatically after printing. So I have added a function "SaveAsPDF" in OnPostReport-Trigger. User can choose a normal printer for output or the "pdfCreator" (then he gets two pdf-files, one file is saved automatically and one file has to be saved manually). Everything works fine with normal printers. But when the user chooses pdfCreator the automatic save only works when the report has only one page. Otherwise two pdf-files will be opened for manual save.
Does anybody knows the reason for this behavior or (what I hope) a solution?
I use Navison 4.0 (SP3) and pdfCreator 1.2.0 (newest version).
Thanks in advance for any tip!
Bettina
0
Comments
I always set the printer conditions from the form or codeunit, then execute the report.
When you are setting this within the report itself, I would not think you could get the same behavior since it has already generated the report at the time of the post report trigger.
http://mibuso.com/blogs/davidmachanick/
Try setting the output from a form or codeunit, then call the report from the same place.
http://mibuso.com/blogs/davidmachanick/
|To-Increase|
Davmac1, I start the second report from a codeunit, but the codeunit is called from the first report. In the first report the user can decide if it is necessary to create the second pdf-file and thats why I have to start it from the first report.
Thanks for your thoughts.