Results 1 to 7 of 7

Thread: OLE for .txt files

  1. #1

    Thread Starter
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Does it have to be an OLE control? Becuz theres much better ways of doing that than OLE.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  2. #2
    Member
    Join Date
    Sep 2000
    Location
    Midwest
    Posts
    35

    Post 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.

  3. #3

    Thread Starter
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    what file formats you need to open?
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  4. #4
    Member
    Join Date
    Sep 2000
    Location
    Midwest
    Posts
    35

    Question OLE for .txt file

    XLS, DOC, PPT, RTF, TXT (all office suite files and various others like Visio, etc.). Basically any type.

  5. #5

    Thread Starter
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    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.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  6. #6
    Member
    Join Date
    Sep 2000
    Location
    Midwest
    Posts
    35

    Question

    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.

  7. #7

    Thread Starter
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    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.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width