Report Preview

abhi1901abhi1901 Member Posts: 102
Good Morning Everyone.

I have a query that can we directly preview a report.
Like I have made a button in a form and while click on that button I want to directly run a report dont want to display request fields.
Means we by click on button direct report should run we dont have to click again on preview button.

Is it possible??

Comments

  • navuser1navuser1 Member Posts: 1,329
    Possible.
    Now or Never
  • udayrmerudayrmer Member Posts: 171
    While running report

    REPORT.RUNMODAL(ReprtNum,FALSE,FALSE,Record)
    Uday Mer | MS Dynamics NAV Techno-Functional Consultant
  • abhi1901abhi1901 Member Posts: 102
    thanks uday.

    I have already tried it. But it is not Previewing any thing.
  • kinekine Member Posts: 12,562
    You do not have any C/AL code to do that. You can only simulate keystroke to press the preview button, nothing more, nothing less...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • udayrmerudayrmer Member Posts: 171
    Yes Kine is right you have to write code for it
    Uday Mer | MS Dynamics NAV Techno-Functional Consultant
  • navuser1navuser1 Member Posts: 1,329
    Use Sendkey function to achieve it.
    Now or Never
  • abhi1901abhi1901 Member Posts: 102
    Thanks..

    But Can you suggest me the code for doing that.
  • kinekine Member Posts: 12,562
    Just search mbuso for Sendkeys, I think that there is solution for the preview too… Have you tried it already?

    Have you tried to look for the SendKey functionality? Or are you just waiting for solution? 8)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • abhi1901abhi1901 Member Posts: 102
    Thanks.
    Got it.
Sign In or Register to comment.