J
John Nurick
If you'd scrolled through the list you get when you use the
Tools|References menu command in the VB Editor you would have found the
"Microsoft Office Document Imaging 11.0 Type Library".
Once you've set a reference to a library you can see what it contains by
hitting <F2> to launch the Object Browser. I don't know how to program
MODI; it doesnt' seem to expose an Application object.
However, as a general rule if you want to print a document you can find
out how by going to the Folder Options in Windows Explorer. Switch to
the File Types tab, find the type you're interested in, and click
Advanced... Then select Print and click Edit... Under "Application
used..." you'll usually find a Windows shell command that will do the
job. For TIFF files on my computer, it's
"C:\Program Files\Common Files\Microsoft Shared\MODI\11.0\MSPVIEW.EXE"
/p "%1"
where %1 would be replaced by the file to be printed.
(This information is also available under program control by using API
calls to read the corresponding registry entries).
Tools|References menu command in the VB Editor you would have found the
"Microsoft Office Document Imaging 11.0 Type Library".
Once you've set a reference to a library you can see what it contains by
hitting <F2> to launch the Object Browser. I don't know how to program
MODI; it doesnt' seem to expose an Application object.
However, as a general rule if you want to print a document you can find
out how by going to the Folder Options in Windows Explorer. Switch to
the File Types tab, find the type you're interested in, and click
Advanced... Then select Print and click Edit... Under "Application
used..." you'll usually find a Windows shell command that will do the
job. For TIFF files on my computer, it's
"C:\Program Files\Common Files\Microsoft Shared\MODI\11.0\MSPVIEW.EXE"
/p "%1"
where %1 would be replaced by the file to be printed.
(This information is also available under program control by using API
calls to read the corresponding registry entries).