| | |
how to search a word in Micro Soft documents(Word, Excel,Powerpoint)-urgent?
Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Feb 2008
Posts: 21
Reputation:
Solved Threads: 0
Dear Friends,
I would like to search a word or phrase in microsoft documents. I want to search text portion only. f possible line by line. so i can exit the reading while I find that word.
I tried with
But unfortunately some files are not reading properly.
pls help
I would like to search a word or phrase in microsoft documents. I want to search text portion only. f possible line by line. so i can exit the reading while I find that word.
I tried with
VB.NET Syntax (Toggle Plain Text)
OpenFileDialog1.ShowDialog() Dim ioFile As New StreamReader(OpenFileDialog1.FileName) Dim ioLine As String ' Going to hold one line at a time Dim ioLines As String ' Going to hold whole file ioLine = ioFile.ReadLine ioLines = ioLine While Not ioLine = "" ioLine = ioFile.ReadLine ioLines = ioLines & vbCrLf & ioLine End While TextBox1.Text = ioLines
But unfortunately some files are not reading properly.
pls help
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: Attempted to read/write protected memory
- Next Thread: Run installed program without path
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access account arithmetic array assignment basic box button buttons center check code component connectionstring convert crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist excel fade file-dialog firewall folder ftp generatetags hardcopy image images input insert intel isnumericfuntioncall math monitor navigate net networking opacity output passingparameters peertopeervideostreaming picturebox picturebox1 port problem problemwithinstallation project record reports" savedialog searchvb.net select serial shutdown string survey tcp temp temperature text textbox timer toolbox trim updown user useraccounts usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf





