HOW CAN I RUN MY REPORT DIRECTLY IN PREVIEW MODE

srinictsrinict Member Posts: 58
Dear Friends,

When we click on the run button for generating the report, once again it will ask for
Print, Preview and cancel. How can i directly see the preview of the report on click of the
run button, with out clicking on the Preview button once again.


Thanks in Advance,

Regards,
Srinivas

Comments

  • mohana_cse06mohana_cse06 Member Posts: 5,504
    srinict wrote:
    Dear Friends,

    When we click on the run button for generating the report, once again it will ask for
    Print, Preview and cancel. How can i directly see the preview of the report on click of the
    run button, with out clicking on the Preview button once again.


    Thanks in Advance,

    Regards,
    Srinivas

    Its not possible Srinivas :thumbsdown:
  • idiotidiot Member Posts: 651
    It is possible
    REPORT.RUN(Number [, ReqWindow] [, SystemPrinter] [, Record])
    Look in the help
    NAV - Norton Anti Virus

    ERP Consultant (not just Navision) & Navision challenger
  • kinekine Member Posts: 12,562
    1) CAN YOU LOOK INTO THIS: Forum rules, mainly point 3.1. :whistle:
    2) This was already discussed on the forum. It cannot be done by common way. You can only use the SendKeys to simulate the correct keystroke to run the preview.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • kinekine Member Posts: 12,562
    idiot wrote:
    It is possible
    REPORT.RUN(Number [, ReqWindow] [, SystemPrinter] [, Record])
    Look in the help

    He want to run it in preview mode, not printing it without request window... :whistle:
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    idiot wrote:
    It is possible
    REPORT.RUN(Number [, ReqWindow] [, SystemPrinter] [, Record])
    Look in the help
    :thumbsdown:
  • garakgarak Member Posts: 3,263
    1. Your subject is not "The best". check before the forum rules. There is descr. how the subject should be.
    2. To show the preview is not possible with standard c/al
    2.1. But with using Windows Scripting Host and there the SendKey Functions

    So, search the forum for this things and you will find a solution ;-)
    Do you make it right, it works too!
  • kinekine Member Posts: 12,562
    garak wrote:
    1. Your subject is not "The best". check before the forum rules. There is descr. how the subject should be.
    2. To show the preview is not possible with standard c/al
    2.1. But with using Windows Scripting Host and there the SendKey Functions

    So, search the forum for this things and you will find a solution ;-)

    Thanks Garak for assisting me... 8)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    kine wrote:
    garak wrote:
    1. Your subject is not "The best". check before the forum rules. There is descr. how the subject should be.
    2. To show the preview is not possible with standard c/al
    2.1. But with using Windows Scripting Host and there the SendKey Functions

    So, search the forum for this things and you will find a solution ;-)

    Thanks Garak for assisting me... 8)

    No problem master :lol:
    Do you make it right, it works too!
  • Sandeep_PrajapatiSandeep_Prajapati Member Posts: 151
    WshShell ---- Automation ---- 'Windows Script Host Object Model'.WshShell
    yourReport.RUN;
    CREATE(WshShell);
    WshShell.SendKeys('%{v}');
    CLEAR(WshShell);
    
    Sandeep Prajapati
    Technical Consultant, MS Dynamics NAV
  • garakgarak Member Posts: 3,263
    WshShell ---- Automation ---- 'Windows Script Host Object Model'.WshShell
    yourReport.RUN;
    CREATE(WshShell);
    WshShell.SendKeys('%{v}');
    CLEAR(WshShell);
    

    I would wait until the report is open
    Do you make it right, it works too!
  • kinekine Member Posts: 12,562
    You don't need to wait, the keys will be processed by the client after the report is opened...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • BeliasBelias Member Posts: 2,998
    kine wrote:
    You don't need to wait, the keys will be processed by the client after the report is opened...
    even if the report is not run modally? :-k
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • garakgarak Member Posts: 3,263
    kine wrote:
    You don't need to wait, the keys will be processed by the client after the report is opened...

    for this case it is true. On some other processes like opening some form from the menu with sendkeys you should wait until the forms are open.

    But for the report here u are right kamil
    Do you make it right, it works too!
Sign In or Register to comment.