Word Object Model

  • Thread starter Thread starter Samuel Shulman
  • Start date Start date
S

Samuel Shulman

Hi everyone,

I wonder if there is an Object Model for Word in WM 2005

If not, can one create text files then change the file extension name so the
system will recognize it a Word file?

Thank you,
Samuel
 
No, there is no object model for Pocket Word.

You can do anything you want. The extension doesn't control the type of the
file, so there's no need to "change the file extension". Just create the
file with a .doc extension, if you want.

Paul T.
 
So how can I create a word document by code

I want to create a text file that the user will be able to print using Word.

Thank you,
Samuel

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:[email protected]...
 
Figure out the file format and write data into that format. If it's a text
file, how about just writing the text?

Paul T.

Samuel Shulman said:
So how can I create a word document by code

I want to create a text file that the user will be able to print using
Word.

Thank you,
Samuel

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:[email protected]...
No, there is no object model for Pocket Word.

You can do anything you want. The extension doesn't control the type of
the file, so there's no need to "change the file extension". Just create
the file with a .doc extension, if you want.

Paul T.
 
Thank you for your reply,

At this point the question is that:

If I create a text file then name it text.doc

Can I open this file using Pocket Word?


Samuel


"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:[email protected]...
Figure out the file format and write data into that format. If it's a
text file, how about just writing the text?

Paul T.

Samuel Shulman said:
So how can I create a word document by code

I want to create a text file that the user will be able to print using
Word.

Thank you,
Samuel

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> wrote in message news:[email protected]...
No, there is no object model for Pocket Word.

You can do anything you want. The extension doesn't control the type of
the file, so there's no need to "change the file extension". Just
create the file with a .doc extension, if you want.

Paul T.

Hi everyone,

I wonder if there is an Object Model for Word in WM 2005

If not, can one create text files then change the file extension name
so the system will recognize it a Word file?

Thank you,
Samuel
 
You could have tried it in the time it took to post the question to the
newsgroup. My guess would be that Word will try to interpret it as a .DOC
file and may reject it, but I could easily be wrong. If you save it as
..TXT, Word should be able to open that.

Paul T.

Samuel Shulman said:
Thank you for your reply,

At this point the question is that:

If I create a text file then name it text.doc

Can I open this file using Pocket Word?


Samuel


"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:[email protected]...
Figure out the file format and write data into that format. If it's a
text file, how about just writing the text?

Paul T.

Samuel Shulman said:
So how can I create a word document by code

I want to create a text file that the user will be able to print using
Word.

Thank you,
Samuel

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> wrote in message No, there is no object model for Pocket Word.

You can do anything you want. The extension doesn't control the type
of the file, so there's no need to "change the file extension". Just
create the file with a .doc extension, if you want.

Paul T.

Hi everyone,

I wonder if there is an Object Model for Word in WM 2005

If not, can one create text files then change the file extension name
so the system will recognize it a Word file?

Thank you,
Samuel
 
Just tried,

Word does recognize .txt files and would do

Thank you,
Samuel

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:[email protected]...
You could have tried it in the time it took to post the question to the
newsgroup. My guess would be that Word will try to interpret it as a .DOC
file and may reject it, but I could easily be wrong. If you save it as
.TXT, Word should be able to open that.

Paul T.

Samuel Shulman said:
Thank you for your reply,

At this point the question is that:

If I create a text file then name it text.doc

Can I open this file using Pocket Word?


Samuel


"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> wrote in message news:[email protected]...
Figure out the file format and write data into that format. If it's a
text file, how about just writing the text?

Paul T.

So how can I create a word document by code

I want to create a text file that the user will be able to print using
Word.

Thank you,
Samuel

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
DOT com> wrote in message No, there is no object model for Pocket Word.

You can do anything you want. The extension doesn't control the type
of the file, so there's no need to "change the file extension". Just
create the file with a .doc extension, if you want.

Paul T.

Hi everyone,

I wonder if there is an Object Model for Word in WM 2005

If not, can one create text files then change the file extension name
so the system will recognize it a Word file?

Thank you,
Samuel
 
Back
Top