I'm running a report using the Report.RUN; command and it works. However I don't want the request box to pop up. I tried running with the command REPORT.RUN(4129,FALSE,FALSE,report); but it didn't run the report completely. Is there something I'm missing in the code?
0
Comments
BTW careful with RUN since that is not modal. What that means is that the system will launch the report but then move on with to the next line of code which might explain why your report did not finish when you used REPORT.RUN.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
When it runs is asks for filters for the report. How can I get it from popping up?
make USEREQUESTFORM(FALSE) before calling RUNMODAL.
Br,
Igor Beeone
I want the re form not to be displayed, but I wnat the system print dialog to show so the user can select no of copies to print. Using this code:
MyRecord.COPY(Rec);
MyRecord.SETRANGE("Document Type", "Document Type");
MyRecord.SETFILTER("No.","No.");
MyReport.SETTABLEVIEW(InteractionLogEntry);
MyReport.USEREQUESTFORM := FALSE;
MyReport.RUNMODAL();
This doesnt show the request form but also doesnt show the system dialog, and no printer is set for this report.
Is this possible in Navision?
InteractionLogEntry.SETCURRENTKEY("Entry No.");
InteractionLogEntry.SETFILTER("Document No.",Rec."Document No.");
REPORT.RUNMODAL(REPORT::"name of your report",FALSE,FALSE,InteractionLogEntry);