Can't instantiate MODI MiDocViewer

G

Guest

Is anyone aware of problems w/ the MiDocViewer? I can create MDI files, and
can 'manually' pull them up in the Document Viewer, but for the life of me
can't automate this. I have referenced the MODI 11.0 library, and am working
in Office 2003. My code is:

Dim MyDoc as MODI.Document, Viewer as MiDocView, f as string
f="c:\myfile.mdi"
Set MyDoc = New MODI.Document
MyDoc.Create f
Set MiDocView.Document = MyDoc

The Document Viewer doesn't instantiate, tho. FWIW, if I then add

MyDoc.printout

It works fine.

I have also tried simply:

Dim Viewer as MiDocView, f as string
f="c:\myfile.mdi"
Set MiDocView.FileName = f

I have played around w/ different variations of using or not using NEW & SET
- I think I've gone through every permutation imaginable.

What am I missing??? [Catagorize me as an advanced beginner in VB.]
 
G

Guest

Is anyone aware of problems w/ the MiDocViewer? I can create MDI files, and
can 'manually' pull them up in the Document Viewer, but for the life of me
can't automate this. I have referenced the MODI 11.0 library, and am working
in Office 2003. My code is:

Dim MyDoc as MODI.Document, Viewer as MiDocView, f as string
f="c:\myfile.mdi"
Set MyDoc = New MODI.Document
MyDoc.Create f
Set MiDocView.Document = MyDoc

The Document Viewer doesn't instantiate, tho. FWIW, if I then add

MyDoc.printout

It works fine.

I have also tried simply:

Dim Viewer as MiDocView, f as string
f="c:\myfile.mdi"
Set MiDocView.FileName = f

I have played around w/ different variations of using or not using NEW & SET
- I think I've gone through every permutation imaginable.

What am I missing??? [Catagorize me as an advanced beginner in VB.]

User submitted from AEWNET (http://www.aewnet.com/)
 
G

Guest

I think you don´t have to use:

Set MiDocView.Document = MyDoc

SET is no necessary. Only use:

MiDocView.Document = MyDoc

That'll work fine.

OSCAR

User submitted from AEWNET (http://www.aewnet.com/)
 
G

Guest

I think you don´t have to use:

Set MiDocView.Document = MyDoc

SET is no necessary. Only use:

MiDocView.Document = MyDoc

That'll work fine.

OSCAR

User submitted from AEWNET (http://www.aewnet.com/)
 
G

Guest

I think you don´t have to use:

Set MiDocView.Document = MyDoc

SET is no necessary. Only use:

MiDocView.Document = MyDoc

That'll work fine.

OSCAR


User submitted from AEWNET (http://www.aewnet.com/)
 
G

Guest

I think you don´t have to use:

Set MiDocView.Document = MyDoc

SET is no necessary. Only use:

MiDocView.Document = MyDoc

That'll work fine.

OSCAR
Is anyone aware of problems w/ the MiDocViewer? I can create MDI files, and
can 'manually' pull them up in the Document Viewer, but for the life of me
can't automate this. I have referenced the MODI 11.0 library, and am working
in Office 2003. My code is:

Dim MyDoc as MODI.Document, Viewer as MiDocView, f as string
f="c:\myfile.mdi"
Set MyDoc = New MODI.Document
MyDoc.Create f
Set MiDocView.Document = MyDoc

The Document Viewer doesn't instantiate, tho. FWIW, if I then add

MyDoc.printout

It works fine.

I have also tried simply:

Dim Viewer as MiDocView, f as string
f="c:\myfile.mdi"
Set MiDocView.FileName = f

I have played around w/ different variations of using or not using NEW & SET
- I think I've gone through every permutation imaginable.

What am I missing??? [Catagorize me as an advanced beginner in VB.]

User submitted from AEWNET (http://www.aewnet.com/)
 

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