CR 8.5 PDF export and VB 
Author Message
 CR 8.5 PDF export and VB

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



Fri, 29 Aug 2003 04:07:59 GMT  
 CR 8.5 PDF export and VB
Kalle;

Yes, I  am doing just that. I create a  recordset in VB, pass that to the CR
report and then call the  PDF export option. Works great.

Actually, Seagate added the PDF export as an add-in on  CR8 (you can get the
package from their web site - Free) for several months. I had been using
that with CR8 with  mostly success for about six months but I had one report
that blew up when  you tried the  PDF export on it. With 8.5 it works great.

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



Fri, 29 Aug 2003 10:47:07 GMT  
 CR 8.5 PDF export and VB
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



Fri, 29 Aug 2003 20:00:45 GMT  
 CR 8.5 PDF export and VB
Thanks for your help!

Can you also decide from within the VB code what name the PDF-file gets?

Regards,
Kalle Dahlberg

Wayne Wengert skrev i meddelandet ...

Quote:
>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



Sat, 30 Aug 2003 06:27:11 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. CR 8.5 Export to PDF perfromance problems etc

2. CR 8.5 export to PDF problem...HELP!

3. How send a report in CR 8.5 /VB 6 with PDF attachment

4. Export to PDF only from CRviewer (RDC 8.5 - VB 6.0)

5. CR 8.5 - include fonts in PDF

6. CR 8.5 -- Can you stream to PDF?

7. Export to PDF to stream? Crystal 8.5

8. Crystal Reports 8.5 PDF Export

9. Problem exporting PDF Files with Crystal Report 8.5

10. Problem using Crystal Report 8.5 to export PDF in Visual Basic 6.0

11. Exporting To PDF, RTF using VB6 (SP4) Crystal 8.5

12. Problems with crystal 8.5 and vbscript pdf export

 

 
Powered by phpBB® Forum Software