Getting it all out of word.

S

StephenM

Hi,

I am wanting to write a converter to convert a word document to an
ActiveReport. To do this I need to get everything out of a word document.

For example

TABLES: I need to get position, columns, rows and size of table
TEXT: the text plus all formating (bold, underlined, font, size etc)

As long as at the other end I get a file that looks exactly like the word
document.

Is there a way to loop through the document?

I have looked at looping through tables cell by cell but am not sure if
there is a way to guarantee getting everything from a word document.

Thanks in Advance.

Stephen M
 
J

Jay Freedman

Hi Stephen,

I didn't recognize your reference to ActiveReport, and Google turns up
references to what appear to be a half dozen different uses of that
term. But I don't think that's really relevant to the question.

You'll find that while it's _possible_ to get a great deal of
information out of a document with VBA, trying to get _everything_
will be frustrating, extremely slow, and in the end not capable of
exporting certain details.

Fortunately, there's already a converter built into Word to output
Rich Text Format (RTF), which contains everything the native document
does with tags. Write your code to work from RTF to ActiveReport, and
the job will be much simpler. You can download the RTF spec from
http://www.microsoft.com/downloads/...32-17F0-4B46-9E4E-467EF9BC5540&displaylang=en

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 

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