CREATE(WshShell);
REPORT.RUN(REPORT::"a report",TRUE,FALSE); //don't use RUNMODAL !
//SLEEP(200); //maybe you have to use this kode...??
//Depend on Language:
WshShell.SendKeys('%{v}'); //same as Alt+v (Preview)
CLEAR(WshShell);
you can also search in the forum: sendkeys
and....
Congratulations to kine with the 2000 topic posts !
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
There is a way to do this, with an automation object:
Variable:
WshShell Automation 'Windows Script Host Object Model'.WshShell
CREATE(WshShell);
REPORT.RUN(REPORT::"a report",TRUE,FALSE); //don't use RUNMODAL !
//SLEEP(200); //maybe you have to use this kode...??
//Depend on Language:
WshShell.SendKeys('%{v}'); //same as Alt+v (Preview)
CLEAR(WshShell);
you can also search in the forum: sendkeys
and....
Congratulations to kine with the 2000 topic posts !
regards Morten
I tried this and it works.
Have a nice day.