Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLE - Connect to MS Document Imaging

Status
Not open for further replies.

pbsky

Programmer
Jul 5, 2005
3
US
Hello,
From my application, I want to open a .TIF file using Microsoft Office Document Imaging. I got some information in Microsoft web page but I did not get to open the tif file. Does someone have any idea?

ls_file = c:\test.tif
iole_object = CREATE oleObject
iole_object.connecttonewobject("MODI.Document")
iole_object.FileName = ls_tif /*it causes a runtime error

 
My guess (since I have not used this control) is that you have to create a MiDocView object (the actual viewer control) and then set the filename property. Create the midocview after your connecttonewobject call.

Or it may be something like: iole_object.MiDocView.FileName = ls_tif

Please let us know when you get it working.

Matt

"Nature forges everything on the anvil of time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top