On 17/07/2010 08:49, xiexiaoxin wrote: > Hi, > > > > How to insert the Comments as the description of document by OpenOfice.org > API? > > what my code is like below . but it only can insert the "DocumentTitle" to > documents, but can't insert the "Comment" and “Author” , I don't know why.
you can set all of these via the DocumentProperties service that is available from the Model of the document: http://api.openoffice.org/docs/common/ref/com/sun/star/document/XDocumentProperties.html http://api.openoffice.org/docs/common/ref/com/sun/star/document/XDocumentPropertiesSupplier.html XDocumentPropertiesSupplier is implemented by the Model of Writer, Calc, Draw and Impress documents. regards, michael -- "We've long needed a filesystem named after a vegetable." -- Andrew Morton --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
