|
-
Jul 4th, 2005, 02:45 AM
#1
Thread Starter
Lively Member
convert crystal report to pdf format?
Hi all,
how to convert a crystal report into pdf format during run time.
please feel free to give advice.
thankx
Last edited by kkc; Jul 7th, 2005 at 08:41 AM.
Reason: resolve
-
Jul 4th, 2005, 10:15 AM
#2
Hyperactive Member
Re: convert crystal report to pdf format?
cr actually has a capability of writing in pdf format
-
Jul 4th, 2005, 11:08 AM
#3
Re: convert crystal report to pdf format?
If you use the CR Viewer in your project, then you can use the Export button and add the appropriate dlls (from CR) to allow the
user to export to pdf file.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 4th, 2005, 10:08 PM
#4
Thread Starter
Lively Member
Re: convert crystal report to pdf format?
i would appreciate if some one can post a sample or a link.
thankx.
-
Jul 5th, 2005, 12:33 AM
#5
Addicted Member
Re: convert crystal report to pdf format?
Try this
VB Code:
Dim ReportApp As New CRAXDRT.Application
Dim ReportObject As CRAXDRT.Report
Set ReportObject = ReportApp.OpenReport(myReport, 1)
ReportObject.Database.LogOnServer "PDSODBC.DLL", myServer, myDatabase, myDbUserId, myDbPassword
With ReportObject
With .ExportOptions
.DestinationType = crEDTDiskFile
.FormatType = crEFTPortableDocFormat
.DiskFileName = myOutputName
End With
.PaperSize = myPaperSize
.PaperOrientation = myPaperOrientation
.Export False
End With
-
Jul 5th, 2005, 01:11 AM
#6
Re: convert crystal report to pdf format?
If you want the CR Viewer then an example is in my signature. "VB6/Crystal Report Ex" 
The export is part of the viewers "Export" button. No code needed to export.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 7th, 2005, 08:40 AM
#7
Thread Starter
Lively Member
Re: convert crystal report to pdf format?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|