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.]
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.]