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.
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...
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)
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
An example:
Regards