N
Nancy.
Hello:
Hope you can help me.
Below is the code in Windows Forms VB to Export
the "Notifications.rpt" Crystal reports to PDF. This
report is connected to a dataset.
The oRptNOTE.Export() line is failing. I am not sure
why.
Dim oRptNOTE As Notifications
oRptNOTE = New Notifications
oRptNOTE.SetDataSource(Dataset12.notification)
Dim DiskOpts As
CrystalDecisions.Shared.DiskFileDestinationOptions = New
CrystalDecisions.Shared.DiskFileDestinationOptions
oRptNOTE.ExportOptions.ExportDestinationType =
CrystalDecisions.[Shared].ExportDestinationType.DiskFile
oRptNOTE.ExportOptions.ExportFormatType =
CrystalDecisions.
[Shared].ExportFormatType.PortableDocFormat
DiskOpts.DiskFileName = "c:\temp\test2.pdf"
oRptNOTE.ExportOptions.DestinationOptions =
DiskOpts
oRptNOTE.Export()
Hope you can help me.
Below is the code in Windows Forms VB to Export
the "Notifications.rpt" Crystal reports to PDF. This
report is connected to a dataset.
The oRptNOTE.Export() line is failing. I am not sure
why.
Dim oRptNOTE As Notifications
oRptNOTE = New Notifications
oRptNOTE.SetDataSource(Dataset12.notification)
Dim DiskOpts As
CrystalDecisions.Shared.DiskFileDestinationOptions = New
CrystalDecisions.Shared.DiskFileDestinationOptions
oRptNOTE.ExportOptions.ExportDestinationType =
CrystalDecisions.[Shared].ExportDestinationType.DiskFile
oRptNOTE.ExportOptions.ExportFormatType =
CrystalDecisions.
[Shared].ExportFormatType.PortableDocFormat
DiskOpts.DiskFileName = "c:\temp\test2.pdf"
oRptNOTE.ExportOptions.DestinationOptions =
DiskOpts
oRptNOTE.Export()