I’m trying to run a report from a codeunit using a pdf creator as a default printer. I have the code implemented to do so but when I call the function Report. Runmodal the report enters in a loop of some kind because it tries to print the report innumerous times. How can I control the report.runmodal?
The parameters I’m using are the following: REPORT.RUNMODAL(31003303,FALSE,TRUE,RecPrint);
31003303 is the report number, false no to display the requisition window, true to use the default printer that is set to pdf creator and RecPrint is the data I’m sending to this report.
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Tino Ruijs
Microsoft Dynamics NAV specialist
Please send the complete code and may be also the dataitems where the reports is built upon.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog