Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2006

Tip: Looking for answers? Try searching our database.

Getting the file type.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jan Kucera - 28 Aug 2006 15:26 GMT
Hi,
How can I find out which format is the document? I know about wdSaveFormat
and wdOpenFormat enumerations which I can use during save and open, but how
can I find out if the opened document is for example in XML?
Thanks,
  Jan
Cindy M. - 29 Aug 2006 09:15 GMT
Hi Jan,

> How can I find out which format is the document? I know about wdSaveFormat
> and wdOpenFormat enumerations which I can use during save and open, but how
> can I find out if the opened document is for example in XML?

Query the SaveAs dialog box with the document in question being the active
document:

If Dialogs(wdDialogFileSaveAs).Format = wdSaveXML Then

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.