Creating PDF Files Using Visual Basic

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vikas000000a
    New Member
    • Jan 2008
    • 46

    Creating PDF Files Using Visual Basic

    Hi all,
    I need to know how can I create a PDF file using visual basic. If somebody can tell me the step-by-step procedure for that, I will be very thankful. Actually, I have researched and tried some ways but all in vain. It seems I am clueless about it.

    Anticipating a quick response....
  • lotus18
    Contributor
    • Nov 2007
    • 865

    #2
    Originally posted by vikas000000a
    Hi all,
    I need to know how can I create a PDF file using visual basic. If somebody can tell me the step-by-step procedure for that, I will be very thankful. Actually, I have researched and tried some ways but all in vain. It seems I am clueless about it.

    Anticipating a quick response....
    I know that crystal report can export pdf files. If you found a solution to it, please tell me. thanks : )

    Rey Sean

    Comment

    • 9815402440
      New Member
      • Oct 2007
      • 180

      #3
      hi
      i have the code (project) but i dont know how to upload it
      if you can tell me then i can send it


      regards
      manpreet singh dhillon hoshiarpur

      Comment

      • shuvo2k6
        New Member
        • Jan 2008
        • 68

        #4
        Originally posted by 9815402440
        hi
        i have the code (project) but i dont know how to upload it
        if you can tell me then i can send it


        regards
        manpreet singh dhillon hoshiarpur
        u go to www.megashare.com then upload it. send the link here, that link is sent by that site.

        Regards,
        shuvo2k6

        Comment

        • lotus18
          Contributor
          • Nov 2007
          • 865

          #5
          Originally posted by 9815402440
          hi
          i have the code (project) but i dont know how to upload it
          if you can tell me then i can send it


          regards
          manpreet singh dhillon hoshiarpur
          Where do you want to upload? Here?

          Comment

          • 9815402440
            New Member
            • Oct 2007
            • 180

            #6
            hi

            download from following link
            http://www.MegaShare.c om/350103

            password is 123

            then use following code to convert. (it converts text files only)

            Dim objVBPDF As New VBPDF
            Dim i As Integer
            objVBPDF.Source File = txtSourceFile.T ext
            objVBPDF.Target File = txtTargetFile.T ext
            objVBPDF.Record sPerPage = txtRPP
            objVBPDF.Width = txtReportWidth
            objVBPDF.FontSi ze = txtFont.Text
            For i = 0 To optFont.Count - 1
            If optFont(i).Valu e Then
            strFontName = optFont(i).Capt ion
            Exit For
            End If
            Next
            objVBPDF.Font = strFontName
            objVBPDF.Create PDFFile

            regards
            manpreet singh dhillon hoshiarpur

            Comment

            • shuvo2k6
              New Member
              • Jan 2008
              • 68

              #7
              Originally posted by 9815402440
              hi

              download from following link
              http://www.MegaShare.c om/350103

              password is 123

              then use following code to convert. (it converts text files only)

              Dim objVBPDF As New VBPDF
              Dim i As Integer
              objVBPDF.Source File = txtSourceFile.T ext
              objVBPDF.Target File = txtTargetFile.T ext
              objVBPDF.Record sPerPage = txtRPP
              objVBPDF.Width = txtReportWidth
              objVBPDF.FontSi ze = txtFont.Text
              For i = 0 To optFont.Count - 1
              If optFont(i).Valu e Then
              strFontName = optFont(i).Capt ion
              Exit For
              End If
              Next
              objVBPDF.Font = strFontName
              objVBPDF.Create PDFFile

              regards
              manpreet singh dhillon hoshiarpur
              Thanks for uploading in my sent address. Here VBPDF is a class, so it must have definition.

              Comment

              • lotus18
                Contributor
                • Nov 2007
                • 865

                #8
                Is that working? If so, nice job! This would serve as a future reference : )

                Rey Sean

                Comment

                Working...