Hi,
I have a report that shows a particular section via a checkbox (l_checkbox) in the report's request form.
I want to convert this report to pdf and email it using this line
runmodal(reportid, FALSE, TRUE, table)
my question is, how do i pass a value to the checkbox in the requestform before runmodal is called, if the requestform should not be opened in the first place?
diane
0
Comments
In the report create a function to set the value of that bolean.
Myreport.setvariable(true)
Myreport.setrequestform(false);
Myreport.settableview(mytable);
Myreport.runmodal;
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
thanks for the reply, but without using runmodal(,,,)
how do you sendthe report directly to the system printer (as the third parameter in the runmodal does) instead of the printer selected through the Printer Selection table?
diane
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Data item :
Integer
Integer
Calling report :
MyReport.USEREQUESTFORM(FALSE);
MyReport.RUN();
Question : how to Pass Report ID from setup to "MyReport" variable. ](*,)
Thanks
Senthil