Consulting

Results 1 to 6 of 6

Thread: using MODI with Excel

  1. #1
    VBAX Tutor
    Joined
    Nov 2007
    Posts
    291
    Location

    using MODI with Excel

    Hi,

    I have set a reference in my VBA project to Mocrosoft Office Document Imaging 12.0 Type Library and am using th efollowing code :-

    Dim miDoc As MODI.Document
    Set miDoc = New MODI.Document
    miDoc.Create ("O:\SSHEETS\testdoc.pdf")

    but I get a runtime error :-

    Run-time error '-959967229 (c6c81003)':

    Automation Error

    Other MODI code I have seen is the same as this. does anyone know why I am getting this error

    Thanks
    P

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try doing it in Word.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Tutor
    Joined
    Nov 2007
    Posts
    291
    Location
    Hi,

    I figured out why I was getting the runtime error.

    It turns out MODI onyl works with .tif files and not .pdf or word files.

    This leads to my next issue.........is there a way in VBA to convert a pdf file to a tif file?

    Cheers
    P

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Able2Extract seems to do that.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Tutor
    Joined
    Nov 2007
    Posts
    291
    Location
    Hi,

    Do you own shares in Able2Extract!!!!

    its a good piece of software but I work for a tight bunch of people so am trying to create a free solution.

    There must be a way to write a tailored free solution to this

    Cheers
    P

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    LOL! No I don't, but I use it and it has been extremely useful to me.

    The problem with a tailored solution is catering for all possibilities in a PDF, you need to get the data structure details, and then write code to handle all things like paragraphs, images, and so on. NOt a trivial task.

    Seriously, if you do a lot with PDFs, and they are ubiquitous, create a business case for buying some software. Show how it would be used, the time savings it would generate, cost that time and compare against the capital cost. It should be a black and white yes or no then.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •