It's rather easy to retrieve document properties stored in File -> Properties -> General. For example, using the following code, you can retrieve the current document's title:
Code: Select all
ThisDoc=ThisComponent
DocName=ThisDoc.DocumentInfo.Title
Thank you!
Kind regards,
Dmitri