Share

PaperClips

Tracker: Bugs

5 NoBreakPrint fails for objects that span more than one page - ID: 2014793
Last Update: Settings changed ( qualidafial )

Wrapping a print object (mainly GridPrint objects) into a NoBreakPrint
object preserves the whole wrapped object from been broken up on two
pages.

However, if such a wrapped print object in a NoBreakPrint spans more than
one printable page,
the whole wrapped object does not get printed at all.

I have a lot of objects wrapped within a NoBreakPrint.
Around 95% to 99% of all of those objects do not span
more than one single page. However, a few objects are
that large that they span more than one printing page
(sometimes even 3 or 4 pages). And those objects do
net get printed.

Hence, I had to inactivate the NoBreakPrint wrapping to avoid the failing
of the 1% to 5% of the wrapped
objects spanning more than 1 page.

Is there a possibility allowing the following algorithm:

1. Preserve wrapped objects from been broken up into
different pages if the wrapped object does not
span more than one printable page.
2. Allow the break up of the wrapped object if the
wrapped object spans more than one single printable
page.


Claude Struebi ( cstruebi ) - 2008-07-10 07:20

5

Closed

Wont Fix

Matthew Hall

PaperClips

1.0.4

Public


Comments ( 7 )

Date: 2008-10-09 17:14
Sender: qualidafialProject AdminAccepting Donations

Sourceforge has removed shell access to project administrators, and as a
result I am unable to perform essential administration tasks (including
bringing the web site back online). Therefore I have decided to migrate
the PaperClips project to Google Code Hosting:
http://code.google.com/p/swt-paperclips/

Accordingly I have closed this issue on sourceforge and copied the
conversation to a new issue at:
http://code.google.com/p/swt-paperclips/issues/detail?id=1


Date: 2008-07-23 12:29
Sender: cstruebi


Yes, i tried using GridPrint.setCellClippingEnabled(false). But it did not
solve the problem. Nor did the patch solve it. But in the meantime, I found
an alternative way
that fixed my problem while integrating some of the objects into the
GridPrint's header.


Date: 2008-07-22 21:53
Sender: qualidafialProject AdminAccepting Donations


Did the patch help?


Date: 2008-07-10 21:22
Sender: qualidafialProject AdminAccepting Donations


Sorry, Sourceforge added line breaks in the comments and it jacked up the
patch. Download the patch using the link at the bottom of the page.


Date: 2008-07-10 21:20
Sender: qualidafialProject AdminAccepting Donations


File Added: PaperClips_bug_2014793.patch


Date: 2008-07-10 21:19
Sender: qualidafialProject AdminAccepting Donations


If setCellClippingEnabled doesn't work all by itself, try it again after
applying the following patch to your local copy of PaperClips:

Index: C:/Documents and Settings/Matthew Hall/My
Documents/Workspaces/PaperClips/net.sf.paperclips/src/net/sf/paperclips/GridIterator.java
===================================================================
--- C:/Documents and Settings/Matthew Hall/My
Documents/Workspaces/PaperClips/net.sf.paperclips/src/net/sf/paperclips/GridIterator.java (revision
391)
+++ C:/Documents and Settings/Matthew Hall/My
Documents/Workspaces/PaperClips/net.sf.paperclips/src/net/sf/paperclips/GridIterator.java (working
copy)
@@ -3,7 +3,9 @@
* accompanying materials are made available under the terms of the
Eclipse Public License v1.0 which
* accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
*
- * Contributors: Woodcraft Mill & Cabinet Corporation - initial API and
implementation
+ * Contributors:
+ * Woodcraft Mill & Cabinet Corporation - initial API and
implementation
+ * Matthew Hall - bug 2014793

***********************************************************************************************************/
package net.sf.paperclips;

@@ -912,7 +914,7 @@
rowStarted );
boolean hasNext = hasNext( thisRow );

- if ( cellClippingEnabled && ( rowPiece == null || hasNext ) ) {
+ if ( ( cellClippingEnabled || entries.isEmpty() ) && ( rowPiece ==
null || hasNext ) ) {
thisRow = cloneRow( body[row] );
rowPiece = nextRow( thisRow, colSizes, height - y -
bodyBottomSpacingOpen, true );
hasNext = true;



Date: 2008-07-10 21:09
Sender: qualidafialProject AdminAccepting Donations


Have you tried using GridPrint.setCellClippingEnabled(false)?


Attached File ( 1 )

Filename Description Download
PaperClips_bug_2014793.patch Patch for GridPrint.setCellClippingEnabled(false) Download

Changes ( 5 )

Field Old Value Date By
status_id Open 2008-10-09 17:14 qualidafial
resolution_id None 2008-10-09 17:14 qualidafial
close_date - 2008-10-09 17:14 qualidafial
artifact_group_id 1.0.3 2008-09-10 04:07 qualidafial
File Added 284282: PaperClips_bug_2014793.patch 2008-07-10 21:20 qualidafial