|
-
Jul 16th, 2000, 05:19 PM
#1
Thread Starter
Lively Member
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.
-
Jul 16th, 2000, 05:25 PM
#2
-
Jul 16th, 2000, 05:25 PM
#3
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
-
Jul 16th, 2000, 05:29 PM
#4
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.
-
Jul 16th, 2000, 05:47 PM
#5
Thread Starter
Lively Member
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!!
-
Jul 16th, 2000, 06:40 PM
#6
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.
-
Jul 18th, 2000, 08:47 PM
#7
Thread Starter
Lively Member
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
-
Jul 19th, 2000, 12:26 AM
#8
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.
-
Jul 19th, 2000, 12:43 AM
#9
Fanatic Member
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!)
-
Jul 20th, 2000, 08:01 AM
#10
Thread Starter
Lively Member
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.
-
Jul 21st, 2000, 05:26 AM
#11
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|