Results 1 to 11 of 11

Thread: Hard One, I think

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    82
    hi,
    i really need this the answer to this one,
    how can i read the doc format?? i mean the MS-Word File - *.Doc into a textbox or something, but i need to be able to change the file, and basically do everything with it, OLE is not the answer that i am looking for.

    so, for all the experts, please help!!!
    bye,
    yair.

  2. #2
    Guest

    Thumbs up Whoa!!!!!!!!!!!!!!!

    Try the OLE control.

    What are you trying to achieve. If treat like a normal document then use OLE, if want to add data etc then need to create a word object in your project?

  3. #3
    Guest
    You can try using the RichTextBox. It does not have all of the features of MS-Word, but it has some of the more common ones.

    Code:
    RichTextBox1.LoadFile "MyFileName.doc", rtfRTF

  4. #4
    Guest

    Thumbs up Good call Megatron

    ysa1441

    You need to be more specific about what you are hoping to achieve. Already you have three separate ways of accessing a Word document. Which one you use is dependant on what you are trying to do.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    82
    ok,
    i am trying to build my own notepad (i have succeeded), but i just cant open a doc file, like i do with simple text.

    MEGATRON-----
    nice code, but it doesn't work,
    err:
    "Invalid file format"
    "err:321"

    HELP, from anyone, please!!

  6. #6
    Guest

    Lightbulb Another Solution

    This might be somewhat difficult. Opening DOC files is almost like building another copy of MS-Word. but you can however, try reading the formatting tag's for the file as you open it then change the format of the Text according to what tags are in it.


  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    82
    MEGATRON------
    hey, whats up??
    so thats a great idea, but how do i identify tags?? if i use :
    res = Instr(....,....) what should i look for???
    thankx
    bye,
    yair

  8. #8
    Guest

    Check it out ysa1441

    Log into http://www.planetsourcecode.com and do a search on Notepad, you will get dozens of example projects available as downloads which do what you want.

    Just a thought to save you some time.

  9. #9
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Can't you just create a reference to MS word and get the info that way? Obviously the person will need word installed on their PC but hey, it's a proprietry format. Word 6 is apparently not to hard to decode but if you decode a word 8 file how will you display it? there is formating there that the RTF box can't display, clipart, html support, macros etc. I think you need to decide how much compatability you want with word or you'll have a very large job ahead of you
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    82
    hey,
    thankx guys
    but i really do need the program to work without needing ms word installed, kinda hard, i know, but what can i do??
    anyway thankx again,
    yair.

  11. #11
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    Red face

    Then your only chance it to test referencing the word dll and see if it distributes. (never tried it)

    If you're only after rtf docs then you're fine but otherwise you'll have to grit and bare the fact that later versions of word are supposed to be perchased in order to read word documents, that's why they sell office.

    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

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