Call preview report in code
gonzy1981
Member Posts: 156
Do you know if i can call report in mode preview??
Report206.USEREQUESTFORM(FALSE);
Report206.RUN;
Report206.USEREQUESTFORM(FALSE);
Report206.RUN;
0
Comments
-
i have written this code in a form button
on 'on push' trigger i have written the code which u have mentioned
but report is not opend in preview mode?0 -
Searched for it a long time...
It seems not possible, what I did is print it to html (SAVEASHTML) and showed the html file (HYPERLINK°.0 -
No, there is no way how to run the report in Preview mode. You can only print it on default printer without the request form, but you cannot run it automtically into preview.0
-
Ok, thanks.
I'll do it as SAVEASHTML.0 -
If I get you correctly,
that can be done using sendkeys.
WshShell Automation 'Windows Script Host Object Model'.WshShellyourReport.RUN; CREATE(WshShell); WshShell.SendKeys('%{v}'); CLEAR(WshShell);Sandeep Prajapati
Technical Consultant, MS Dynamics NAV0 -
Sandeep Prajapati wrote:If I get you correctly,
that can be done using sendkeys.
WshShell Automation 'Windows Script Host Object Model'.WshShellyourReport.RUN; CREATE(WshShell); WshShell.SendKeys('%{v}'); CLEAR(WshShell);
Its working Perfect
good work dude0 -
no, i don't think he can use this trick, because he doesn't show the request form ---> no preview buttonSandeep Prajapati wrote:If I get you correctly,
that can be done using sendkeys.
WshShell Automation 'Windows Script Host Object Model'.WshShellyourReport.RUN; CREATE(WshShell); WshShell.SendKeys('%{v}'); CLEAR(WshShell);0 -
Belias wrote:
no, i don't think he can use this trick, because he doesn't show the request form ---> no preview buttonSandeep Prajapati wrote:If I get you correctly,
that can be done using sendkeys.
WshShell Automation 'Windows Script Host Object Model'.WshShellyourReport.RUN; CREATE(WshShell); WshShell.SendKeys('%{v}'); CLEAR(WshShell);
Hi Belias, You are absolutely correct. If he sets USEREQUESTFORM = false, the trick will not work. I assumed that, he is not showing the request form only in an attempt to go directly to preview mode. So the above trick was suggested by me.
Sandeep Prajapati
Technical Consultant, MS Dynamics NAV0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

