Dino
Wed May 26 18:35:13 CDT 2004
and of course you can also code directly, without VSTO, if you are that sort
of developer, using the Office PIAs.
There is a SaveAs() method on the Document interface, in which you can
specify the desired output format of the document to be saved.
There is an enum called Microsoft.Office.Interop.Word.WdSaveFormat , one of
the values of that enum is wdFormatRTF , which allows you to save as RTF.
So, in VB.NET:
WordDoc.SaveAs("MyNewDocument.rtf",
Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatRTF )
In C#, I think you will have to sprinkle a few
System.Reflection.Missing.Value in there. . .
-Dino
"Andrej Tozon" <andrej.tozon@ius-software.si> wrote in message
news:OVNw26xQEHA.2976@TK2MSFTNGP10.phx.gbl...
> Visual Studio Tools for the Microsoft Office
> (
http://msdn.microsoft.com/vstudio/office/officetools.aspx) might help.
>
> Lp,
> Andrej
>
> "Paul" <pe@nospam.com> wrote in message
> news:<u51CCPpQEHA.3476@tk2msftngp13.phx.gbl>...
>
> > Hi
>
> >
>
> > I have around 150 gig of rtf and doc files I want to convert to rtf.
I've
>
> > seen software packages which will do this for me, but can I use the
>
> > microsoft word objects to do it within .net?
>
> >
>
> >
>
> >
>
> "Paul" <pe@nospam.com> wrote in message
> news:u51CCPpQEHA.3476@tk2msftngp13.phx.gbl...
> > Hi
> >
> > I have around 150 gig of rtf and doc files I want to convert to rtf.
I've
> > seen software packages which will do this for me, but can I use the
> > microsoft word objects to do it within .net?
> >
> >
> >
>
>