On Sat, Oct 18, 2008 at 7:23 PM, Devraj Mukherjee <[EMAIL PROTECTED]> wrote: > Wondering if any one has ideas on writing reporting features for Cocoa apps?
Well, only you can determine how to collect the data you need for the report. Once you've done that, some developers use a WebView. This has a few advantages; you don't have to write the drawing code yourself, and you can reuse any layouts you may use for web-based reporting. On the downside, it involves dragging WebKit into your app and dealing with the DOM. This method is also usually unusable for any sort of charting or other non-traditional reporting. Others go the traditional route and write a custom NSView that they print. You have to draw it yourself, but this gives you far more control -- particularly useful when you want to know about the paper size and orientation, or other variables specific to printing. You'll get better results this way, but you'll probably put a lot more effort into it. HTH, --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]