![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
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.
|
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
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.
|
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 208
Rep Power: 4
![]() |
What version of Word? I thought the latest version saved things as XML?
|
|
|
|
|
|
#5 |
|
Hobbyist Programmer
|
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.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |