Run report to PDF

Hi,

I’m happy about this blog but how?!

I ran my report then save it but the pdf is blank. It contains just metadata.

Var rs As RowSet = db.SelectSQL("SELECT * FROM afa")

Var rep As New Report1
Var doc As New PDFDocument
if rep.Run(rs, doc) then
  Var f As FolderItem = SpecialFolder.Desktop.Child("proba228.pdf")
  doc.Save(f)
  f.Open
end if

image

1 Like

Thank you,
I would never have figured out this trick!

1 Like