Contacts

Word requires a converter to properly display the file. Select text encoding when opening and saving files. How Convertword works

For those who have an old Microsoft Office such as 97, 2003, 2007 and 2010

For compatibility of office formats, install the appropriate software.

so that new formats have opened in old versions

Overview

Users word programs, Excel or PowerPoint packages Microsoft Office. XP and 2003: Before downloading compatibility package install high priority updates from the websiteMicrosoft Update. before downloading compatibility package. Installing compatibility package as a supplement to Microsoft Office 2000, Office XP or Office 2003 packages, you can open, edit and save files in new formats that are used in the latest versions of Word, Excel and PowerPoint programs. Compatibility package can also be used with Microsoft Office Word 2003, Excel 2003 and PowerPoint 2003 to view files saved in new formats. For more information about compatibility package, see the Knowledge Base Article.

Note. If a microsoft program Word 2000 or Microsoft Word 2002 is used to read or write documents containing a set of complex characters, then to properly display word documents In the new versions of the application, contact the information contained in the article.

Administrators: You can download the administrative template for Word, Excel and PowerPoint converters contained in the compatibility package.

Update.Microsoft Office Compatibility Package Updated and turns on the update package 2 (SP2). Now, if docx files Or DOCM contains configurable XML tags, then tags are deleted when you open the file in Word 2003. For more information, see the article KB978951

System requirements

  • OS:Windows 2000 Service Pack 4, Windows Server 2003, Windows Vista, Windows Vista Service Pack 1, Windows XP Service Pack 1, Windows XP Service Pack 2, Windows XP Service Pack 3, Windows XP SERVICE PACK 3
    Windows 7; Windows Server 2008
  • Recommended Microsoft Office programs:
    • Microsoft Word 2000 Service Pack 3 (SP3), Microsoft Excel. 2000 Service Pack 3 (SP3) and Microsoft PowerPoint 2000 Service Pack 3 (SP3)
  • Microsoft Word 2002 Service Pack 3 (SP3), Microsoft Excel 2002 Service Pack 3 (SP3) and Microsoft PowerPoint 2002 Service Pack 3 (SP3)
  • Microsoft Office Word 2003 Service Pack 1 (SP1) or later, Microsoft Office Excel 2003 Service Pack 1 (SP1) or later and Microsoft Office PowerPoint 2003 Service Pack 1 (SP1) or later
  • Microsoft Office Word Viewer.
  • Microsoft Office Excel Viewer 2003
  • Microsoft Office PowerPoint 2003 Viewer

Instructions

Installing update

  1. Make sure your system is updated by installing high priority updates and mandatory updates downloaded from Microsoft Update Website (required for users of Microsoft Office XP and 2003).
  1. After installing upgrades with high priority and required updates from the Microsoft Update website, download the compatibility package by pressing the button located above and saving the file on the hard disk.
  1. To start the installation program, double-click the executable file saved on the hard disk. Fileformatconom.exe..
  1. Follow the installation by following the directions on the screen.

Deleting a downloaded file

When solving everyday IT tasks, such as network administration and user support, often apply various filesEspecially documents drawn up in text editors. Unfortunately, built-in windows tools allow you to work with documents only with files; Standard tools do not ensure the processing of internal Word data, for example, the conversion of the type of document.

I compiled a WSH script (Windows Script Host) called ConvertWord, which is used as a command shell for Microsoft Word and makes it easier to work with documents. In addition, the script may be useful for testing incorrect documents.

Requirements convertword

To use ConvertWord on a computer must be installed Word 97 or later text editor. The complete source code of the Convertword can be downloaded from the Web site of our magazine. Fragments of the ConvertWord script are shown below. Convertword.wsf and convertword.cmd files should be saved in one folder.

ConvertWord can automatically use any file format converter implemented in Word. Together with Word, a basic set of file formats converters are supplied for typical documents. However, this set does not include special converters, for example for microsoft documents Works or WordPerfect. To get these and other optional converters, you need to perform special installation Word.

Standard Word Converters, which are included in the Microsoft Office Resource Kits package, can be downloaded from Office 2003 Editions Resource Kit pages at http://www.microsoft.com/office/ork/2003/default.htm. . Converters from the resource package are compatible with Word 97 and newer editor versions. After installing the resource package, go to the created directory (default, \\% programfiles% orkTools) and find a file with a set of converters (oconvpck.exe), and then start OCONVPck.exe on all computers on which converters need to be deployed.

Assigning Convertword.

Initially, the purpose of creating ConvertWord was to perform some tasks inaccessible to the Word Editor Batch Conversion Wizard. Master Batch Conversion Wizard is a useful addition to the instrumental set of any administrator. The master is a Word template that performs the conversion of one input format to one output format. More detailed information About such a conversion can be found in Microsoft article "How to Automatically Convert Many Documents to Word 2002 Format" at http://support.microsoft.com/?kbid\u003d313714.

