Hi :)
Do you have Auto-save on? That seems to create a problem with images sometimes, intermittently in
the way you describe, although it's quite rare so there are probably other factors involved too.
Regards from
Tom :)
--- On Mon, 26/3/12, John Valance <jvalance@sprynet.com> wrote:
From: John Valance <jvalance@sprynet.com>
Subject: [libreoffice-users] LibreOffice Writer is erasing JOOScripts on save
To: users@global.libreoffice.org
Date: Monday, 26 March, 2012, 23:31
I am using LibreOffice Writer to format templates for use with JODReports.
These templates are used to generate work order forms for a Natural Gas
Utility, merging database content from a DB2 database. This is a great, low
cost solution for report generation. However, I'm am having a major problem
with what appears to be a bug in Writer, which is causing all of my embedded
scripts to be erased when I save my templates. This is an intermittent
problem - it doesn't happen on every save. But when it does, I lose all my
embedded fields (more than two dozen of them!), and I have to revisit each
field and re-enter the scripting code which indicates the field name to
merge from the data source. This is extremely frustrating and costly in
terms of redoing work and not being able to change formatting in the
templates. If we don't find a solution we will have to abandon LibreOffice
and hope that OpenOffice or MS Word are more stable solutions.
The method for inserting a merge field is: Insert / Fields / Other. (or
Ctrl+F2), select Functions tab, then click Input Field, then click OK. For
"Reference", enter 'JOOScript', then click Insert. A dialog box appears,
where you enter the FreeMarker expression that refers to the data field to
merge, in a format like: ${field-name}. This is described here:
http://jodreports.sourceforge.net/?q=node/24
This will insert into the content.xml (within the zipped .odt file) a tag
like this:
<text:text-input
text:description="jooscript">${WO.WO_ENTRY_DATE}</text:text-input>
The problem I'm having is, when I save my odt file, Writer is erasing all of
the FreeMarker expressions which are the content of these text-input tags.
So what you would see in content.xml after this happens, is text-input tags
with no content, like this:
<text:text-input text:description="jooscript"></text:text-input>
Anyone else have a similar problem, or know of a solution? Any help is much
appreciated.
Many thanks,
John Valance
JValance Consulting
802-355-4024
--
For unsubscribe instructions e-mail to: users+help@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
--
For unsubscribe instructions e-mail to: users+help@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.