Notifications
Announcements
No record found.
Is there any way when calling a report from a page to skip the request page and go straight to the print preview?
*This post is locked for comments
Yes you can do that using setting USEREQUESTPAGE on the report properties to false or through the code you can set that property to false like below example.
SomeReport.USEREQUESTPAGE(FALSE);
SomeReport.RUNMODAL;
Where SomeReport is the variable of the report you want to run.
to do that you need a developer license or contact your nav partner.
it's needed to edit the called report in the dev.env. from object designer.
there select the last, empty line of the edited report (dataitems) and view the report properties, set the property userequestpage to false, save the report.
Yes you can do that in NAV. As archer said you need to have the developer license to access the code of NAV.
If you have the developer license then go to the page where your report is been called and have this code,
ReportVar.UseRequestPage (FALSE);
ReportVar.RUNMODAL;
For more info about the UseRequestPage please refer this link : msdn.microsoft.com/.../dd354924(v=nav.70).aspx
Change the properties of Report "UseRequestPage" NO.
When I do set the UserRequestPage to no or False the report goes straight to the printer. I would like to display the print preview without having to press the button.
this is not possible.
but you can save the report as pdf with command Report.SaveAsPdf, then copy the file from server to client using cu FileManagement (download/upload) and then run and open the created pdf document using your standard pdf tool. from there you can then decide to print the pdf document or not.
Thank you Jonathan, I really appreciate all your help!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.