WordML Document not opening correctly via Response Object

M

Meena Bhashyam

Hi,
I am trying to open a wordml document using the following code:

Dim xmlDoc As New XmlDocument

xmlDoc.Load("D:\VisualStudioProjects\TestXML\TestXML\bin\HelloWorld.xml.doc")

Response.ContentType = "application/word"
Response.WriteFile(xmlDoc.OuterXml)

All I get back is a WebForm.aspx web form, with the word ml written out on
it. What am I doing wrong? Any help is appreciated.

Thanks,
Meena
 
W

Word Heretic

G'day "Meena Bhashyam" <[email protected]>,

Dim Doc as Document

Set Doc = documents.Open("Filename",format:=wdformatXML)


Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Meena Bhashyam reckoned:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top