I got an email asking for some sample code to execute the PDF Export.
This snippet is from a VB6 app using ADO
=================================
Private Sub cmdExport_Click()
Dim myRS2 As ADODB.Recordset
Me.MousePointer = vbHourglass
Set myRS2 = New ADODB.Recordset
strSQL = "SELECT * From [" & TempTable & "]"
myRS2.Open strSQL, myConn, adOpenKeyset, adLockOptimistic, adCmdText
crScoresSummary.DiscardSavedData
crScoresSummary.Database.SetDataSource myRS2
crScoresSummary.ReadRecords
ExportReportAsPDF
Me.MousePointer = vbDefault
End Sub
Private Sub ExportReportAsPDF()
With crScoresSummary
.ExportOptions.DestinationType = crEDTDiskFile
.ExportOptions.FormatType = crEFTPortableDocFormat
.Export True
End With
End Sub
=================================
HTH
Wayne
Quote:
> I just read wonderful news that CR 8.5 can export reports directly to the
> PDF format. Is this functionality usable from within VB? Has anyone tried
> it?
> /Kalle Dahlberg