Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Format matching in .doc files

Status
Not open for further replies.

ivar4ever

Full Member level 3
Joined
Jun 12, 2006
Messages
189
Helped
25
Reputation
52
Reaction score
5
Trophy points
1,298
Location
India
Activity points
2,437
how to search for a particular format in MS word documents?
i tried thru a c program, but since the headder and encoding formats vary a lot was unable to do that.
my task is to search for a specific string in a .doc file with a script (either VB, or Perl)
any advices please?
 

rsrinivas

Advanced Member level 1
Joined
Oct 10, 2006
Messages
415
Helped
50
Reputation
100
Reaction score
12
Trophy points
1,298
Location
bengalooru
Activity points
3,704
hi
have u tried with the doc file it should work.
else if u r using perl u can copy the .doc fileto a .txt file and do it. then copy it back to .doc
 

ivar4ever

Full Member level 3
Joined
Jun 12, 2006
Messages
189
Helped
25
Reputation
52
Reaction score
5
Trophy points
1,298
Location
India
Activity points
2,437
i tried reading a doc file through a c program and placing the content into a .txt file. but nothing appeared in the generated .txt file and its size is 0 KB.
when i tried to read a .rtf file and copied the content to .txt, the text inside the word document is coming along with some headder information.
cant we directly compare the doc files using perl?
since the encoding formats for ms word will vary vastly with the office version, it would be difficult to do.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top