Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 1st, 2007, 4:25 PM   #1
hoffmandirt
Hobbyist Programmer
 
hoffmandirt's Avatar
 
Join Date: Jul 2005
Location: PA
Posts: 125
Rep Power: 4 hoffmandirt is on a distinguished road
Send a message via AIM to hoffmandirt
Microsoft Word Parsing

I am attempting to parse a Microsoft Word document that has form fields in it. My normal method of parsing word documents isn't going to work here. Generally I use some API to open the document, save it as html, and then parse the html. However, when I try that here, I can't tell whether or not the check boxes have a check or not because the check state is not saved to the html. Has anyone tried this before? My next option here is to look into c# and the word api to see if I can do that.
hoffmandirt is offline   Reply With Quote
Old Oct 1st, 2007, 5:02 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
You might look into VBA/VB. It's ugly, I know, but it deals with the underlying objects, even if it looks like Quasimodo.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 2nd, 2007, 8:47 AM   #3
hoffmandirt
Hobbyist Programmer
 
hoffmandirt's Avatar
 
Join Date: Jul 2005
Location: PA
Posts: 125
Rep Power: 4 hoffmandirt is on a distinguished road
Send a message via AIM to hoffmandirt
Thanks DaWei, I am looking into that now and you are correct. It's very ugly, but it seems that VBA is what I need to get the job done.
hoffmandirt is offline   Reply With Quote
Old Oct 2nd, 2007, 7:51 PM   #4
Arla
Hobbyist Programmer
 
Join Date: Mar 2005
Posts: 208
Rep Power: 4 Arla is on a distinguished road
What version of Word? I thought the latest version saved things as XML?
Arla is offline   Reply With Quote
Old Oct 2nd, 2007, 8:19 PM   #5
hoffmandirt
Hobbyist Programmer
 
hoffmandirt's Avatar
 
Join Date: Jul 2005
Location: PA
Posts: 125
Rep Power: 4 hoffmandirt is on a distinguished road
Send a message via AIM to hoffmandirt
I haven't seen an example of 2007's XML support, but if you have ever seen a sample from 2003, you would throw up.
hoffmandirt is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing Microsoft Word Documents hoffmandirt Software Design and Algorithms 0 Jul 24th, 2007 11:04 AM
Replacing a word with another word 357mag C++ 1 Jun 14th, 2007 8:25 PM
microsoft word web programming hervens48 Coder's Corner Lounge 14 Jul 20th, 2006 12:53 AM
crack these questions if u can!!! shagan C++ 18 Apr 3rd, 2005 6:47 AM
how to implemen the Find funtion in the text editor to locate a word in a document??? allen1984us C++ 4 Mar 8th, 2005 10:32 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:22 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC