![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm not sure this is the correct locqation to post this question but I have already posted similar question in Office news group (without response) I am using VS2005 to create a solution for Word 2007. This version of Word no longer supports HTML as previous versions did. To maintain compatability with previous solution written for previous versions of Word, I need the HTML content of a document that Word previously acquired with MyStr = ActiveDocument.HTMLProject.HTMLProjectItems(1).Tex t Word produces an XML file using "activedocument.content" so I'm thinking that maybe there is something in XMLdeserialization that would help convert this to HTML or at least allow me to loop through the various elements of the XML file so that I could create the HTML outout I have no experience with XML functions in VS2005 and feel completely lost trying to understand it all from the help screens Any suggsetions? Well in theory you could transform the XML to HTML but my version of Word |
#3
| |||
| |||
|
|
"slaprade" <slaprade (AT) discussions (DOT) microsoft.com> wrote in message news:30AF598A-BB66-4B1E-90AA-4083D05C53BD (AT) microsoft (DOT) com... I'm not sure this is the correct locqation to post this question but I have already posted similar question in Office news group (without response) I am using VS2005 to create a solution for Word 2007. This version of Word no longer supports HTML as previous versions did. To maintain compatability with previous solution written for previous versions of Word, I need the HTML content of a document that Word previously acquired with MyStr = ActiveDocument.HTMLProject.HTMLProjectItems(1).Tex t Word produces an XML file using "activedocument.content" so I'm thinking that maybe there is something in XMLdeserialization that would help convert this to HTML or at least allow me to loop through the various elements of the XML file so that I could create the HTML outout I have no experience with XML functions in VS2005 and feel completely lost trying to understand it all from the help screens Any suggsetions? Well in theory you could transform the XML to HTML but my version of Word 2007 certainly permits saving as HTML. Go to Save As | Other Formats. It supports web archive of HTML page. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name |
#4
| |||
| |||
|
|
I appreciate the response - the problem is that I am not saving a file. I store contents in a SQL database and as such have no need and devilish difficulty to read or write a file "Joe Fawcett" wrote: "slaprade" <slaprade (AT) discussions (DOT) microsoft.com> wrote in message news:30AF598A-BB66-4B1E-90AA-4083D05C53BD (AT) microsoft (DOT) com... I'm not sure this is the correct locqation to post this question but I have already posted similar question in Office news group (without response) I am using VS2005 to create a solution for Word 2007. This version of Word no longer supports HTML as previous versions did. To maintain compatability with previous solution written for previous versions of Word, I need the HTML content of a document that Word previously acquired with MyStr = ActiveDocument.HTMLProject.HTMLProjectItems(1).Tex t Word produces an XML file using "activedocument.content" so I'm thinking that maybe there is something in XMLdeserialization that would help convert this to HTML or at least allow me to loop through the various elements of the XML file so that I could create the HTML outout I have no experience with XML functions in VS2005 and feel completely lost trying to understand it all from the help screens Any suggsetions? Well in theory you could transform the XML to HTML but my version of Word 2007 certainly permits saving as HTML. Go to Save As | Other Formats. It supports web archive of HTML page. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name |
#5
| |||
| |||
|
|
Not to mention that you should ALWAYS stay as far away as you can from the MS Office applications "Save As Web Page (HTML)" feature as it creates the most bloated HTML, CSS, XHTML ever! "slaprade" <slaprade (AT) discussions (DOT) microsoft.com> wrote in message news:8EB11D82-1DD2-4937-A8F5-4506C7A1560D (AT) microsoft (DOT) com... I appreciate the response - the problem is that I am not saving a file. I store contents in a SQL database and as such have no need and devilish difficulty to read or write a file "Joe Fawcett" wrote: "slaprade" <slaprade (AT) discussions (DOT) microsoft.com> wrote in message news:30AF598A-BB66-4B1E-90AA-4083D05C53BD (AT) microsoft (DOT) com... I'm not sure this is the correct locqation to post this question but I have already posted similar question in Office news group (without response) I am using VS2005 to create a solution for Word 2007. This version of Word no longer supports HTML as previous versions did. To maintain compatability with previous solution written for previous versions of Word, I need the HTML content of a document that Word previously acquired with MyStr = ActiveDocument.HTMLProject.HTMLProjectItems(1).Tex t Word produces an XML file using "activedocument.content" so I'm thinking that maybe there is something in XMLdeserialization that would help convert this to HTML or at least allow me to loop through the various elements of the XML file so that I could create the HTML outout I have no experience with XML functions in VS2005 and feel completely lost trying to understand it all from the help screens Any suggsetions? Well in theory you could transform the XML to HTML but my version of Word 2007 certainly permits saving as HTML. Go to Save As | Other Formats. It supports web archive of HTML page. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name |
#6
| |||
| |||
|
|
Word 2007 was not designed as an HTML editor. But with good use of styles and CSS, the filtered HTML output is, in my view, not too bad for certain restricted uses. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |