|
Siebel Reports Guide > Troubleshooting Siebel Reports >
Resolving Class Not Found Errors When Previewing Reports in Microsoft Word
Errors can occur when previewing reports with Microsoft Word that use preconfigured RTF (Rich Text Format) templates. To resolve these types of errors, you create a custom batch file to launch Microsoft Word and load the required template libraries before opening the RTF template. NOTE: In your batch file, replace the explicit drive and folder locations with those on your own computer based on where you installed the Siebel Web Client. It is not necessary to associate .doc extensions with this batch file.
To resolve class not found errors when previewing reports in Microsoft Word
- Navigate to
C:\Program Files.
- Create a MSWordForBIPub.bat file containing the following code to set the _JAVA_OPTIONS environment variable before launching Microsoft Word.
echo %1
set _JAVA_OPTIONS=-Xbootclasspath/a:
C:\81DQSSIA\client\classes\SiebelXMLP.jar;C:\81DQSSIA\client\ classes\siebel.jar;C:\81DQSSIA\client\classes\XSLFunctions.jar;C:\81DQSSIA\ client\classes\SiebelCustomXMLP.jar;C:\81DQSSIA\client\classes\SiebelCustomXMLP_SIA.jar
"C:\Program Files\microsoft office\Office\Winword.exe" %1
TIP: Create a shortcut to the MSWordForBIPub.bat batch file and move it to your desktop.
- If you want to make sure this batch file is always executed when opening a preconfigured report layout template, you associate the RTF files with the .bat file by doing the following:
- Navigate to the template files in your Siebel client environment. (For example,
C:\Siebel\client\XMLP\TEMPLATES)
- Sort the templates files by Type.
- Right-click on a RTF file (or select all) and Select Open With to choose an text editor.
- Click Browse to find the .bat file, and then open it.
- Check the Always use the selected program to open this kind of file checkbox, and then click OK.
This associates the selected RTF file or files with the batch file created in Step 2. The batch file sets an environment variable needed for publishing Oracle BI Publisher reports from within Microsoft Word.
NOTE: This workaround automatically associates the RTF file with the batch file. Now, when you double-click a RTF file, you see a command prompt window (running the batch file) automatically run at the same time. Alternatively, you can go to the desktop shortcut icon and run the shortcut to the .bat file to test the report preview.
Many standard RTF files in the Siebel client Templates directory (C:\siebel\client\XMLP\TEMPLATES) are set to read only. Before previewing reports from this directory, go to Properties for the applicable template and remove the Read-only attribute to avoid run-time errors.
|