PC Review


Reply
Thread Tools Rate Thread

Converting Word formatted contents to HTML

 
 
Craig Petrie
Guest
Posts: n/a
 
      12th May 2004
Hi,
I have a large table in Word 2003 that has formatted text in the cells and
wish to read and convert a cells formatted contents to html output via
vb.net code. The formatting contains the following: bold text, italic text,
superscript & subscript text, bullet points. The output html is then saved
in an XML file as a CDATA section for later use in the application when
formatted output is required.

I have looked up many sites on the web and also searched in user groups but
have not yet seen a way to code the above in vb.net 2003. In my VB.net app I
currently open and read the word table and output all cell contents into an
XML structure OK - I just need to know how to read and convert the formatted
text inside a cell to html format.


Can anyone suggest tools/components or code or examples that would help me
do this.

I am using VB.net 2003 and Office Professional Edition 2003.


cheers,
Craig, New Zealand



 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      12th May 2004
Hi Graig,

An XML file is not always an dataset.
A dataset can always be made as a XML file to disk or streaming to another
place.

I hope I make this a little bit clear with saying that because maybe it is
cryptic.

To use an XML file you can read it as a XML doc using the loadXML or access
it as a streaming file using the XML reader.

If you want to know more, feel free to ask?

Cor


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      12th May 2004
* "Craig Petrie" <(E-Mail Removed)> scripsit:
> I have a large table in Word 2003 that has formatted text in the cells and
> wish to read and convert a cells formatted contents to html output via
> vb.net code.


Maybe you can save the document to HTML using Word automation. I would
ask this question in one of the Word VBA/programming groups.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
scorpion53061
Guest
Posts: n/a
 
      12th May 2004
Hi Craig,

Simply saving the document in html format will allow the table to be
displayed in a web browser (with a few exceptions)

If you need assistance let me know.

"Craig Petrie" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> I have a large table in Word 2003 that has formatted text in the cells and
> wish to read and convert a cells formatted contents to html output via
> vb.net code. The formatting contains the following: bold text, italic

text,
> superscript & subscript text, bullet points. The output html is then saved
> in an XML file as a CDATA section for later use in the application when
> formatted output is required.
>
> I have looked up many sites on the web and also searched in user groups

but
> have not yet seen a way to code the above in vb.net 2003. In my VB.net app

I
> currently open and read the word table and output all cell contents into

an
> XML structure OK - I just need to know how to read and convert the

formatted
> text inside a cell to html format.
>
>
> Can anyone suggest tools/components or code or examples that would help me
> do this.
>
> I am using VB.net 2003 and Office Professional Edition 2003.
>
>
> cheers,
> Craig, New Zealand
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Word display HTML code as formatted text? =?Utf-8?B?QnJlbnQ=?= Microsoft Word Document Management 2 29th Jun 2011 08:11 PM
CONVERTING MS WORD FORMATTED DATA INTO EXCEL WORKSHEET NSNR Microsoft Excel Misc 3 12th Mar 2009 09:54 PM
displaying field contents as html formatted page E W Microsoft Access 0 3rd Apr 2007 12:28 AM
Converting formatted text into HTML tags cammo Microsoft Excel Discussion 0 1st Dec 2005 06:38 AM
Removing changes in Word HTML formatted document Bill Richardson Microsoft Word Document Management 1 3rd Sep 2003 12:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:48 AM.