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]

Reply via email to