Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2006

Tip: Looking for answers? Try searching our database.

Getting it all out of word.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
StephenM - 29 Jul 2006 22:19 GMT
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
Jay Freedman - 29 Jul 2006 22:39 GMT
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/details.aspx?familyid=AC57DE32-17F0-4B46-9E4E
-467EF9BC5540&displaylang=en


--
Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

>Hi,
>
[quoted text clipped - 17 lines]
>
>Stephen M
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.