|
USING MS WORD® WITH ResSched
|
Top Previous Next |
|
If your organization has licensed the Corporate Edition of ResSched you may use Microsoft Word® to generate many of the ResSched reports, but this can be done only if Microsoft Word® is already installed on the same workstation.
Before using Word® to generate ResSched reports, the following files must be installed in the system folder of the work station:
ArcoIntf.Ocx (VB Ocx) Msvbvm50.dll (VB Runtime DLL)
Usually, these files are in C:\Windows\System for Windows 95/98/ME, C:\WinNT\System32 for Windows NT/2000 , and in C:\Windows\System32 for XP. If ResSched was installed using its own installation program, these files were copied to the system folder if they were not already present.
Overview
The Word® feature works by calling a Word template and then substituting the relevant words, values and tables at predefined locations. Each report or schedule has its own template with the standard .dot extension. Each location to be replaced by a word, value or table is marked by a word token preceded and followed by the @ symbol. Users can edit the layout of the schedule as they would any other template. Except for tables, changes to the font or format of the word tokens will be reflected in the words or values they represent.
The actual data for the schedules and reports is displayed using Word® tables. The layout and format of the tables is controlled by style sheets, which can be edited by the user. The style sheets are originally in the file ResSchedStyle.rtf. Each style sheet consists of one-row tables preceded by @STILx (x is a number). Each major section of a table (e.g., table header, body) has its own style sheet. Unlike the templates, all the style sheets can be kept - and are kept by default - in one file. The style sheets also use word tokens, which are replaced by words or values. In this case, the @ symbol only precedes the word. Style sheets are kept in Rich Text Format files.
The Advantages of Using MS Word® to Print ResSched Reports
The Disadvantages of Using MS Word® to Print ResSched Reports
Choosing Settings for Using MS Word®
Users must set some general conditions for the way Word works with ResSched. These settings are established under File>>Word Setup. Unlike User Preferences, the settings here are associated with the workstation rather than the individual user. The settings are stored in the ResSched.ini file in the user's sub folder in the Document and Settings folder of the workstation.
Global Settings
Document Template Tab
For each text-based schedule or report, a user must specify a template file and a style sheet file. A look-up button beside each entry can be used to select the appropriate file. To ensure that ResSched can find the templates and style sheet, you should use the lookup button to locate the template and style sheet for each report you want to print. This will fill in the complete path to the template or style sheet. Without the complete path you are likely to get an error message 'OLE automation error xxxx.dot cannot be found'.
While there are only 11 basic schedules and reports, most may cover more than one type of entity or period. Before Word® is called to generate the schedule or report, a user will have already used the relevant window to specify the entity and period to be covered.
After settings are entered, ResSched will call Word® whenever a user selects a text-based report or schedule to be printed.
Editing Templates and Style Sheets
Users are very strongly advised to make a backup copy of the complete set of templates and ResSchedStyle.rtf before editing or replacing them. The word tokens in both the templates and style sheets must have exactly the same characters for the replacement template or style sheet to work.
The best way to determine what a word token represents in a template is to generate the schedule or report and then compare it against the template and the style sheet.
With style sheets, each section of the table has its own style and is referenced by a number. The number is converted into a token by adding @STIL before the number. The style number token must be at the beginning of the line immediately above the one-row table that contains the layout, format and word tokens that comprise the style sheet for that section of the table.
|