Export PDF with VB.net
Hi,
I try to run this code in VB.net 2005
Dim export As FastReport.Export.Pdf.PDFExport = New FastReport.Export.Pdf.PDFExport()
report1.Export(export, "storeTransaction_")
It gives me error Object reference set to null!!
What I'm doing wrong?
Thanks
I try to run this code in VB.net 2005
Dim export As FastReport.Export.Pdf.PDFExport = New FastReport.Export.Pdf.PDFExport()
report1.Export(export, "storeTransaction_")
It gives me error Object reference set to null!!
What I'm doing wrong?
Thanks
Comments
Did you prepared the report first?
report1.Prepare()
Dim export As FastReport.Export.Pdf.PDFExport = New FastReport.Export.Pdf.PDFExport()
report1.Export(export, "storeTransaction_")
but the report dosn't show some data when I export it to PDF (it shows OK when I view the report though)
Any help with that?
Thank you,
I removed the ShapeObject around the data/text and the PDF was created OK.
It seems that exporting to PDF has some problems with ShapeObject. Is that confirmed??
Thanks,
Yes, I set the ShapeObject to (send to back) and it works perfect now.
Great feature.
Thanks again,