Re: WebView pagination for printing

2010-07-23 Thread Michael Zornek
On 7/21/10 2:04 PM, "Flavio Donadio" wrote: >> - ensure pagination doesn't split table rows > > This is easy, but I am not sure if WebKit's implementation applies this > property to table-row elements: > > th, tr {page-break-inside: avoid;} WebKit does not support this CSS declaration. I belie

Re: WebView pagination for printing

2010-07-21 Thread Flavio Donadio
Matt and Gideon, Although my solution below is not Cocoa, WebView supports it. So, I can give further help off-list if the HTML/CSS subject is not adequate for this list. Gideon's requirements seem to be very simple and, although WebView's capabilities are not comparable to "real" printing, he

Re: WebView pagination for printing

2010-07-21 Thread Laurent Demaret
Kyle Sluder wrote: > If Apple were to provide a print-oriented table or report class, I > would expect and hope it was separate from NSTableView. NSTableView is > very much an onscreen control, and its design reflects such. There is the NSTextTable Class that inherits from NSTextBlock that goes i

Re: WebView pagination for printing

2010-07-20 Thread Kyle Sluder
On Tue, Jul 20, 2010 at 6:35 PM, Gideon King wrote: > I absolutely agree that it's possible to moderately easily set up a view > hierarchy that will allow for automatic pagination etc and work with object > oriented methodologies to accomplish the goal, but there is a certain amount > of grunt

Re: WebView pagination for printing

2010-07-20 Thread Gideon King
I absolutely agree that it's possible to moderately easily set up a view hierarchy that will allow for automatic pagination etc and work with object oriented methodologies to accomplish the goal, but there is a certain amount of grunt work in doing this, and the whole point of having frameworks

Re: WebView pagination for printing

2010-07-20 Thread Matt Neuburg
On or about 7/20/10 4:19 PM, thus spake "Gideon King" : > It's a real shame that printing > support isn't there nicely for table views... I don't really understand this kind of complaint. If you organize a hierarchy of intelligent self-printing views, printing is a snap, as I've said before: htt

Re: WebView pagination for printing

2010-07-20 Thread Gideon King
OK, thanks Matt - I'll roll my own then. It's a real shame that printing support isn't there nicely for table views... Regards Gideon On 21/07/2010, at 5:46 AM, Matt Neuburg wrote: > > Then I'd suggest that you just write a view of your own that draws the way > you want, and print that view.

Re: WebView pagination for printing

2010-07-20 Thread Matt Neuburg
On Wed, 21 Jul 2010 02:19:44 +1000, Gideon King said: >Briefly, my needs are as follows: >- print headers and footers on the page >- print the content at the top of the content area even if it's shorter than the page >- ensure pagination doesn't split table rows > >I am quite familiar with the kno

WebView pagination for printing

2010-07-20 Thread Gideon King
Hi, my original quest was to print a table view with pagination and headers, but when I initially tried it, I didn't see how I could include the column headings in it, and found on the lists the suggestion to use a WebView and put the data in there to print it. When I tried it, I see that it ju