Command line options
You can use command line options when you start Microsoft Office Document Imaging from either the Run command (Start menu) or from a command prompt.
Command | Result |
---|---|
mspview <path:filename.tif> | Starts Office Document Imaging and opens the specified file. |
mspview -r <path:filename.tif> | Starts Office Document Imaging and opens the specified file in Reading view. |
mspview -o <path:filename.tif> | Starts Office Document Imaging, performs
optical character recognition (OCR) on the specified file, and then saves the
file with the new OCR text. This command has no effect if OCR has already been performed on the file. This command can be used for batch processing when you need to recognize text in multiple TIFF files. Notes
|
mspview -f <path:filename.tif> | Starts
Office Document Imaging, performs OCR on the specified file, and then
saves the file with the new OCR text.
Use this command if you want to perform OCR on a file that has already had OCR performed on it. This command can be used for batch processing when you need to recognize text in multiple Tagged Image File Format (TIFF) files. Notes
|
For example, the following command opens Mypic.tif in Reading view.
mspview -r "C:\My Documents\mypic.tif"
Microsoft Office Document Imaging returns the following informational and error values.
Return value | Meaning |
---|---|
0 | Command successful. |
1 | File already has OCR information. |
3 | Could not locate application. |
4606 | Unable to open file. Check file name and permissions. |
4610 | The file is not a valid Microsoft Office Document Imaging file. |
4645 | Microsoft Office Document Imaging does not support this type of TIFF file. |
4648 | Unable to save file. Check disk space and permissions. |
4654 | Cannot recognize text in this document. OCR was not successful. |
4655 | Cannot perform this operation due to system resource constraints. |
4657 | There is not enough memory to complete this operation. |
4661 | You do not have sufficient permissions to open or save this file. |
4662 | Unable to read file due to disk or network error. |
4663 | Not enough temporary disk space to complete the operation. |
4665 | A component of the application is missing. Please reinstall the application. |
4673 | There are too many instances of Microsoft Office Document Imaging running. Please close one or more and then retry this operation. |
4678 | Unable to complete operation. Check access permissions on the file. |
4679 | Unable to complete operation. If this is a network file, network connection may have failed. |
4681 | This file is read-only. |
4682 | Unable to complete operation. The file is locked for exclusive use by another user. Please try again later. |
4683 | Unable to copy file to local drive. Check disk space and permissions. |
4684 | Unable to open document. If this is a Web document, check your connection and try again. |
4685 | File already has OCR text information. |
4692 | Unable to save <filename>. This file is in use by another user. |
4699 | Microsoft Office Document Imaging requires the system locale and the application language to be the same. |
4700 | Error completing operation. Could not create temporary file. |
4701 | This operation has been canceled due to restrictions in effect on this computer. Please contact your system administrator. |
9009 | Bad command line argument. |