The Batch Conversion Wizard wizard performs a lot of tasks, but is not optimized for some of them, such as remote administration or automation of simple transformations for end users, working with documents in individual network nodes. ConvertWord will help solve such tasks of the distributed transformation by performing the following basic operations.

  • Sends to the system a request for the Word version available in it.
  • Automatically opens lists of documents of mixed types of arbitrary length.
  • Guaranteed saves documents with unique names in word Format (default) or other formats.
  • Test documents in search of problems of formatting and incorrect user passwords.

How Convertword works

Convertword conversion process - four-stage. At the first stage, the script generates an instance of Word application, as shown in the fragment listing 1. Tagged A. Part of the source text of the script is intended to maximize the number of dialog boxes. For example, the source text with a label B blocks dialog boxes, when it's possible.

At the second stage, ConvertWord opens every document. The Word object contains a document set; When calling the Open method of this set (fragment with label A in listing 2.) Document is extracted. If the document name is known and it is necessary that Word automatically define its format, you can call the method, specifying only the name of the document as an argument.

Or you can specify the document format as another parameter for the Open method. Unfortunately, depending on the Word version, up to 16 parameters are required for the Open method. Since the parameter controller is located in a tenth place, you must specify nine previous parameters. The result is a long, bulky string. Options for parameters can be obtained at http://msdn.microsoft.com/library/default.asp?irll\u003d/library/ enus / dv_wrcore / html / wrconwordObjectmodeloverview.asp or in Word Help.

Convertword options - FileName, ConfirmConVersions, ReaDonly, AddTorementFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate and Format. The FileName parameter is the name of the Word document file. Using the ConfirmConVersions parameter, you can display the dialog box when Word converts an open document. In the convertword, this parameter is always assigned to FALSE to facilitate automation.

The ReadOnly parameter controls the read-only document opening process; ConvertWord always assigns the value to True to this parameter so that the source document does not change. AddTorementFiles Determines whether an open document will be entered into the RecentFiles list of the current user. The document can be one of the dozen or even hundreds, so adding it to the list is not recommended and the parameter is assigned the value of FALSE.

PasswordDocument is a password for opening secure documents, and PasswordTemplate is a password for templates. These values \u200b\u200bare useless for documents other than Word, so instead of any parameter you can specify two double quotes (""), denoting an empty string. The Revert parameter determines whether the script will return to the current open version of the document if the transformed document is already open. Convertword assigns True to this parameter to avoid the loss of changes and activate only an open instance of the document.

WritePasswordDocument and WritePasswordTemplate parameters indicate passwords required for saving open document or template. For the purposes of this article, these parameters are not required, since ConvertWord does not overwrite the source document; Therefore, the script is set "" for each of these arguments.

Finally, the Format parameter is a number indicating the method that Word uses to determine the format of an open document. Correctly indicate the number is not easy, since the numbers and methods represented by them depend on set version Word, additional document converters and installation order. Suppose we need to open and convert the RTF document (RICH Text Format) with a format opening code 3. To open an example of a document using the standard RTF converter, the following procedure is used:

Set Doc \u003d Word.Documents._

Open ("C: MY.RTF", False, _

True, False, "", "", _

True, "", "", 3)

Some strings source code This article is divided into several lines due to lack of space. A list of additional document converters with relevant numbers and standard extensions can be found using the object FileConverters set. In the source text listing 3 shows a list of these converters. There are no standard Word converters in the list. List of standard Word Converters can be found in table. one And in Word Help.

The CreateFormatCollections subroutine The Convertword script displays a list of Word converters. Although the script partly simplifies the task of determining the formats of opening and saving, the format used to open or save the document depends on the Word version and the order of installing converters.

After opening his document a new version Saves using the SaveAs method (fragment with a label A in listing 4.). The Saveas method takes up to 16 parameters, but we only need two, since required parameter SaveFormat - second. As with the OpenFormat parameters, you must specify the format codes of the open document in the SaveFormat parameter. To specify the saving format - for example, save the document in a pure text file C: my.txt, - you should enter the command

doc.saveas "C: my.txt", 2

Saving a document, ConvertWord closes it using the Close method (Listing 4 label B). The false value indicates that Word must cancel changes if the document after saving has been changed. When the script sequentially opens, save and closes all documents, recent step There will be a way out of Word through the call of the QUIT method Word ( listing 5.).

Application convertword

Before the first launch, ConvertWord is useful to read the information about the local version of Word by completing the command.

convertword / Version.

This team shows important information, including the number installed on the Word version machine. Microsoft. I stopped specifying the version number in the product name starting with Office 95 (which would be called Office 7), but the internal version number increases by 1 with the release of each next essentially updated version. The same numbering scheme is used in Word as in the Office complex component. Internal versions - 8 (Word 97), 9 (Word 2000), 10 (Word 2002) and 11 (Word 2003).

