View .tif with MODI

L

lucyk

How can I view a .tif file using the Microsoft Office Document Imaging
control? Does anyone have example code?
 
L

lucyk

I still cannot get it to work. Following is the code. The image will not
display.


Dim miDoc As MODI.document
Dim myViewer As New MODI.MiDocView

Set miDoc = New MODI.document
Set myViewer = New MODI.MiDocView

'open existing document
miDoc.Create "C:\print\myfile.tif"

'attach document to viewer
myViewer.FileName = "C:\print\myfile.tif"

Set miDoc = Nothing
Set myViewer = Nothing


Thanks.
 
Top