Hi John
It seems that Keywords is stored as a string array, so if you want to
read it into a string you need to convert it into a string. One way to
do this is to use the Join-function. In your case exchange the line that
crashes with.
pDates = Join(oDoc.DocumentProperties.Keywords, ", ")
I'm not 100 % sure if comma is used as a separator in all languages, let
us know if the code above does not work for you.
Regards,
Niklas Johansson
john herron skrev den 2014-11-26 07:55:
For billing purposes I store parameters into the Description fields of
LO text document properties.
Have no problems retrieving data entered in the Title, Subject,
Description property fields by simply assigning the data to string
variables.
However, when I try to assign to a string variable the contents of the
Keywords property, I get the error message depicted in the following
code screenshot:
http://tinypic.com/m/imus2c/4
Can anyone help me figure out what the problem might be?
Thanks.
jdh
--
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.