Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. i want send output data into pdf fromate

i want send output data into pdf fromate

Scheduled Pinned Locked Moved C#
tutorial
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lavankumar
    wrote on last edited by
    #1

    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

    C T D 3 Replies Last reply
    0
    • L lavankumar

      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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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.

      V 1 Reply Last reply
      0
      • L lavankumar

        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

        T Offline
        T Offline
        Tom Deketelaere
        wrote on last edited by
        #3

        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)

        1 Reply Last reply
        0
        • L lavankumar

          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

          D Offline
          D Offline
          DaveyM69
          wrote on last edited by
          #4

          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)

          1 Reply Last reply
          0
          • C 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.

            V Offline
            V Offline
            V 0
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups