none
How to convert word file into pdf in c#.net RRS feed

  • Question

  • hi every one,

    I have installed ms office 2003 on my system, i m working on visual studio 2010,

    i make a window application which generate the doc file and i want to save these file in .pdf format also.

    i use for this

    // object format = Microsoft.Office.Interop.Word.WdSaveFormat.  there is not any option for save as pdf.
       WordDoc.SaveAs(ref destination, ref format, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);
                                WordDoc.Close(ref oTrue, ref oMissing, ref oMissing);

    if any body having any solution pls help me

    • Moved by Cindy Meister MVPModerator Thursday, November 18, 2010 6:35 AM not VSTO technology (From:Visual Studio Tools for Office)
    • Edited by Abhoj Dhama Thursday, November 18, 2010 9:00 AM
    Thursday, November 18, 2010 6:02 AM

Answers

  • Hi Abhoj Dhama

    Saving in PDF file format was introduced in Word 2007; there is no such option available in Word 2003.

    Since you're not using the VSTO technology, I'm going to move this message to the Word Developer forum, where it's more on-topic.


    Cindy Meister, VSTO/Word MVP
    Thursday, November 18, 2010 6:34 AM
    Moderator

All replies

  • Hi Abhoj Dhama

    Saving in PDF file format was introduced in Word 2007; there is no such option available in Word 2003.

    Since you're not using the VSTO technology, I'm going to move this message to the Word Developer forum, where it's more on-topic.


    Cindy Meister, VSTO/Word MVP
    Thursday, November 18, 2010 6:34 AM
    Moderator
  • hi Cindy Meister,

    thanks ,

    Thursday, November 18, 2010 6:52 AM