Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

export from crystal without using crystal viewer

Status
Not open for further replies.

jgo333n

Programmer
Jul 16, 2007
27
GB
I have a Crystal report in memory the dataset is populated but when i try to export to pdf all i get is a blank report.
The code is below can someone spot what i am missing?

Dim crystalReport As ReportDocument
Dim strFileName As String
Dim strExportPath
For Each objReport As clsCrystalReport In objcolReports
crystalReport = New ReportDocument
strFileName = objReport.FullPath + objReport.ReportName
strExportPath = objReport.ExportPath + objReport.ExportName

crystalReport.Load(strFileName)
crystalReport.SetDataSource(objReport.DataSource)
crystalReport.Refresh()
crystalReport.ExportToDisk(CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat, strExportPath)
Next

 
ignore this i have been an idiot i was passing in the wrong parameters in to the stored procedure s thus getting no data.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top