Hi,
I don't use the OOo 3.0 though, but it should work.
You can try to set the document name explicitly by setting the MediaDescriptor 
property "DocumentTitle" before loading document or later using the XModel 
method attachResource(URL, properties) where properties is an array of 
properties of MediaDescriptor.
Ivan

> -----Original Message-----
> From: Stefan Weigel [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 22, 2008 10:11 PM
> To: [email protected]
> Subject: Re: [api-dev] Getting the document name displayed in
> the title bar of the window
>
> Hi,
>
> a year ago Matthias B. helped me out, by pointing me to
>
> ThisComponent.CurrentController.Frame.Title
>
> Unfortunately things have changed in OOo 3.0, so that the
> title of the frame is no longer equal to the name of an
> unsaved document, that OOo would pass to the printer driver
> as the name of the printing job.
>
> See also http://www.openoffice.org/issues/show_bug.cgi?id=95320
>
> Can anyone help me out again? I need to retrieve the name OOo
> 3.0 would deliver to the printer driver as the name of the
> document to print, using OOo Basic.
>
> Thanks for any help!
>
> Stefan
>
>
> Stefan Weigel wrote (a year ago):
> > Hi,
> >
> > I wonder how I can get the "name" of my document with OOo Basic.
> >
> > The "name" is what one can see in the title bar of the application
> > window. It also is the string OOo would deliver to the
> printer driver
> > as the name of the document to print. This "name" does not
> equal the
> > file name, and it does not equal any of the document
> properties found
> > in the
> > File|Properties... dialoque.
> >
> > If the document has already been saved the "name" equals
> the file name
> > without the extension. For example, if the document has
> been saved as
> > test123.odt, the "name" is: test123
> >
> > In this case I can extract the "name" from the URL property of
> > thisComponent. Okay so far.
> >
> > But if the document has not been saved yet, it has a "name" like
> > Untitled1, Untitled2 or Untitled3. How can I get this "name"?
> >
> > TIA for any help!
> >
> > Stefan
>
>
> --
> www.datenpilot.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to