i want send output data into pdf fromate
-
i was complete my project the out put is send into Crystal Reports.but i need to send into PDF Fromate.how to do this program adv thanks lavan
-
i was complete my project the out put is send into Crystal Reports.but i need to send into PDF Fromate.how to do this program adv thanks lavan
You have to buy a PDF library, or find a free one that does what you want. I'm not sure how you'd integrate it with crystal reports.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
i was complete my project the out put is send into Crystal Reports.but i need to send into PDF Fromate.how to do this program adv thanks lavan
Depending on your version of crystal reports, crystal reports has an export to PDF method.
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim ExportPath As String = IO.Path.Combine(My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData, attachmentName & ".pdf")
' Set the path for the exported report
crDiskFileDestinationOptions = New DiskFileDestinationOptions
crDiskFileDestinationOptions.DiskFileName = ExportPath' Set the options to export the report to PDF format crExportOptions = rpt.ExportOptions With crExportOptions .DestinationOptions = crDiskFileDestinationOptions .ExportDestinationType = ExportDestinationType.DiskFile .ExportFormatType = ExportFormatType.PortableDocFormat End With ' Export the report rpt.Export()
with rpt being your crystal report. (code is in vb.net but I'm sure you can convert that)
-
i was complete my project the out put is send into Crystal Reports.but i need to send into PDF Fromate.how to do this program adv thanks lavan
I've seen PDFSharp[^] recommended several times although I've never used it myself. If you don't mind creating a file first then you can use one of the numerous PDF print drivers out there - I use Bullzip[^].
Dave
Generic BackgroundWorker - My latest article!
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus) -
You have to buy a PDF library, or find a free one that does what you want. I'm not sure how you'd integrate it with crystal reports.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
If I'm not mistaken pdf export can be done using the Crystal reports object model. You don't need additional software for that.
V.
Stop smoking so you can: Enjoy longer the money you save. Moviereview Archive