APAR status
Closed as program error.
Error description
Attempts to create a .doc file using the Java API method generateReport produces a HTML file instead when using IBM Rational Rhapsody. Abstract: When you use the Rational Rhapsody Java API generateReport method with .doc as the selected output, a .doc file is generated, but when you open it in a text editor you can see that it is actually a Hyper Text Markup Language (HTML) file. Error Description: Steps to reproduce: 1. Create a Java file in Eclipse with the following code in the main method: IRPApplication app = RhapsodyAppServer.getActiveRhapsodyApplication(); app.activeProject().generateReport('', 'C:\\Rhapsody8.0.4\\reporterplus\\Templates\\Class.tpl', 'doc', 'C:\\test.doc', 0, 1); 2. Open a new project in Rhapsody and then run the above code. Expected Result: The test.doc file created should be Microsoft Word and OpenDocument compliant. Acutal Result: The generated test.doc file is actually a HTML file with the .doc extension. You can see this by opening it inside a text editor, e.g. notepad. WORKAROUND: You can use the CLI for generating reports instead as shown here: http://pic.dhe.ibm.com/infocenter/rhaphlp/v8/index.jsp?topic=%2F com.ibm.rhp.reporting.doc%2Ftopics%2Frhp_r_rp_commandline_operat ion.html
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * **************************************************************** * PROBLEM DESCRIPTION: * **************************************************************** * RECOMMENDATION: * **************************************************************** IBM Rational Rhapsody Java API method generateReport produces HTML file instead of DOC
Problem conclusion
Fixed in 8.1
Temporary fix
Comments
APAR Information
APAR number
PI05148
Reported component name
TLOGIC RHAPSODY
Reported component ID
5724V74RP
Reported release
800
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2013-10-30
Closed date
2014-06-02
Last modified date
2014-06-02
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
TLOGIC RHAPSODY
Fixed component ID
5724V74RP
Applicable component levels
R800 PSN
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7P9W","label":"Rational Rhapsody"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Document Information
Modified date:
02 June 2014