Microsoft KB Archive/125419

= WD: PostScript Code Seems to Be Missing =

Article ID: 125419

Article Last Modified on 1/19/2007

-

APPLIES TO


 * Microsoft Word 6.0 for Macintosh
 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 6.0a
 * Microsoft Word 6.0c
 * Microsoft Word 95 Standard Edition
 * Microsoft Word 97 Standard Edition
 * Microsoft Word 98 for Macintosh

-



This article was previously published under Q125419



SYMPTOMS
When you convert a document from Microsoft Word 4.0 or 5.x for the Macintosh to Microsoft Word 6.0 and later, text that was formatted with the PostScript style seems to be missing.

-or-

When you insert a PostScript command from an AutoText entry, the entry is not visible and cannot be edited.



CAUSE
Word 6.0 and later converts this text to a PRINT field. If you have not selected the option to view field codes, you cannot see the PostScript text. However, Microsoft Word 6.0 and later print the PostScript code correctly.



RESOLUTION
To make the PostScript-formatted text visible, turn on field codes (in other words, do not show the field code results):
 * 1) On the Tools menu, click Options (in Microsoft Word 98 Macintosh Edition click Preferences).
 * 2) Select the View tab.
 * 3) Click to select the Field Codes check box.
 * 4) Click OK.

All the fields in the document are now visible, including the PRINT fields that contain the PostScript code.



MORE INFORMATION
In Word versions 4.0 and 5.x for the Macintosh, PostScript code could be typed directly in the document and then formatted with the built-in PostScript style. The PostScript style is not available in Word 6.0. The PRINT field is used instead.

Below are instructions on how to create a PRINT field and instructions for a macro that automates this process.

Creating a PostScript PRINT Field
 Place the insertion point where you want the PostScript to be printed. On the Insert menu, click Field. Click to clear the Preserve Formatting During Updates check box. In the Categories list, select All. From the Field Names list, select Print. Click Options.</li> In the Field Options dialog box, select "\p page".</li> Click Add To Field.</li> Move the insertion point to the end of the text in the Field Codes box.</li> Type a space.</li> Type two quotation marks.</li>  Click OK twice.

You should see the following field code: <pre class="fixed_text">      {PRINT \p page ""} </li> Paste the text between the quotation marks in the field.</li> Print the document.</li></ol>

PostScript-to-PRINT-Field Macro
Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site:

https://partner.microsoft.com/global/30000104

For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

The following macro (Microsoft Word 6.0 and 7.0 only) converts a selection into a PRINT field: Sub MAIN ViewFieldCodes 1 If SelType = 2 Then a$ = Selection$ EditClear InsertField .Field = "Print \p page " + Chr$(34) + a$ + Chr$(34) Else MsgBox "This is not a valid selection." + Chr$(13) + Chr$(13) + "Please     select the raw PostScript code in " + Chr$(13) + "your document and      rerun      the macro. ", 16 End If  End Sub

Additional query words: Style Missing PostScript code glossary entry field edit hidden text find disappears convert

Keywords: kbdisplay kbfield kbinterop kbprb kbprint KB125419

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.