| | |
how to search a word in Micro Soft documents(Word, Excel,Powerpoint)-urgent?
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
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 |
.net .net2008 2005 2008 access account array basic beginner bing browser button buttons center check code crystalreport cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic dropdownlist excel fade file-dialog filter forms ftp generatetags google hardcopy html images input insert intel internet mobile monitor ms net networking objects open output panel passingparameters pdf picturebox port position print printing problem save searchbox searchvb.net select serial settings shutdown soap sqlserver survey table tcp temperature text textbox timer timespan toolbox transparency trim update user vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vba vbnet view visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode year





