I need the DocumentProperty PrintDate, which I transfer to document management software. Within OpenOffice.org I used following Basic code:
dim oPrintDate As Object
if hasUnoInterfaces(oOfficeDatei,"com.sun.star.document.XDocumentPropertiesSupplier") then
oPrintDate = oOfficeDatei.DocumentProperties.PrintDate
oPrintDate = oOfficeDatei.getDocumentInfo().PrintDate ' DEPRACTED
Now neither this macro is working nor is the PrintDate visible in the LibreOffice dialog (Datei-Eigenschaften / File-Properties).
At least this happens with Text-Dokuments in the german localisation.
At least print date in document properties dialog is correct with "LibreOffice 3.3.0 RC1 - WIN XP German UI [OOO330m17 (build 184.108.40.206".
Macro does not run in OOo3.1.1 and not in LibO, both with message "Objektvariable nicht belegt".
I believe here we should concentrate on problem "Print date not visible in Document Proberties dialog", for Macro problems please file a new Bug if necessary.
May I ask you to read <http://wiki.documentfoundation.org/BugReport>?
- Contribute a very simple document with information
when you did the last printout from it
- for a new Bug report to be filed after we have checked
Document Properties problem:
-- Contribute more detailed information, "Macro is not working is very vague"
-- Attach a sample document with a macro demonstrating you problem
(for example something like "Print oPrintDate")?
Closing Bug due to reporter's inactivity as WFM.
I will finally close the Bug after 10 days if we will not have got required additional information.
Please feel free to reopen this Bug if you find out that the problem still exists in the latest release of LibO and if you can provide requested additional information.