-
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.
-
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?
-
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
-
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.
-
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!!
-
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.
-
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
-
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.
-
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
-
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.
-
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.