MODI viewer control (Microsoft Office Document Imaging Control)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone please provide a link to or sample of Access code that displays
mdi files on an Access form.

Thank-You in advance.

Top Dog
 
You can get the control and basic info here:
Office 2003: Microsoft Office Document Imaging Visual Basic Reference (MODI)
This download includes the reference documentation for the MODI object
model and the MODI Viewer ActiveX control in the form of a compiled Help
file (CHM), MSPAUTO.CHM.
http://www.microsoft.com/downloads/details.aspx?FamilyID=8f93e445-b1c...

For other detailed information and sample source code see:


http://www.ilixis.com/developer/modi.html



--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Thanks for the speedy reply.

1. I downloaded and installed the control and documentation.
2. created a simeple Access 2003 form
3. Added the MODI control which also added a referece to an appropriate dll
4. Copy/Paste some of the sample code from the chm documentation file
5. Ran sample code

However there is no sample that shows how to bind the control to an existing
mdi file or a data source.

If I could show an existing mdi file from an Access form, I would have
solved my problem.

The second link takes me to a place where I would have to pay money to get
some sample code. I don't have the money right now.

Any ideas would be helpful.

Thanks again.

TopDog
 
I inadvertently left out the MS MODI doc URL.
http://support.microsoft.com/default.aspx?scid=kb;en-us;311765

While I would suggest you read the entire KB article here is the relvant
info.

Open takes either a qualified file path or a URL to a file on a remote Web
server. The control attempts to gain write access to the file and keep it
locked for editing unless you pass True for the ReadOnly parameter. For
example, the following code opens a local file and keeps a lock on it for
editing:
DsoFramer1.Open "C:\TestBook.xls"
If you want to open a file that is not associated with an Office
application but that can be loaded with Office, you can specify an alternate
ProgId in the Open method. For example, to open a plain text file in Word,
you can use code that resembles the following:
DsoFramer1.Open "C:\Plain.txt", , "Word.Document"
If you combine this ability with a URL, you can use code that resembles
the following to open the resulting HTML streamed back from an ASP file and
have it display as data inside of Excel:
DsoFramer1.Open "https://secureserver/test/mytest.asp?id=123", True, _
"Excel.Sheet", "MyUserAccount", "MyPassword"

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top