all groups > dotnet compact framework > december 2006 >
You're in the

dotnet compact framework

group:

Word Object Model


Re: Word Object Model Paul G. Tobey [eMVP]
12/29/2006 9:11:48 AM
dotnet compact framework:
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.

[quoted text, click to view]

Word Object Model Samuel Shulman
12/29/2006 1:40:30 PM
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

Re: Word Object Model Samuel Shulman
12/30/2006 5:47:17 PM
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
[quoted text, click to view]

Re: Word Object Model Paul G. Tobey [eMVP]
1/2/2007 9:19:24 AM
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.

[quoted text, click to view]

Re: Word Object Model Paul G. Tobey [eMVP]
1/2/2007 10:20:55 AM
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.

[quoted text, click to view]

Re: Word Object Model Samuel Shulman
1/2/2007 5:01:55 PM
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
[quoted text, click to view]

Re: Word Object Model Samuel Shulman
1/2/2007 6:03:26 PM
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
[quoted text, click to view]

AddThis Social Bookmark Button