ActiveX Office Viewer

  • Thread starter mtgksa via AccessMonster.com
  • Start date
M

mtgksa via AccessMonster.com

Hi,
I am using the activeX control - DSOframer.ocx. Can you expand on how I would
use this control in MS Access 2003. So far I have a file name from a network
location that I have access to within my program, but wht I would like to do
is to automatically take that file name (*.Doc) and have it show in my
activeX control without having to go File....Open... then select the Word
document? I basically want to automate the whole sequence, but can't seem to
be able to pass the file name through to the activeX control? Any ideas? I
like this DSOframer because it does allow me to change the file and save it.
If possible I would actually like to even make the letters from within my app.

using that control on a form. Do I need to customize this control using VB6
in order to get more functionality?
 
A

Anthos

The following code worked for me.
Although I am not great with Access and OCX objects, it seemed to work
ok.

'//Begin Code
Dim obj As Object
Set obj = Me.FramerControl0.Object
With obj
.Open "C:\MyWordDoc.doc"
End With

Set obj = nothing
End Sub
'//End Code
 
M

mtgksa via AccessMonster.com

Thanks - that was exactly what I needed.
The following code worked for me.
Although I am not great with Access and OCX objects, it seemed to work
ok.

'//Begin Code
Dim obj As Object
Set obj = Me.FramerControl0.Object
With obj
.Open "C:\MyWordDoc.doc"
End With

Set obj = nothing
End Sub
'//End Code
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top