One button click "To Print" in form, report

pink0902pink0902 Member Posts: 11
Hi all



I have Problem. My financial consulting wonna "If you click print button, it must straightway print. means, don't show Report. Because its POS program. and print must very fast". I learning but i can't do it. how print report data to form ?
Pleaseeeeeeeeeeee Help Me. :(:(:(:(:(:(:(

PINK...

Comments

  • kinekine Member Posts: 12,562
    You mean something like used in standard "Post+Print" functionality? It means running the report without request form? There is parameter for that when using REPORT.RUNMODAL... :wink:
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    Your "friend" is here the command Report.run / .runmodal.

    An example:
    //REPORT.RUNMODAL(Number [, ReqWindow] [, SystemPrinter] [, Record])
    RecordVariable.reset;
    RecordVariable.setrange(SomeField,Value);
    REPORT.RUNMODAL(121,false,true,RecordVariable); //The Report 121 print, without showing the request form, directly on the Windows default printer (parameter true, set to false if you need the printer based on the Printer Selection table)
    

    Regards
    Do you make it right, it works too!
Sign In or Register to comment.