|
-
Sep 29th, 2000, 10:56 AM
#1
Thread Starter
Frenzied Member
Does it have to be an OLE control? Becuz theres much better ways of doing that than OLE.
-
Sep 29th, 2000, 11:02 AM
#2
Member
OLE for .txt file
No it does not have to be an OLE. I just need to be able to view various types of documents on a form and then be able to search for string matches.
-
Sep 29th, 2000, 11:11 AM
#3
Thread Starter
Frenzied Member
what file formats you need to open?
-
Sep 29th, 2000, 11:16 AM
#4
Member
OLE for .txt file
XLS, DOC, PPT, RTF, TXT (all office suite files and various others like Visio, etc.). Basically any type.
-
Sep 29th, 2000, 11:18 AM
#5
Thread Starter
Frenzied Member
yeesh. I don't think OLE will help with that much diversity. If the files were all pure text (like RTF/HTML) you could just pop open the file in code and parse thru it for each word, but XLS/DOC/PPT/etc are not text files, so I can't say.
-
Sep 29th, 2000, 11:25 AM
#6
Member
What about coding for RTF or TXT files and maybe even HTML. I have programming in place that works with OLE and Office programs. Below is the coding I'm using for RTF: and TXTs:
RichTextBox1.LoadFile filename
This loads the file into a rich text box but I want to use the same OLE for all files.
-
Sep 29th, 2000, 11:29 AM
#7
Thread Starter
Frenzied Member
Hmm. I don't really know how one would go about this; it seems to me that if you could access the contents of the document (using whatever methods) you could just do a simple search, but the methods of accessing the document contents is where I go fuzzy.
Sorry bout that, hope you get it figured.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|