[libreoffice-users] Re: Wanted: Macro for removing Page Breaks in MailMerge docs

2012-05-01 Thread Andreas Säger

Am 01.05.2012 22:25, Nino Novak wrote:

Hi,

when producing MailMerge text documents, semi-automatic Page Breaks are
inserted which can only be removed manually one by one, but not all together
by e.g. selecting the whole document (Ctrl+A) and removing Page Breaks in the
Format Paragraph dialog.

XML shows that paragraphs with page breaks are different from paragraphs
without page breaks, they bear the name P4:


Drag your table or query from the data source window into the document. 
Choose to import text fields. There won't be any page breaks.




--
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] Re: Wanted: Macro for removing Page Breaks in MailMerge docs

2012-05-01 Thread Nino Novak
On Tuesday 01 May 2012, 22:56:15 Andreas Säger wrote:

 Am 01.05.2012 22:25, Nino Novak wrote:
  Hi,
  
  when producing MailMerge text documents, semi-automatic Page Breaks are
  inserted which can only be removed manually one by one, but not all
  together by e.g. selecting the whole document (Ctrl+A) and removing
  Page Breaks in the Format Paragraph dialog.
  
  XML shows that paragraphs with page breaks are different from paragraphs
 
  without page breaks, they bear the name P4:
 Drag your table or query from the data source window into the document.
 Choose to import text fields. There won't be any page breaks.

I do not see how to achieve the desired result by mere dragging. 

E.g. with the included database Biblio, I can create the following Template:

==
Bibliography.biblio.Title
   by Bibliography.biblio.Author
   Publisher, Bibliography.biblio.Year
   ISBN: Bibliography.biblio.ISBN
==Next record:Bibliography.biblio


From this template, a list is created by copying several instances of the same 
template until the end of the page, then mailmerging, i.e. printing the wanted 
records in a target document. At least that's how I do it. 

Nino




-- 
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] Re: Wanted: Macro for removing Page Breaks in MailMerge docs

2012-05-01 Thread Nino Novak
Am Dienstag, 1. Mai 2012, 23:44:21 schrieb Andreas Säger:
 Am 01.05.2012 23:19, Nino Novak wrote:
  I do not see how to achieve the desired result by mere dragging.
 
  E.g. with the included database Biblio, I can create the following 
Template:
 Well, you drag the desired row set into the new document.

? 

As said, I want a formatted output, and this cannot be achieved by mere 
dragging as there is text in between and different font styles are used.

 http://extensions.services.openoffice.org/project/AltSearch can search
 page breaks.

Just tried. It says, 29 page breaks replaced but they are still there, and 
you can rerun the search with the same result over and over. 

Any other ideas?

Nino

-- 
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] Re: Wanted: Macro for removing Page Breaks in MailMerge docs

2012-05-01 Thread drew jensen
On Wed, 2012-05-02 at 00:01 +0200, Nino Novak wrote:
 Am Dienstag, 1. Mai 2012, 23:44:21 schrieb Andreas Säger:
  Am 01.05.2012 23:19, Nino Novak wrote:
   I do not see how to achieve the desired result by mere dragging.
  
   E.g. with the included database Biblio, I can create the following 
 Template:
  Well, you drag the desired row set into the new document.
 
 ? 
 
 As said, I want a formatted output, and this cannot be achieved by mere 
 dragging as there is text in between and different font styles are used.
 
  http://extensions.services.openoffice.org/project/AltSearch can search
  page breaks.
 
 Just tried. It says, 29 page breaks replaced but they are still there, and 
 you can rerun the search with the same result over and over. 
 
 Any other ideas?
 
Hi Nino

I haven't tried this, but from reading the earlier email - the page
break is injected with the use of a style, yes? Can't you just edit the
style P4 I think it was, so it doesn't create a page break?

Like I said, I didn't try, but that is what I would do first.

//drew



-- 
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] Re: Wanted: Macro for removing Page Breaks in MailMerge docs

2012-05-01 Thread Nino Novak
Hi Drew,

On Tuesday 01 May 2012, 18:22:04 drew jensen wrote:

 Hi Nino
 
 I haven't tried this, but from reading the earlier email - the page
 break is injected with the use of a style, yes? Can't you just edit the
 style P4 I think it was, so it doesn't create a page break?

Good thought. 

However, I don't know how to alter this special style from the UI. It does not 
show up in the styles dialog. Seems to be some special style type. The 
mentioned style info is kept in the office:automatic-styles section in the 
content.xml, whatever this means.

Regards,
Nino



-- 
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] Re: Wanted: Macro for removing Page Breaks in MailMerge docs

2012-05-01 Thread Dan Lewis
On Wed, 2012-05-02 at 00:36 +0200, Nino Novak wrote:
 Hi Drew,
 
 On Tuesday 01 May 2012, 18:22:04 drew jensen wrote:
 
  Hi Nino
  
  I haven't tried this, but from reading the earlier email - the page
  break is injected with the use of a style, yes? Can't you just edit the
  style P4 I think it was, so it doesn't create a page break?
 
 Good thought. 
 
 However, I don't know how to alter this special style from the UI. It does 
 not 
 show up in the styles dialog. Seems to be some special style type. The 
 mentioned style info is kept in the office:automatic-styles section in the 
 content.xml, whatever this means.
 
 Regards,
 Nino

LO documents are zipped files. Change the extension of the file
from .odt to .zip. Then unzip it. The zipped file contains some files
and some folders; one of these files is content.xml. It can be edited
with an text editor. Search for office:automatic-styles in the text
editor. Without having an odt file with a page break in it, I can not
make any further comments.

--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] Re: Wanted: Macro for removing Page Breaks in MailMerge docs

2012-05-01 Thread Nino Novak
Am Dienstag, 1. Mai 2012, 18:54:05 schrieb Dan Lewis:
 On Wed, 2012-05-02 at 00:36 +0200, Nino Novak wrote:
  Hi Drew,
  
  On Tuesday 01 May 2012, 18:22:04 drew jensen wrote:
   Hi Nino
   
   I haven't tried this, but from reading the earlier email - the page
   break is injected with the use of a style, yes? Can't you just edit
   the
   style P4 I think it was, so it doesn't create a page break?
  
  Good thought.
  
  However, I don't know how to alter this special style from the UI. It
  does not show up in the styles dialog. Seems to be some special style
  type. The mentioned style info is kept in the office:automatic-styles
  section in the content.xml, whatever this means.
  
  Regards,
  Nino
 
 LO documents are zipped files. Change the extension of the file
 from .odt to .zip. Then unzip it. The zipped file contains some files
 and some folders; one of these files is content.xml. It can be edited
 with an text editor. Search for office:automatic-styles in the text
 editor. Without having an odt file with a page break in it, I can not
 make any further comments.

Dan,

that's exactly what I did (hence the detailed info in my first mail). But no 
chance to alter the page breaks from the UI. 

Thanks to all who replied!!! 

Good night,
Nino

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