T
Tammy
I'm trying to create a customised file open dialog box using a rich
text box to preview the selected document. I've tried the loadfile
method but I'd need to save the file as an RTF first which isn't
feasible. I've tried using the input function but get the "input past
end of file" error. I've searched Google groups and have tried the
advice there ... mainly changing
input to binary which loads the form but the richtextbox is filled
with rubbish characters. I've used the strconv function and this
didn't help. I've also tried opening the document and setting the
richtextbox text as the activedocument contents but this is too clumsy
for what I'm after.
I've tried OLE containers in VB which worked but couldn't access them
in Word. After searching in groups I realised that Word doesn't use
them. I've also tried the web browser but it keeps crashing.
I even tried creating my own ActiveX control in VB but don't have the
experience to do that. Also tried searching on WordPad to try and
work out how it goes it to no avail.
Has anybody populated a Richtextbox with a Word document without Word
opening up first?
Thanks
Tammy
text box to preview the selected document. I've tried the loadfile
method but I'd need to save the file as an RTF first which isn't
feasible. I've tried using the input function but get the "input past
end of file" error. I've searched Google groups and have tried the
advice there ... mainly changing
input to binary which loads the form but the richtextbox is filled
with rubbish characters. I've used the strconv function and this
didn't help. I've also tried opening the document and setting the
richtextbox text as the activedocument contents but this is too clumsy
for what I'm after.
I've tried OLE containers in VB which worked but couldn't access them
in Word. After searching in groups I realised that Word doesn't use
them. I've also tried the web browser but it keeps crashing.
I even tried creating my own ActiveX control in VB but don't have the
experience to do that. Also tried searching on WordPad to try and
work out how it goes it to no avail.
Has anybody populated a Richtextbox with a Word document without Word
opening up first?
Thanks
Tammy