How to return to report options from Print Preview mode?
jaustin
Member Posts: 21
When I run a report and choose the Preview option, the requested report appears on the screen. When I 'ESC' out or Close the window, the entire report is closed.
My question is... is there a way to return to the selection/option tabs (so the preview can be run again) instead of having the report close, where I then have to reopen the report to get back to the selection/option tabs?
Thanks,
My question is... is there a way to return to the selection/option tabs (so the preview can be run again) instead of having the report close, where I then have to reopen the report to get back to the selection/option tabs?
Thanks,
0
Comments
-
No. Not really.
Maybe you could check in the report if it was shown as preview (CurrReport.PREVIEW) and then start the report again when you return to place you were when you started the report... :-k
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
hi jaustin,
may be you can use send keys.
variable: vsendkeys (automation)
'Windows Script Host Object Model'.WshShell
for a quick view try to paste this code in request form->Oncloseform in report 111 (Customer - top 10 list)
Customer - OnCloseForm()IF ISCLEAR(vsendkeys) THEN CREATE(vsendkeys); IF CurrReport.PREVIEW THEN vsendkeys.SendKeys('%r');
regards,
Sendoh :idea:Sendoh
be smart before being a clever.0 -
i forgot this to direct you in option tab
vsendkeys.SendKeys('^{pgdn}');:sick:Sendoh
be smart before being a clever.0 -
sendoh wrote:hi jaustin,
may be you can use send keys.
variable: vsendkeys (automation)
'Windows Script Host Object Model'.WshShell
for a quick view try to paste this code in request form->Oncloseform in report 111 (Customer - top 10 list)
Customer - OnCloseForm()IF ISCLEAR(vsendkeys) THEN CREATE(vsendkeys); IF CurrReport.PREVIEW THEN vsendkeys.SendKeys('%r');
i forgot this to direct you in option tabvsendkeys.SendKeys('^{pgdn}');:sick:
This works when you run the report using the Object Designer, but not in the Navigation Pane.Navision noob....0 -
this will work with navigation pane..
IF CurrReport.PREVIEW THEN BEGIN vsendkeys.SendKeys('{F12}'); vsendkeys.SendKeys('{Enter}'); vsendkeys.SendKeys('^{pgdn}'); END;:whistle:Sendoh
be smart before being a clever.0 -
sendoh wrote:this will work with navigation pane..
IF CurrReport.PREVIEW THEN BEGIN vsendkeys.SendKeys('{F12}'); vsendkeys.SendKeys('{Enter}'); vsendkeys.SendKeys('^{pgdn}'); END;:whistle:
This will work if you are only working with the report. What if you run the report then preview, run another object. Click window select the report with sendkeys you have modified, then press ESC, notice that the open object is the second object you have run not the report. :whistle:Navision noob....0 -
ofcourse i'll make a code for that... it depends on the requirements..
Sendoh
be smart before being a clever.0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
