Hi Ken,
Ken Heard wrote (10-02-14 10:37)
I cannot assign a template to a document. Whenever I try, the message
which forms the title of this post appears.
This sounds as if you do something with Basic?
If so, in 4.0 there has been a change in the API.
See the release notes.
https://wiki.documentfoundation.org/ReleaseNotes/4.0
And a little example below that may be helpful:
Regards,
Cor
If HasUnoInterfaces(ThisComponent,
"com.sun.star.document.XDocumentInfoSupplier") Then
' 3.x
oDocInfo = ThisComponent.getDocumentInfo()
oDocSetInfo = oDocInfo.getPropertySetInfo
Else
oDocSetInfo =
ThisComponent.getDocumentProperties.getUserDefinedProperties.getPropertySetInfo
oDocInfo = ThisComponent.getDocumentProperties.getUserDefinedProperties
End If
If oDocSetInfo.hasPropertyByName(sName) Then
ReadMyDocProp = oDocInfo.getPropertyValue(sName)
End If
--
Cor Nouws
GPD key ID: 0xB13480A6 - 591A 30A7 36A0 CE3C 3D28 A038 E49D 7365 B134 80A6
- vrijwilliger http://nl.libreoffice.org
- volunteer http://www.libreoffice.org
- The Document Foundation Membership Committee Member
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.