By default, ConvertWord automatically opens the files, making reasonable assumptions about their format (for example, Word, simple text, WordPerfect, RTF) and saves them in the form of Word documents, giving them unique names consisting of the file name, underscore character and numbers. ConvertWord provides several ways to assign name documents. The file name can be entered as the next command as an argument:

convertword Unicode.txt Plain.txt.

Otherdocscorel.wps.

As a result of this approach, the output files in Word format are saved as unicode.doc, plain.doc and otherdocscorel.doc. Another option is to configure ConvertWord to read files from a standard source, for example:

convertword

The results of the file that creates a list of files can be sent to Convertword as follows:

dIR / S / B C: INBOX * .TXT

| convertword

If the input data is not specified, CONVERTWORD requests the names of the input documents until the Ctrl + C key combination is pressed twice.

ConvertWord implements a simple method that allows you to avoid overwriting files having the same names. Suppose you need to save Word file as text file With the name Mylist.txt. If the file with the same name already exists, the convertword begins to go through the sequence of derivative names - mylist_1.txt, mylist_2.txt, etc. - until the unused name is found. Then this name is assigned to the saved file. As a rule, there is less time to search for a file than the opening and saving document manually.

Changing the location of the storage and name of the files

ConvertWord saves files in the same folder in which it is located. original file, With the same basic name. Thus, when converting files for many users or groups of users, new files will be accommodated next to the old. Usually, users know "their" files and remember their names.

But the directory to record transformed documents can be changed. To do this, it is enough to specify the / d key with the full name, which can be absolute or specified relative to the path indicating the folder in which the script works. ConvertWord extends the path to the full format and creates the appropriate directory if it does not exist.

convertWord / D: C: Empexports

You can change the basic name (file name without extension) using the key / b. If Convertword detects multiple files with the same name, then ConvertWord changes file names as explained above. You can also apply the / x key to specify the file extension other than the standard extension of the exported file type.

Creating documents other than Word

By default, ConvertWord automatically generates Word documents. If you need to create a document other than Word, then you can use the / SA parameter utilities Convertword to change the standard preservation format. The formats in which you can save files are changed depending on the Word version and additional converters existing in the system in which Convertword works. The first step when saving a file in a specific format - launch Word with / CNV key to view installed converters; The converter number corresponds to the type in which you want to save a new file. If all files must be saved in a specific format, for example, RTF (number 6), then the CONVERTWORD arguments should add key / SA: 6. For example, to convert all WordPerfect files in the current folder in RTF, you should run the command

dIR / S / B * .WPD

| Convertword / SA: 6

Depending on the Word version and installed converters, the number of available formats can be large. Before converting files, you must always check the types, as their numbers will be different in different machines. The only exception from this annoying rule is the standard built-in Word converters. Word 97 and later versions have the same values \u200b\u200bfrom 0 to 6, and standard-type numbers increase with the addition of new versions. For Word 2003, the rooms from 0 to 11 will be the same on all machines. Exception from standard values \u200b\u200b- output with number -1. This value does not match the Word Converter, but is used as a ConvertWord command to record data from the document file to the console. It can be set using the / SA - / SA: -1 or / SA + key.

Error processing

During large-scale transformation operations, problems with some files may arise. We need a way to track documents, an attempt to transform whose failure. If the file cannot be converted, the ConvertWord transmits the file name and descriptive information to the standard error stream (Standard Error Stream - Stderr); The administrator can track the failures, watching how file names are scrolled on the screen, or redirecting error data to a file for subsequent analysis, for example:

Errors.txt

By default, Convertword shows errors, the file name only and the error number:

c: Demo.rtf Failed: 2

Using the / V + key (Verbose Output), you can get more information about the error:

convertword
/v+eerrors.txt

The / V- key does not provide error numbers; Instead, the file name is simply sent to STDerr to facilitate subsequent processing.

The last error detected by ConvertWord is always taken as the final level of the error; After the scenario is completed, this value is available on the command environment and can be read by another scenario, which will determine whether the CONVERTWORD call was successful or ended.

To detect potential errors without converting documents, you can run ConvertWord with the / W key (What if is that if). This key causes Convertword to open all documents without saving them. If any files occur in any files, for example, internal data is distorted, an ordinary error message will be issued.

Solving the problem of passwords

Passwords deliver especially many problems with group processing, as they can be for different documents Different. By default, ConvertWord uses the "Space" symbol as a password that opens all documents that do not have passwords, and pair documents generate an error that does not stop further processing.

