CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2000
    Location
    europe
    Posts
    8

    Office automation

    Hi, is there any documentation about how too open a file from word (i don't wanna run the application) only open the file and convert it into a html file

    greetings
    Sander


  2. #2
    Join Date
    Jun 2001
    Location
    London, Ontario, Canada
    Posts
    20

    Re: Office automation

    If you refernece the word library through Project>>References>>then check the Microsoft Word 8.0 Object Library, then you can use the SaveAs method of the Document Object to save it with the Name and Type(and many more options) which you could then change to any format you wish:

    ex.
    ActiveDocument.SaveAs FileName:="Text.rtf", FileFormat:=wdFormatRTF



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured