Author: TJ Abrahamsen, teab@edenenterprise.net
Author notes: User guide is in attached zip file
Discussion: n/a
Platform: Windows XP, Word 2003, Business Object XI
Version: 0.1 (initial version)
Code: Code exists as Word VBA inside the Word template.
What this is:
This is a tool in the shape of a Word document template that helps you out when you want to document your universes. You select a .unv file and log on to Universe Designer. The result is a Word document with a title page, table of contents page, and page(s) with all the classes and objects from your universe file shown in the same outlined hierarchy as in the Universe Designer.
Attached ZIP file includes:
UniverseDocumentor.dot: The Word template to use from MS Word
Setup.doc: A short users guide
NOTE (disclaimer): I have had the template tested successfully on two different computers using Word 2003, Windows XP, and Business Objects XI. I can not guarantee that it works on other versions.
Also, the template was created to ease my own work day, and to save time. I make this available hoping that others will be able to save a lot of time using it too…
When I try to use this template, I choose my Universe and am prompted to login to Designer but then receive an error “Project -5: Invalid procedure call or argument”
You have to tinker with a bit for XI…I think the one of the procedures has changed its name or something like that or maybe it was that it now accepts a different set of parameters.
Hi I am unable to do it in 6.5. If i run the dot file i am getting the following error. “Compile error: can’t find project or library” help me out guys…
I am not able to use this in BO 5.1 I changed the object library to 5.1 in tools->reference in VB editor still getting a error at Sub DocumentUniverse()
Anyway is it possible to use this macro for BO 5.1?
There’s a problem with the line ‘Call AppActivate(CurrentApp)’ in the DocumentUniverse() sub. Basically, the workaround is to close ALL Word documents you have open, and run the Documentor as a template (as described in the Setup doc). Worked like a charm after that.
The workaround for the error: “Project -5: Invalid procedure call or argument”
that i found was just to ERASE the line "Call AppActivate(CurrentApp)’ on the visual basic code.
good luck!..
[i]
Sub DocumentUniverse()
Dim DesApp As Designer.Application
Dim Univ As Designer.Universe
Dim CurrentApp As String
On Error GoTo ErrorHandler
CurrentApp = Application.Caption
System.Cursor = wdCursorWait
Application.DisplayAlerts = False
'start Designer and log in
Set DesApp = New Designer.Application
DesApp.Window.State = dsMinimized
DesApp.Visible = True
Application.StatusBar = "Logging in..."
Call DesApp.LogonDialog
'open a universe
Application.StatusBar = "Opening universe..."
Set Univ = DesApp.Universes.Open(fldFileName.Value)
DesApp.Visible = False
'restore Excel as active application
Call AppActivate(CurrentApp) [b]<--- i deleted this line and recompile :)[/b]
Application.ScreenUpdating = True
Call ListClasses(Univ.Classes, 1, 0)
CleanUp:
On Error Resume Next
Application.StatusBar = False
System.Cursor = wdCursorNormal
Univ.Close
Set Univ = Nothing
DesApp.Quit
Set DesApp = Nothing
Exit Sub
I am getting an error like Compile error: can’t find project or library. I am unable to run this. I followed the steps eventhough I am not able to run this.
You need to have the Designer application installed and working on your computer. It’s used (referenced) by the code in order to open the universe and extract the information.
I know this is old, but has anyone had any luck in getting past the last error shown above? I just switched to Business Objects XI 3.1 and now the Word Template is not working. Any help would be appreciated.
Karla
Here is the error I’m now getting
Compile Error: Can’t find project or library
It is referencing the -
Sub ListClasses(Clss as Designer.Classes, RowNum as Long, ParentLevel as Long)
The error then gives me the following information:
Missing: BusinessObjects Designer 11.5 Object Library
I somehow got to the Library editor and it allowed me to pick both Business Objects Designer 12 Object Libraries
and then commented out the Excel reference as noted above and it appears to be working.