Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Tue, 21 Aug 2007 05:34:03 -0700,    group: microsoft.public.word.conversions        back       


Word Document Generation on Fly through Bookmarks   
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?
date: Tue, 21 Aug 2007 05:34:03 -0700   author:   gpk2005

Re: Word Document Generation on Fly through Bookmarks   
Has the Word 2003 in question an installed XML filter (ie the 2007 
conversion pack)? Otherwise the XML file would be merely text.

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

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

gpk2005 wrote:
> 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?
date: Tue, 21 Aug 2007 15:53:59 +0300   author:   Graham Mayor

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us