UML Help for Visio 2003

R

Rasheed

We are using the Vision 2003 pro UML modeling capabilities and created Class
diagrams with documentation to each one.

We would like to print the “Documentation†property of the classes along
with the diagram, but cannot figure out how to do that. We’ve exhausted our
options on Visio Help, Microsoft online support, and web searches to solve
the problem.

Appreciate your help to resolve this problem!

Thanks,
Carol/Abdul
 
J

JuneTheSecond

My ã„dea is to copy all text from the documentation window and paste them on
the visio drawing. Manually it is possible. But I dont know how to program,
because selectall and copy method seems not supported for documentation
window.
So, I tryed to use windows api function, but something wrong.

Option Explicit

Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" _
(ByVal hWnd As Long, ByVal MSG As Long, _
ByVal wParam As Long, ByVal lParam As Long) As Long
Private Const EM_SETSEL = &HB1
Private Const WM_COPY = &H301

Sub test1()
Dim win As Visio.Window
Dim hdl As Long
For Each win In ActiveWindow.Windows
' Debug.Print win.WindowHandle32, win.Caption
If win.Caption = "Documentation" Then
hdl = win.WindowHandle32
SendMessage hdl, EM_SETSEL, 0, -1
SendMessage hdl, WM_COPY, 0, 0
Exit For
End If
Next

ActivePage.Paste
End Sub
 
R

Rasheed

Thanks for your response. We do not have any programmatic requirement at this
point. We just need to print the documentation out of Vision model that we
created. We do not see any option in Vision 2003 print the documentation.


Abdul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top