Click here to Skip to main content
15,891,779 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to find & replace approx. 20 words in word document at a time so that it will reduce my program
execution time. How it is possible, i am using windows application & owc spreadsheet & word interop dll.
Any help would be great.
Posted
Comments
ZurdoDev 11-Sep-14 9:09am    
Record a macro doing what you want and you'll get most of the code you need.
Sinisa Hajnal 11-Sep-14 9:10am    
What do you need to do? You're posing the problem along with your assumption what the solution should be. Tell us what you need to do.

Thank you.
Member 10843516 11-Sep-14 9:14am    
i am having 10000 characters & approx 8 pages & it is taking 8-10 min for conversion, i want
to reduce the timing.
Sinisa Hajnal 11-Sep-14 9:21am    
Yes, but "replace 20 words"...do you need to search for something particular and then replace all twenty words? Is it a sentence you need to replace? OR is it a list of 20 words you're trying to replace with different 20 words?

I've seen books that replaced words faster then what you're doing. I did gene comparison on 4 GB files that took less then 5 minutes. You're doing something suboptimal.
Member 10843516 11-Sep-14 9:38am    
It is list of 20 words with different 20 words. i have already tried list<string> & Dictionary method, i am using find & replace method, but it is finding & replacing each word one by one.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900