directword Troubleshooting
Content overview
Checking the license
Bibliotheken und Verzeichnisse für directword
Troubleshooting on IBM i
Determine version
IBM i version
GO LICPGM
, selection 10, key F11
directword version
WRKLIB DIRWORD
- the description contains the version number
DSPDTAARA DIRWORD/prdrel
WOPiXX
Configuration commands
Start/Stop commands
Subsystem and jobs
Logs/Protocols/Dumps
Log file DIRWORD/RPRT - Turn logging on and off
For test/debug purposes, the communication taking place between IBM i and PC can be logged to a DIRWORD/RPRT file. At this point, logging is enabled or disabled.
Valid values are:
" "
Logging is disabled"LL"
Logging is switched on
CHGDTAARA DTAARA(DIRWORD/DWDDTAARA (222 2)) VALUE('LL')
After turning logging off, you should make sure that the log file is cleared again by entering the following IBM i command:
CLRPFM DIRWORD/RPRT
IBM i - log file DIRWORD/RPRT
select SRCDTA from DIRWORD/RPRT
Troubleshooting on the Windows client
Determine version
Windows
Microsoft Office
directword version
Start → Programs → directword→ directword Administrator, About tab.
Configuration commands
Start/Stop commands
Logs/Protocols/Dumps
Turn logging on and off
Start→ Programs → directword → directword Administrator, Server Data tabs
Log files: %PROGRAMDATA%\Toolmaker\DirectWord\dirword.out
Also displayable via Start→ Programs → directword → directword Show log file
Log files: %USERPROFILE%\AppData\Roaming\Toolmaker\DirectMedia\directrun.out
Here we log what happens during the macro execution
If you get an error message when executing a directword command, you should briefly read through the following list. Find the chapter heading that best fits your error message or problem and read the tips and references to fix the error.
General errors
If a directword command (e.g. DWMRGDOC) was started, nothing happens at all (no error message, neither in the session nor on the client).
Check if the directword TCP server is started and the port number matches the one stored on the IBM i.
If a directword command (e.g. DWMRGDOC) was started, a document is opened, but no data is merged.
Check if the AddIn directword.dot was loaded in Word.
Make sure that the installation is licensed on the IBM i server.
Check whether the data transfer via the TCP server was error-free. Check the file under C:\Documents and Settings\AllUsers\Application Data\Toolmaker\directword\directword.out.
0459 - directword.out
For VISTA or WINDOWS7: ProgramData\Toolmaker\directword\directword.out
Make sure that the correct data file was passed when calling the DW function. For this purpose you can also view the file PKO...tmp (for exact name and path see entries in the directword.out file) for comparison with a text editor.
WINDOWS7
The firewall must be configured by the administrator DWServ.exe
Visual Basic errors
Visual Basic errors can be recognized by the dialog type and the associated error message. These errors are always caused by the functions executed in Microsoft Word (started from directword ).
Always abort the function with Exit and check the respective settings as described below. Always quit and start Word before the next attempt.
Runtime error 537: The specified macro cannot be executed.
Check the list of all automatically started style sheets in Word via the menu function Tools - Templates and Add-Ins. The directword.dot file must be entered in the list.
Runtime error 53: File POVBAEXT.DLL cannot be found.
This error normally only occurs in the server variant. In this case, the directword Visual Basic extension cannot be found. Check the following settings:
Start the system settings via the button Start- Settings - Control Panel - System
Activate the tab page Advanced - Environment variables and click in the selection list System variables on the variable Path.
Complete the value of the variable by extending the existing text with a semicolon and the installation path of directword. It is mandatory to boot the PC after changing the value. For example, if the remote Windows NT server (PC) is to be accessed through TRN18, the value at the end should be as follows:
C:\......;\TRN18\directword\program
Basic test programs
There are a number of test programs available in the DIRWORD library that can be used to check the basic operation of directword.
These programs are all called BEISP*. Their sources can be found in the source file DIRWORD/QCLPSRC.
Ensure that the "Advanced Protocol" is enabled
Start the directword administrator(Start → Programs → directword → directword Administrator) and make sure that the Extended Protocol is active in the "Server Data" tab:
Shuffle Word document locally and then edit it: BEISP0200
ADDLIBLE DIRWORD
CLRPFM RPRT
CALL BEISP0200
- The document should now appear on the PC and be merged, then remain open for editing
DSPPFM RPRT
Shuffle and print Word document on server: BEISP02110
Make sure that the name "DWBATCH" is connected to the server PC
- ADDLIBLE DIRWORD
- GO DIRWORD, selection 4
- Make sure that
- the queue "DWBATCH" is linked to the correct IP address/name of the server PC
- the program DWServe.exe is running on the server PC and is configured to the specified port
- on the server PC the service "DirWordService" is not active is
Port 50004 is configured on PC, as on IBM i:
DWServ.exe is running on the server PC:
The service "DirWordService" is not active:
Call the test program BEISP0210
ADDLIBLE DIRWORD
CLRPFM RPRT
CALL BEISP0210
DSPPFM RPRT
Hotline cases
DWMRGDOC (etc.) - call does not arrive at the PC or server (2000040)
- There is no indication of any activity by the DWMRGDOC (or other DW commands) in the log of the PC or server.
- In the file DIRWORD/RPRT (siehe: Protokoll-Datei DIRWORD/RPRT - Protokollierung ein- und ausschalten) you will find the line:
0000000000ERROR : getservbyname
Solution:
The service table entry for port 50004 was missing:
Check with WRKSRVTBLE and scroll until you find it:
If not present, add:
ADDSRVTBLE SERVICE(DWRDSRV) PORT(50004) PROTOCOL(TCP) TEXT('directword')
Error "DIRWORDLOGICLib.control" could not be created
Check if the Microsoft Visual C++ 2010 Redistributable Package (x86)(vcredist_x86.exe) is installed (see Installationsvoraussetzungen auf dem Windows Client)
If not:
- Reinstall the package
- Re-register the dirwordlogic.dll, see Fehler "Automatisierungsfehler - Bibliothek nicht registriert"
Error "Automation error - library not registered" (dirwordlogic.dll not yet registered) (210000010)
Error display:
Solution:
Check if the Microsoft Visual C++ 2010 Redistributable Package (x86)(vcredist_x86.exe) is installed (see Installationsvoraussetzungen auf dem Windows Client).
If they are installed, then the DLL "dirwordlogic.dll" must be re-registered.
To do this, open an administrative CMD box and enter the following command:
regsvr32.exe "C:\Program Files (x86)\Toolmaker\Directword\Program\dirwordlogic.dll".
After that you can use the test programs to check if the installation is correct Grundlegende Test-Programme.