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] "Samuel Shulman" <samuel.shulman@ntlworld.com> wrote in message news:eA69n70KHHA.1276@TK2MSFTNGP04.phx.gbl... > 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 >
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
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] com> wrote in message news:OBuzWP2KHHA.1248@TK2MSFTNGP02.phx.gbl... > 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. > > "Samuel Shulman" <samuel.shulman@ntlworld.com> wrote in message > news:eA69n70KHHA.1276@TK2MSFTNGP04.phx.gbl... >> 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 >> > >
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] "Samuel Shulman" <samuel.shulman@ntlworld.com> wrote in message news:eXZ7LqDLHHA.4196@TK2MSFTNGP03.phx.gbl... > 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:OBuzWP2KHHA.1248@TK2MSFTNGP02.phx.gbl... >> 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. >> >> "Samuel Shulman" <samuel.shulman@ntlworld.com> wrote in message >> news:eA69n70KHHA.1276@TK2MSFTNGP04.phx.gbl... >>> 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. [quoted text, click to view] "Samuel Shulman" <samuel.shulman@ntlworld.com> wrote in message news:O4Hz1%23oLHHA.3560@TK2MSFTNGP02.phx.gbl... > 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:OvqxImoLHHA.4460@TK2MSFTNGP03.phx.gbl... >> 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" <samuel.shulman@ntlworld.com> wrote in message >> news:eXZ7LqDLHHA.4196@TK2MSFTNGP03.phx.gbl... >>> 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:OBuzWP2KHHA.1248@TK2MSFTNGP02.phx.gbl... >>>> 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. >>>> >>>> "Samuel Shulman" <samuel.shulman@ntlworld.com> wrote in message >>>> news:eA69n70KHHA.1276@TK2MSFTNGP04.phx.gbl... >>>>> 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 >>>>> >>>> >>>> >>> >>> >> >> > >
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] com> wrote in message news:OvqxImoLHHA.4460@TK2MSFTNGP03.phx.gbl... > 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" <samuel.shulman@ntlworld.com> wrote in message > news:eXZ7LqDLHHA.4196@TK2MSFTNGP03.phx.gbl... >> 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:OBuzWP2KHHA.1248@TK2MSFTNGP02.phx.gbl... >>> 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. >>> >>> "Samuel Shulman" <samuel.shulman@ntlworld.com> wrote in message >>> news:eA69n70KHHA.1276@TK2MSFTNGP04.phx.gbl... >>>> 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 [quoted text, click to view] com> wrote in message news:OqxChIpLHHA.1280@TK2MSFTNGP04.phx.gbl... > 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" <samuel.shulman@ntlworld.com> wrote in message > news:O4Hz1%23oLHHA.3560@TK2MSFTNGP02.phx.gbl... >> 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:OvqxImoLHHA.4460@TK2MSFTNGP03.phx.gbl... >>> 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" <samuel.shulman@ntlworld.com> wrote in message >>> news:eXZ7LqDLHHA.4196@TK2MSFTNGP03.phx.gbl... >>>> 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:OBuzWP2KHHA.1248@TK2MSFTNGP02.phx.gbl... >>>>> 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. >>>>> >>>>> "Samuel Shulman" <samuel.shulman@ntlworld.com> wrote in message >>>>> news:eA69n70KHHA.1276@TK2MSFTNGP04.phx.gbl... >>>>>> 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 >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > >
Don't see what you're looking for? Try a search.
|