Options

Print Preview on reports

H005444H005444 Member Posts: 10
Hello everybody,

Sombody knows how I can show a report-preview whitout having the request form first?( even not the blank request form)

Thanks

Comments

  • kinekine Member Posts: 12,562
    No way, only export to HTML and open the HTML file...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Morten_SolbergMorten_Solberg Member Posts: 24
    Hello H005444

    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
  • H005444H005444 Member Posts: 10
    Thanks Morten

    I tried this and it works.

    Have a nice day.
Sign In or Register to comment.