Re: is printing tabular data really that annoying?
Re: is printing tabular data really that annoying?
- Subject: Re: is printing tabular data really that annoying?
- From: Conor <email@hidden>
- Date: Thu, 18 Jan 2007 22:47:22 +0100
Scott is correct that one of the best choices is using the WebKit. I use
both in my application and the WebKit route has more flexibility and can be
implemented quicker. Download some of my application and peer into
Contents/Resources/Templates for some sample HTML files. iSale also uses the
same system.
In comes down to some string manipulation and repeating an HTML section for
each entry. Replacing the tags with the values from the objects in the list
for each iteration of the loop. Also every certain number of entries insert
some header HTML code if wished as well as a "page-break-before:always" CSS
statement. WebKit does not support the avoid page break attribute so you
have to take care of pagination with always to avoid cutting a row in half
when printing.
Brent Simmons did a very casual overview on how to capture a WebKit image
that could help: http://inessential.com/downloads/HybridApps.vpdoc.zip.
Conor
http://www.bruji.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden