Hi Drew,

> oDocument = openDBDocument( ...... )
> if isNull( oDocument.Parent ) then
>   // this is a Report Builder generated file
> else
>   // this is a Report Wizard generated file
> end if
> 
> Questions:
> 
> Is this as good a way as any - any problems with this, or a better way?

Hmm ... not sure this is a good idea. It spoiles the fact that SRB's
reports are opened as "sibling" of the database document (window),
instead of being a child of it. I'm not completely sure this is a good
idea, and will be that way forever.

There would be a way of examining the content of the report (the
existence/content of logical forms, more precise), but that might also
be spoiling implementation details.

Let me ask what you need this differentiation for, perhaps this gives
better clues about how to do it.

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         [EMAIL PROTECTED] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to