Hi all, I have a report where the user enters an invoice number and then runs the report.
I would like to print a copy of the invoice when the user prints my report.
I have tried using Report.run but I am not recieving the filters from the user input
any help would be appreciated.
Regards
0
Comments
from C/SIDE Reference Guide
REPORT.RUN(Number [, ReqWindow] [, SystemPrinter] [, Record])
ReqWindow
Data type: boolean
Tells the system whether it should display the request window for the report. The request window is part of the report object.
REPORT.RUN(50020,False,True,?????)
how do I finish this line of code to have the filter?
from the same..
Recnavuser1.SETFILTER(Field, Filter);
REPORT.RUN(50020, false, true, Recnavuser1])
to copy the current filters to a variable use the COPYFILTERS command.
..or use GETFILTER and SETFILTER on the invoice no.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html