Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 07, 2012 03:44 PM by Curt_C
Member
136 Points
115 Posts
May 07, 2012 02:52 PM|LINK
Hi everyone, please suggest me how to search a specific string in a word and pdf file. I tried with the following code but it provides only for text files
string fName = @"C:\file.txt "; StreamReader testTxt = new StreamReader(fName); string allRead = testTxt.ReadToEnd(); testTxt.Close(); string regMatch = "xxx";
All-Star
66014 Points
7639 Posts
Moderator
May 07, 2012 03:44 PM|LINK
LOTS of samples right here:
http://www.bing.com/search?q=how+to+search+in+a+PDF+or+DOC+from+asp.net&src=IE-SearchBox&FORM=IE8SRC
cchidambaram
Member
136 Points
115 Posts
How to search for a specific string in word and pdf file?
May 07, 2012 02:52 PM|LINK
Hi everyone,
please suggest me how to search a specific string in a word and pdf file.
I tried with the following code but it provides only for text files
string fName = @"C:\file.txt "; StreamReader testTxt = new StreamReader(fName); string allRead = testTxt.ReadToEnd(); testTxt.Close(); string regMatch = "xxx";Curt_C
All-Star
66014 Points
7639 Posts
Moderator
Re: How to search for a specific string in word and pdf file?
May 07, 2012 03:44 PM|LINK
LOTS of samples right here:
http://www.bing.com/search?q=how+to+search+in+a+PDF+or+DOC+from+asp.net&src=IE-SearchBox&FORM=IE8SRC
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!