Beruflich Dokumente
Kultur Dokumente
DOORS DXL -
Adventures in Microsoft OLE Automation
Michael Sutherland
Galactic Solutions Group LLC
michael@galactic-solutions.com
Excel Exporter
2 © Telelogic AB
DOORS DXL (DOORS eXtension Language)
3 © Telelogic AB
DOORS DXL Reference
4 © Telelogic AB
Microsoft OLE Automation
5 © Telelogic AB
Microsoft Visual Basic Reference
6 © Telelogic AB
OLE Application Object References
7 © Telelogic AB
Microsoft Excel Object Hierarchy
Workbook(s) Selection
Worksheet(s) Window(s)
Font
8 © Telelogic AB
Object Properties
9 © Telelogic AB
Obtaining Object Reference
• One important
Application
Property of an Object
is the Objects it
contains Workbook(s)
10 © Telelogic AB
Object Methods
• Example:
oleMethod( objWorkbooks, "Add" )
11 © Telelogic AB
OleAutoArgs
12 © Telelogic AB
Object Methods with Arguments
13 © Telelogic AB
DOORS Provided OLE Library
14 © Telelogic AB
Experienced VBA Programmers
15 © Telelogic AB
Running VBA Macros from DOORS
• If this method is used, the Excel Workbook containing the Macro(s) must
be distributed to all DOORS users and placed in the proper directory
DOORS DXL - Adventures in Microsoft OLE Automation
© 2002 Galactic Solutions Group LLC - Michael Sutherland - michael@galactic-solutions.com
16 © Telelogic AB
Enhanced Export to Excel
Copying OLE Objects to Excel
18 © Telelogic AB
OLE Objects on Sheet
19 © Telelogic AB
DOORS and Excel Columns
20 © Telelogic AB
Enhanced Export to Excel - Sheet
21 © Telelogic AB
Enhanced Export to Excel - Header
22 © Telelogic AB
Enhanced Export to Excel - Columns
23 © Telelogic AB
Enhanced Export to Excel - Rows
24 © Telelogic AB
Enhanced Export to Excel - OLE
25 © Telelogic AB
Enhanced Export to Excel - Template
26 © Telelogic AB
Enhanced Export to Excel - Page Setup
27 © Telelogic AB
DOORS Module to Export
28 © Telelogic AB
DOORS Module Exported to Excel
Attribute Color
29 © Telelogic AB
Issue - DOORS Tables
• Proposed solution:
– Export as Word Table, embed into Excel as OLE Object
30 © Telelogic AB
References
31 © Telelogic AB
Obtaining a copy of the Software
Contact: michael@galactic-solutions.com
or download from
http://galactic-solutions.com
32 © Telelogic AB