Re: [libreoffice-users] LibreOffice Writer is erasing JOOScripts on save

2012-03-27 Thread Tom Davies
Hi :)
Hmm, i think the 3.4.x branch is better at the moment.  The 3.4.3 is ok but the 
3.4.6 is better.  We are still having quite a few people write in to grumble 
about regressions or new problems with the 3.5.x branch.  

For developing it might be better to push people into using the 3.5.x branch so 
that we get more bug-reports that can then be fixed but i think it's better if 
sysadmins do the testing before rolling it out to normal users.  Hopefully 
sysadmins have 1 or 2 people that are willing to test-drive newer releases 
alongside the more stable version they have in case things go wrong.  

I wonder if these guides might help witht he main questions here
https://wiki.documentfoundation.org/Documentation/Publications#Corporate_Users
In the Writer Guide,  Chapter 10 is about Templates
https://wiki.documentfoundation.org/Documentation/Publications#LibreOffice_Writer_Guide
but it might be Chapter 15 that gives the result.  

Also i was wondering if this question might really be about using LO in 
headless mode, ie from the command-line or through a script?  

Regards from
Tom :)


--- On Tue, 27/3/12, Cor Nouws oo...@nouenoff.nl wrote:

From: Cor Nouws oo...@nouenoff.nl
Subject: Re: [libreoffice-users] LibreOffice Writer is erasing JOOScripts on 
save
To: users@global.libreoffice.org
Cc: John Valance jvala...@sprynet.com
Date: Tuesday, 27 March, 2012, 9:14

Hi John,

John Valance wrote (27-03-12 02:37)

 A: We are currently using
 LibreOffice 3.4.3 - OOO340m1 (Build:302). I am trying to get my
 sysadmin to update to a more current version. I will shoot for 3.4.6

3.5.2 is to be released soon. And the 3.5 version line is having quite some 
advantages over the 3.4.
So IMHO best would be to do a test in your specific environment.

Regards,

--  - Cor
 - http://nl.libreoffice.org


-- For unsubscribe instructions e-mail to: users+h...@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+h...@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



Re: [libreoffice-users] LibreOffice Writer is erasing JOOScripts on save

2012-03-27 Thread Cor Nouws

Tom Davies wrote (27-03-12 10:47)

Hi :) Hmm, i think the 3.4.x branch is better at the moment.  The
3.4.3 is ok but the 3.4.6 is better.  We are still having quite a few
people write in to grumble about regressions or new problems with the
3.5.x branch.


So then compare the current situation with the time the 3.4.0 or 3.4.1 
was released. And also consider that people in the 3.4 branch have 
accepted certain regressions or found a work around. And of course the 
bugs that are in 3.4.x and not in 3.5...
I did and do not write that 3.5.2 is always better. But IMO there's a 
good change. Business should just always check before deploying (or - 
depending on the situation even better - have professional support).


Cheers,

--
 - Cor
 - http://nl.libreoffice.org


--
For unsubscribe instructions e-mail to: users+h...@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



[libreoffice-users] LibreOffice Writer is erasing JOOScripts on save

2012-03-26 Thread John Valance
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+h...@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



Re: [libreoffice-users] LibreOffice Writer is erasing JOOScripts on save

2012-03-26 Thread Tom Davies
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 jvala...@sprynet.com wrote:

From: John Valance jvala...@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+h...@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+h...@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



Re: [libreoffice-users] LibreOffice Writer is erasing JOOScripts on save

2012-03-26 Thread Dan Lewis
On Mon, 2012-03-26 at 18:31 -0400, John Valance wrote:
 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
 

Three questions to begin with:
1) What version of LO are you using? (3.4.6, perhaps 3.51) 3.4.6 is a
better version for business purposes.
2) What operating system are you using? 
3) Have you tried to save a document as a template? Templates as I
understand them are not .odt files. They are .ott files when created by
Writer as text templates.

--Dan



-- 
For unsubscribe instructions e-mail to: users+h...@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


RE: [libreoffice-users] LibreOffice Writer is erasing JOOScripts on save

2012-03-26 Thread John Valance
Tom, 
I could not find an AutoSave option. I see Save Auto Recovery information
every X minutes, which was checked on. I turned this off. No difference. 

Right now I cannot save at all without losing all my FreeMarker content in
JOO Scripts, even if I save without making any changes. I went a full day
last week with no problems and actually got some work done, successfully
saving dozens of times. I have no idea what triggered this problem again. 

Thanks
John


-Original Message-
From: Tom Davies [mailto:tomdavie...@yahoo.co.uk] 
Sent: Monday, March 26, 2012 7:10 PM
To: users@global.libreoffice.org
Subject: Re: [libreoffice-users] LibreOffice Writer is erasing JOOScripts on
save

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 jvala...@sprynet.com wrote:

From: John Valance jvala...@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. 
Ctrl+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+h...@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+h...@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+h...@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



RE: [libreoffice-users] LibreOffice Writer is erasing JOOScripts on save

2012-03-26 Thread John Valance
Dan,
Thanks for your reply. My answers to your questions are below.

1) What version of LO are you using? (3.4.6, perhaps 3.51) 3.4.6 is a better 
version for business purposes.
A: We are currently using LibreOffice 3.4.3 - OOO340m1 (Build:302). I am trying 
to get my sysadmin to update to a more current version. I will shoot for 3.4.6

2) What operating system are you using? 
A: Running on Windows Server Enterprise, SP2.

3) Have you tried to save a document as a template? Templates as I understand 
them are not .odt files. They are .ott files when created by Writer as text 
templates.
A: My understanding is document templates have nothing to do with JODReport 
templates. Correct me if I'm wrong, but I believe .ott files would be used as a 
base when creating a new .odt file. I used the term template in a more generic 
sense, in that the layout of the page provided by Writer, together with the 
FreeMarker codes, form a template for generating a final PDF file by 
JODReports. JODReports uses a specific naming convention for searching for the 
right file to use. You specify a prefix, like wo_print, and a suffix 
indicating the output format, such as wo_print.pdf, and JOD will search for 
wo_print -template.odt as the template, and it will generate a PDF named 
wo_print.pdf.

Thanks for your thoughts. Any others are much appreciated.

John


-Original Message-
From: Dan Lewis [mailto:elderdanle...@gmail.com] 
Sent: Monday, March 26, 2012 8:03 PM
To: users@global.libreoffice.org
Subject: Re: [libreoffice-users] LibreOffice Writer is erasing JOOScripts on 
save

On Mon, 2012-03-26 at 18:31 -0400, John Valance wrote:
 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. 
 Ctrl+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
 

Three questions to begin with:
1) What version of LO are you using? (3.4.6, perhaps 3.51) 3.4.6 is a better 
version for business purposes.
2) What operating system are you using? 
3) Have you tried to save a document as a template? Templates as I understand 
them are not .odt files. They are .ott files when created by Writer as text 
templates.

--Dan



--
For unsubscribe instructions e-mail to: users+h...@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+h...@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