[libreoffice-users] Inconsintent behaviour of libreoffice with master document and python

2011-08-09 Thread Alberto
Hi all,

I see a very strange behaviour behaviour in libreoffice when creating
the pdf from a master document.

Using this:
dispatcher.executeDispatch(frame, .uno:UpdateAll, , 0, ())

In some case I see all the various sub documents loaded and properly
put in the pdf, some other time instead this simply fails and I get
something like:
1
2
3

The fields of the document are actually updated properly (the script
updates some of them and launch a second time the update all).

What puzzles me is that sometimes it works and some others it doesn't.
Like it doesn't like something in one of the sub-documents.
In few cases deleting the master document helped. In some others it
failed anyway :/, and I need to rely on the document, I don't want to
have to delete it every couple of days.

One thing more, I work with libreoffice in headless mode.

Anybody had the same or a similar issue?


Thanks,

-- 
Alberto Ingenito

-- 
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] Inconsintent behaviour of libreoffice with master document and python

2011-08-09 Thread planas
Alberto,

On Tue, 2011-08-09 at 15:32 +0200, Alberto wrote: 

 Hi all,
 
 I see a very strange behaviour behaviour in libreoffice when creating
 the pdf from a master document.
 
 Using this:
 dispatcher.executeDispatch(frame, .uno:UpdateAll, , 0, ())
 
 In some case I see all the various sub documents loaded and properly
 put in the pdf, some other time instead this simply fails and I get
 something like:
 1
 2
 3
 
 The fields of the document are actually updated properly (the script
 updates some of them and launch a second time the update all).
 
 What puzzles me is that sometimes it works and some others it doesn't.
 Like it doesn't like something in one of the sub-documents.
 In few cases deleting the master document helped. In some others it
 failed anyway :/, and I need to rely on the document, I don't want to
 have to delete it every couple of days.
 
 One thing more, I work with libreoffice in headless mode.
 
 Anybody had the same or a similar issue?
 
 
 Thanks,
 
 -- 
 Alberto Ingenito
 

Can you use the export as PDF feature in LO?

-- 
Jay Lozier
jsloz...@gmail.com

-- 
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