We are trying to migrate from report_saveas to a5w_report_saveas but seem to be struggling with the syntax...

In the code below, if I change to aw5 I get an error stating Incorrect argument type , I would be grateful if someone could point me in the right direction with the Syntax

Have looked and looked for XBasic help to no avail


dim opts as p

opts.filter = "Invoice_header.invoice_number = "+invoice

dim pdfopts as p

dim source as c

Dim filename as c = Request.GetRequestTempFileName("pdf")

filename = report.saveas(layout,"pdf","","",Source,.f.,"",NULL_VALUE(),opts)