Haydn,

you will need to use a mixture of Rose Scripting
(to get the filename) and also of the Word API
(to insert the document).

The easiest way to find out is the following:
(1) Rose Scripting
Open the scrptref.hlp file (in the Rose\Help directory)
and search the index for 'ExternalDocuments Property (RoseItem)'
>From there you should get all infos about how to get
the pathname of the external document.

(2) Word API
Start word with a new document,
Use Menu Tools/Macros/Record New Macro
Insert the file via menu Insert/File
Stop the macro recording
Start the VB Editor via menu Tools/Macros/VB Editor (Alt-F11)
You will find a new macro routine that shows how you can
add a document into the current word document via Word API.

Best regards & I hope it helps,
Volker

-----Ursprungliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 23. August 2001 12:52
An: [EMAIL PROTECTED]
Betreff: (ROSE) Document Generation



Hi,

I am using the good old report generation script to produce all the
documentation for my models.  I have a problem in that I have Word and RTF
files associated with some of the objects within the model (in particular
use cases) and these do not appear in the generated report.  Obviously I
need to modify the report generation script, but I don't know how.
Basically I need:

For each use case
     if file attached to use case
          insert contents of file into generated Word document
     end if
end for

It is the contents I want inserted, not just a link, reference or anything
like that to the document.

TIA,

Haydn


--
Haydn Robinson

Software Engineer
Sophos Anti-Virus
http://www.sophos.com
email      : [EMAIL PROTECTED]
UK Support : +44 1235 559933
Direct Line: +44 1235 544090

************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages: http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

Reply via email to