Report Request Form

A solution is required to email a html version of the sales statement, I have done this by adding this line of code into report 116. REPORT.SAVEASHTML(116,‘C:\EmailAttach.HTML’,false,cust3); I will then use the outlook object to email the attachment. The problem is I dont know how to pass through the parameters like ‘show overdue’ and ‘date filter’. Can anybody please help?

Hi! Would it help if you make a object of this report? Then you can program a function into the report which sets the needed filters and after you have called this function make the savehtml: r = report-object r.init; r.setFilters(FALSE,DateFilter); (<- function added by you to the report) r.SAVEASHTML(FileName); in report the new function setFilters looks something like this: Overdue := Par1; DataItem.SETFILTER(“DateFilter”,Par2); i didn’t tested this but i think it should work …