I have the following code:
report = thiscomponent.parent.ReportDocuments.getByName("tasks")
report.open
dim aFilterData(0) As New com.sun.star.beans.PropertyValue
aFilterData(0).Name = "FilterName"
aFilterData(0).Value = "writer_pdf_Export"
report.storeToURL("file:///C:/users/david/desktop/tasks.pdf", aFilterData)
The report renders fine but storeToURL generates the following error:
BASIC runtime error.
Property or method not found: storeToURL.
Maybe the open report is not a document that can be saved?