View .tif with MODI

MS Office Access

    Sponsored Links


  • 1. Can't delete ComboBox
    I can't seem to delete a "ComboBox" on my form. I have tried everything but no luck when I delete it I get a "RunTime Error 3103" when I try to ad a new record. I have deleted all references to the ComboBox on the form itself and also in the underlying tables and queries. I added "Can't Delete" to the end of the ComboBox name on the form and in the related table, just in case I was missing a reference to the original name somewhere. As long as I keep the ComboBox on the form (over in a corner out of the way) everything is fine but if I try to delete the Control Source name in the properties window or delete the control entirely I get the RunTime Error 3103 when I try to ad a record. Any help appreciated Leoanrd
  • 2. AddNew and Cycling through Table Fields
    I was trying to add records programmatically by looping through a recordset. I also wanted to clean it up so that I don't have to hard code in the field names either and I can't seem to get this to work. As a note I do have "rs" defined and opened in code above it so rs and rs3 are intentionally different. This works just fine.... Set rs3 = db.OpenRecordset("tblEWOs") With rs3 .AddNew !Contract_Number = rs("Contract_Number") !Job_Number = rs("Job_Number") !Job_Type = rs("Job_Type") etc... .Update End With What I'd like to be able to do is something like this.... Set rs3 = db.OpenRecordset("tblEWOs") With rs3 .AddNew For x = 0 To .Fields.Count - 1 strField = .Fields(x).Name !strField = rs(strField) Next x .Update End With But the second example errors out because it can't find a field in the recordset called "strField", which is obviously not there because I want it to look for the value of strField not strField itself. Anyone know how I might be able to do this? This particular table has about 50 fields. And although I've already typed it all out, I'd like to make it a tad more dynamic and not have to change my code should the fields change. And avoid all that typing in the future along with the associated typos. TIA, Bill
  • 3. help needed in the worst way
    I want to be able to open a new form from a button when this new form opens I would like it to look at the hypetext link in my (field k) and open that to a cad drawing. or just have the button open the drawing ( i have over 900 drawings listed in field k) does anyone know how I can do this????

View .tif with MODI

Postby bHVjeWs » Sun, 02 Sep 2007 04:30:03 GMT

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

Re: View .tif with MODI

Postby Stephen Lebans » Sun, 02 Sep 2007 05:49:56 GMT

Do a GoogleGroups search on:
lebans MODI

Several of the threads point to sample source code you can download.


Stephen Lebans
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.

Re: View .tif with MODI

Postby bHVjeWs » Wed, 05 Sep 2007 23:48:02 GMT

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

  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


Similar Threads:

1.Using MODI to convert multi-page tif to single page tif

I have thousands of multipage tif images in many subdirectories that I need 
to convert into single page tifs.  I have vba code to do this (written in MS 
Access) that loops thru the directory tree and I can access info about the 
tifs using MODI.  What I'm looking to do now is convert/save the existing 
multiple page tif to a series of single page tifs so they can be imported 
into our image repository.  Anyone know how to do this?  For example, if the 
current multiple page tif is six pages is would create six single page tifs 
(e.g. sample1_page1.tif,sample1_page2.tif,...


2.MODI - tif file stays locked after .Close

I'm using a MODI reference in my VB .Net 2003 project, creating an MODI 
document object instance and using the .Create("myfilename.tif") method to 
load the document with a single image from a tiff file. After OCRing the 
text, I call the close method.
Problem is that MODI doesnt appear to release the file lock until the 
application closes, and i need to reuse the file name.

dim myMODI as MODI.Document
myMODI = New MODI.Document
{ does some work looking at the words in the myMODI.Images(0).Layout.Text 
property }
myMODI = nothing
Kill ("c:\testfile.tif") 

The kill statement fails saying that another program has the file open.
How can i get MODI to let go of the file?

Any help is appreciated.

3.MODI v12 can't open a .tif file that v11 can open without difficulty

When attempting to open a .tif file with MODI 12.0.4518.1014 I get the error 
"the selected file is not a valid microsoft office document imaging file". 
Opening this file on any machine with MODI 11.something works fine.  Is 
there a patch/fix/workaround for this?

4.Universal view of MODI files

Which PC's can view MODI (Microsoft Office Document Imaging) files (extension 

We have Office 2003 on a WinXP PC.  I wish to publish/distribute 
non-editable views, and might print PDF files (spin wheels eliminating page 
truncate in free/$20 PDF995 or spend $300 on Adobe Acrobat 7.0 Standard).

Or can everybody with a WinXP PC view/print the MODI files?  Or only if they 
have Office 2003?


-- GeneM
Knowledge Spunge (need spill-checker)

5.Viewing Tif files

6. Tif images created from MS Document writer cannot be viewed

7. Viewing tif and mdi files on Pocket PC 2003

8. How to view TIF on Access form?

Return to MS Office Access


Who is online

Users browsing this forum: No registered users and 36 guest