[MSH] Using Microsoft Office Document Imaging

Discussion in 'Scripting' started by Lionel Fourquaux, Dec 10, 2005.

  1. Hello,

    I'd like to use MS Office's OCR from MSH. However, here is what happen when
    I try it:

    MSH C:\Documents and Settings\Lionel\Mes documents\Mes images> $modi =
    new-object -COM MODI.Document
    MSH C:\Documents and Settings\Lionel\Mes documents\Mes images>
    $modi.Create([string]$PWD + '\sometext.tif')
    MSH C:\Documents and Settings\Lionel\Mes documents\Mes images> $modi.OCR()
    Object reference not set to an instance of an object.
    At line:1 char:10
    + $modi.OCR( <<<< )
    MSH C:\Documents and Settings\Lionel\Mes documents\Mes images> $modi.OCR(12,
    $true, $true)
    Object reference not set to an instance of an object.
    At line:1 char:10
    + $modi.OCR( <<<< 12, $true, $true)

    (See
    http://msdn.microsoft.com/library/en-us/Mspauto/html/dimthOCR_HV01040595.asp
    for the documentation of the OCR method).

    I have some suspicion that this may be related to the MiLANGUAGES type for
    the first argument of OCR:

    OCR Method void OCR (MiLANGUAGES, bool, bool)


    I can see at least two workarounds for this problem (use cscript, or a
    helper assembly), but is there some way to use MODI directly from MSH?
     
    Lionel Fourquaux, Dec 10, 2005
    #1
    1. Advertisements

  2. Lionel Fourquaux

    lee.holmes Guest

    Hi Lionel;

    I see the problem you're experiencing, and it appears to be working in newer builds.

    --
    Lee Holmes [MSFT]
    Microsoft Command Shell Development
    Microsoft Corporation
    This posting is provided "AS IS" with no warranties, and confers no rights.


    -----Original Message-----
    From: Lionel Fourquaux
    Posted At: Saturday, December 10, 2005 8:32 AM
    Posted To: microsoft.public.windows.server.scripting
    Conversation: [MSH] Using Microsoft Office Document Imaging
    Subject: [MSH] Using Microsoft Office Document Imaging

    Hello,

    I'd like to use MS Office's OCR from MSH. However, here is what happen when
    I try it:

    MSH C:\Documents and Settings\Lionel\Mes documents\Mes images> $modi =
    new-object -COM MODI.Document
    MSH C:\Documents and Settings\Lionel\Mes documents\Mes images>
    $modi.Create([string]$PWD + '\sometext.tif')
    MSH C:\Documents and Settings\Lionel\Mes documents\Mes images> $modi.OCR()
    Object reference not set to an instance of an object.
    At line:1 char:10
    + $modi.OCR( <<<< )
    MSH C:\Documents and Settings\Lionel\Mes documents\Mes images> $modi.OCR(12,
    $true, $true)
    Object reference not set to an instance of an object.
    At line:1 char:10
    + $modi.OCR( <<<< 12, $true, $true)

    (See
    http://msdn.microsoft.com/library/en-us/Mspauto/html/dimthOCR_HV01040595.asp
    for the documentation of the OCR method).

    I have some suspicion that this may be related to the MiLANGUAGES type for
    the first argument of OCR:

    OCR Method void OCR (MiLANGUAGES, bool, bool)


    I can see at least two workarounds for this problem (use cscript, or a
    helper assembly), but is there some way to use MODI directly from MSH?
     
    lee.holmes, Dec 12, 2005
    #2
    1. Advertisements

  3. same goes for ? :

    WindowsInstaller.Installer

    (much used for setting sourcepath, I think 3.0 has .NET but for 2.0 only
    COM I think)

    thx

    /\/\o\/\/
     
    /\\/\\o\\/\\/, Dec 12, 2005
    #3
  4. Thanks!

    Btw, can you tell us what causes this problem (for my curiosity), and when
    to expect it?
     
    Lionel Fourquaux, Dec 14, 2005
    #4
  5. Lionel Fourquaux

    lee.holmes Guest

    You're welcome. I didn't investigate the problem deeply, as there has been a good deal of work done to our COM support since the last public release.

    We're planning to refresh download center in the near future with an updated build, but I'm not certain exactly when. Keep your eyes open for a post from Leonard Chung, as he'll hopefully be able to provide some idea.


    --
    Lee Holmes [MSFT]
    Microsoft Command Shell Development
    Microsoft Corporation
    This posting is provided "AS IS" with no warranties, and confers no rights.


    -----Original Message-----
    From: Lionel Fourquaux
    Posted At: Wednesday, December 14, 2005 2:40 PM
    Posted To: microsoft.public.windows.server.scripting
    Conversation: [MSH] Using Microsoft Office Document Imaging
    Subject: Re: [MSH] Using Microsoft Office Document Imaging

    Thanks!

    Btw, can you tell us what causes this problem (for my curiosity), and when
    to expect it?
     
    lee.holmes, Dec 14, 2005
    #5
  6. Hi Lionel,

    We're aiming for the 1st half of January for the next release of Monad with
    Single Shell functionality.

    Leonard

     
    Leonard Chung [MSFT], Dec 15, 2005
    #6
  7. Thank you for the information, Leonard! I'm awaiting this release eagerly.

    Do you plan to document somewhere (may I suggest a post in the Monad team
    blog?) the changes in COM support?

     
    Lionel Fourquaux, Dec 16, 2005
    #7
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.