Word OLE Error 5216
From Support
| | If you have a question or seek clarification, please call Technical Support. |
[edit]
Problem:
Customer gets the following error in their job log when trying to run the FTPRUNPC command with the MERGELETTERPRINT directive to automatically print the document after the merge completes:
Additional Message Information
Message ID . . . . . . : CPF9898 Severity . . . . . . . : 40
Message type . . . . . : Escape
Date sent . . . . . . : 06/25/02 Time sent . . . . . . : 16:18:05
Message . . . . : FTP Command Error: 500 MS Word OLE error: 5216 There is a
printer error..
Cause . . . . . : This message is used by application programs as a general
escape message.
The MS Word "File/Save As" dialog is also displayed in Word after this error occurs.
[edit]
Solution:
Make sure the correct printer name is specified on the FTPRUNPC command when running a mail merge.
Example merge command line:
RJSFTP/FTPRUNPC RMTSYS(&RTNIP)CMD('MERGELETTERPRINT~C:\TEMP\MERGE1.DOT~C:\TEMP\MERGE1.TXT~HP Laserjet 4000') OPTION(*WORDOLE)
In this example, the selected printer name is "HP LaserJet 4000".
To determine the correct printer name to use, start MS Word, select "File/Print" and then write down the printer name you want to use.
Note: The Printer names are case sensitive and will not worked if typed incorrectly on the FTPRUNPC command line.
