hi,
I think you should add the following line before doing anything with
your "Report" Object.
Set Report=3DNew CrystalReport
And then,
Report.SetReportSource
'--All other code goes here...
Hope this helps,
N.T.GOPALAKRISHNAN
----- Original Message -----
From: Julieta Pe=F1a
To: professional vb
Sent: Wednesday, April 18, 2001 9:40 PM
Subject: [pro_vb] Crystal Reports Problem
I have a problem exporting a report in Crystal Reports. I need to
export a
report to HTML format from Visual Basic code. I found code to do this:
Dim Report As Crystal.CrystalReport
Dim ExportOptions As CRAXDRT.ExportOptions
Report.SetReportSource
Report.ExportOptions.FormatType =3D crEFTHTML40
Report.ExportOptions.DestinationType =3D crEDTDiskFile
Report.ExportOptions.HTMLFileName =3D "c:\report.html"
Report.Export False
the problem is, I don't know which is the library I have to select,
because
I selected everything about Crystal Report 8, but the program still
sends a
message error about there is no object set. And of course all the
properties
aren't been recognized.
What should I do?