This behavior can be changed using the / P (Password) key. If you specify an empty argument (for example, / p: "), the Word asks to enter a password for all protected documents. With key / P, you can specify a specific password. However, at the same time, to open documents without a password or with a password, different from the specified, will fail.

CONVERTWORD practical application

I spent about 30 thousand transformations using Convertword and found several typical problems. Unusual failures were almost invariably caused by Word automation errors; The error number and message in most cases proceed from Word. Most errors (for example, the wrong password) is easy to eliminate or understand. The following three errors repeated quite regularly.

The first one is the Word pop-up dialog box for documents containing macros. By default, ConvertWord blocks macros in documents to protect the user from dangerous software code. However, when Word opens documents containing macro to the screen, a dialog box with a message about blocking a macroscopomand is displayed. The only way to fix this window is to allow the execution of the macros. You can do this by running the convertword and specifying the / AS key (Automation Security - safe automation) with a value of 0 (/ AS: 0). This is a standard value for Word programmatically opened documents. Before using the / AS key, you must make sure that the document opens does not contain a dangerous software code.

The second error is related to some RTF documents that cannot be successfully open, but which are nevertheless correctly displayed in WordPad. Usually they are incorrectly formatted and cannot be correctly opened in Word. Convertword is not able to eliminate this problem, so it is impossible to apply such ConvertWord files.

The third error occurs because Word identifies UNICODE text documents by the BYTE Mark starter in the file. If the mark is missing, the WORD considers the document as a simple text, and when the converted document is opened, the user will see empties after each visible symbol (in reality void correspond to zero symbols). The only way to solve the problem is to convert files with / oa (OpenAs), configured to text Encoded or Unicode (/ OA: 5 for Word 97 and later).

Fortunately, such mistakes occur relatively infrequently. ConvertWord will be extremely useful for processing a large number of documents and will help open and convert Word documents without tedious work manually.

Specialist in networks consulting Indiana. Has certificates MCSE, MCP + I and MVP.

Overview

For users of Word, Excel or PowerPoint packages Microsoft Office XP and 2003: Before downloading compatibility package, set up a high priority package from the Microsoft Update web site to how to download compatibility package.

Setting the compatibility package as a supplement to Microsoft Office 2000, Office XP or Office 2003 packages, you can open, edit and save files in new formats that are used in recent versions Word, Excel and PowerPoint programs. Compatibility package can also be used with Microsoft Office Word 2003, Excel 2003 and PowerPoint 2003 to view files saved in new formats. For more information about the compatibility package, see the Knowledge Base Article 924074.

Note. If the Microsoft Word 2000 or Microsoft Word 2002 program is used to read or write documents containing a set of complex characters, then to properly display Word documents in new versions of the application, contact the information contained in Article 925451.

Administrators: You can download the administrative template for Word, Excel and PowerPoint converters contained in the compatibility package.

Update. Microsoft Office Compatibility Package Updated and turns on the update package 2 (SP2). Now, if the DOCX or DOCM files contain configurable XML tags, then the tags are deleted when the file is opened in Word 2003. For more information, see the article KB978951

System requirements

OS:

Windows 2000 Service Pack 4, Windows Server 2003, Windows Vista, Windows Vista Service Pack 1, Windows XP Service Pack 1, Windows XP Service Pack 2, Windows XP Service Pack 3
Windows 7; Windows Server 2008

Microsoft Word 2000 Service Pack 3 (SP3), Microsoft Excel 2000 Service Pack 3 (SP3) and Microsoft PowerPoint 2000 Service Pack 3 (SP3)

Microsoft Word 2002 Service Pack 3 (SP3), Microsoft Excel 2002 Service Pack 3 (SP3) and Microsoft PowerPoint 2002 Service Pack 3 (SP3)

Microsoft Office Word 2003 Service Pack 1 (SP1) or later, Microsoft Office Excel 2003 Service Pack 1 (SP1) or later and Microsoft Office PowerPoint 2003 Service Pack 1 (SP1) or later

Microsoft Office Word Viewer.

Microsoft Office Excel Viewer 2003

Microsoft Office PowerPoint 2003 Viewer

Instructions

Installing update
Make sure your system is updated by installing high priority updates and mandatory updates downloaded from the Microsoft Update website (required for Microsoft Office XP and 2003 users).

After installing high priority updates and mandatory updates from the Microsoft Update website, download the compatibility package by pressing the download button located above and saving the file on the hard disk.

To start the installation program, double-click the FileFormatConverters.exe executable file saved on the hard disk.

Follow the installation by following the directions on the screen.

Deleting a downloaded file

In the "Start" menu operating system Windows Click the control panel icon.

Select Installation and Delete Programs.

In the list installed programs Select compatibility package for the 2007 Office system, and then click Delete or Add or Delete. When the dialog box appears, follow the instructions for removing the program.

Click Yes or OK to confirm the removal of the program.


Full material Material Microsoft Office 2010 compatibility package for formats word files, Excel and PowerPoint Look in the download file.
The page shows a fragment.

Did you like the article? Share it