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 / Conversions / August 2007

Tip: Looking for answers? Try searching our database.

Word Document Generation on Fly through Bookmarks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gpk2005 - 21 Aug 2007 13:34 GMT
I have an ASP.Net web application that reads an xml file containing bookmark
values that needs to go into a word document. I am opening the Word Document
template in .Net 2.0 (Note: I am referring Office 2007 assembly) and
inserting the bookmark values as per the xml file and streaming the content
of the word document by using the WordOpenXml property of the document in
code to the end user through Response.Write. This shows the file download
dialog for the word document. However the document opens correctly only in
Word 2007. If I open it in Word 2003 it shows me the Xml structure of the
word document and not the word document with the format expected. Am I
missing anything here? Why is it that the xml content is not getting
identified by Word 2003 only?
Graham Mayor - 21 Aug 2007 13:53 GMT
Has the Word 2003 in question an installed XML filter (ie the 2007
conversion pack)? Otherwise the XML file would be merely text.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> I have an ASP.Net web application that reads an xml file containing
> bookmark values that needs to go into a word document. I am opening
[quoted text clipped - 8 lines]
> missing anything here? Why is it that the xml content is not getting
> identified by Word 2003 only?
 
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.