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. PDF conversion issue

PDF conversion issue

Scheduled Pinned Locked Moved C#
helpcom
6 Posts 4 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.
  • S Offline
    S Offline
    Santhosh Sebastian Mattathil
    wrote on last edited by
    #1

    Hai friends I've been trying to convert files (office) to pdf. For that i installed SaveAsPDFandXPS.exe from Microsoft and iam using Office 2007, it works in office 2007 but creates problem in a machine with office 2003. object format = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatPDF; the code above is not supported in office 03 but s supported in 07. Is there any way by which i can convert the file to pdf in office 03. Thanks in advance for all your helping hands.. :omg: Santo:thumbsup:

    Santhosh

    C A 2 Replies Last reply
    0
    • S Santhosh Sebastian Mattathil

      Hai friends I've been trying to convert files (office) to pdf. For that i installed SaveAsPDFandXPS.exe from Microsoft and iam using Office 2007, it works in office 2007 but creates problem in a machine with office 2003. object format = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatPDF; the code above is not supported in office 03 but s supported in 07. Is there any way by which i can convert the file to pdf in office 03. Thanks in advance for all your helping hands.. :omg: Santo:thumbsup:

      Santhosh

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

      You probably need to buy a library that is more universally supported instead of using what you're using.

      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.

      S 1 Reply Last reply
      0
      • C Christian Graus

        You probably need to buy a library that is more universally supported instead of using what you're using.

        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.

        S Offline
        S Offline
        Santhosh Sebastian Mattathil
        wrote on last edited by
        #3

        Thanks Christian for ur prompt reply Do you know any library.. which will b available in dotnet hence i can use that function directly. Thanks Santo

        Santhosh

        C H 2 Replies Last reply
        0
        • S Santhosh Sebastian Mattathil

          Thanks Christian for ur prompt reply Do you know any library.. which will b available in dotnet hence i can use that function directly. Thanks Santo

          Santhosh

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

          From Word ? I'm not sure, I think I've seen one, it was quite expensive, and I forget the name.

          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.

          1 Reply Last reply
          0
          • S Santhosh Sebastian Mattathil

            Thanks Christian for ur prompt reply Do you know any library.. which will b available in dotnet hence i can use that function directly. Thanks Santo

            Santhosh

            H Offline
            H Offline
            hb52134214
            wrote on last edited by
            #5

            If you install a pdf printer such as PDFcreator, you could simply open the word doc, then print it. Though you can print programatically in such a way as to avoid the print dialog boxes, you'll still be faced with PDFCreator's 'save as' dialog box. I don't know if it is practical to automate the 'save as' dialog interation in your situation; though, if you are just trying to convert a few hundred files or will always use this in a manual enviornment, this should solve your problem. If you take this approach and can't/don't automate the 'save as' dialog interaction, I recommend putting the target file name and path in the clipboard so that you only 'ctrl-c' the file name and click save. Hope this helps

            1 Reply Last reply
            0
            • S Santhosh Sebastian Mattathil

              Hai friends I've been trying to convert files (office) to pdf. For that i installed SaveAsPDFandXPS.exe from Microsoft and iam using Office 2007, it works in office 2007 but creates problem in a machine with office 2003. object format = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatPDF; the code above is not supported in office 03 but s supported in 07. Is there any way by which i can convert the file to pdf in office 03. Thanks in advance for all your helping hands.. :omg: Santo:thumbsup:

              Santhosh

              A Offline
              A Offline
              aashish patidar
              wrote on last edited by
              #6

              Did u get any solution for your question if yes plz share with me also because i also have same requirement........... thanks in advance

              aashish

              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