Does it have to be an OLE control? Becuz theres much better ways of doing that than OLE.
Printable View
Does it have to be an OLE control? Becuz theres much better ways of doing that than OLE.
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.
what file formats you need to open?
XLS, DOC, PPT, RTF, TXT (all office suite files and various others like Visio, etc.). Basically any type.
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.
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.
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.