Re: printing

Christiaan Hofman <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Jan 5, 2010, at 23:38, Kyle Sluder wrote:

> On Tue, Jan 5, 2010 at 11:31 AM, Rui Lopes <[email protected]> wrote:
>> To print an invoice, for example, do I creat a view, and the print the view (or pdf it), or is there any software for reporting, that i can integrate with Xcode and IB - like there is Crystal Reports for PC?
> 
> Search the cocoa-dev list archives (and perhaps this one's as well)
> for lots of references to reporting and report generation. Nowadays, a
> lot of people like to use WebKit. Or you could use MGTemplateEngine.
> Or you could make a view and print it yourself.
> 
> --Kyle Sluder

You should also read the docs on printing, though admittedly they're rather dense and it can be hard to find the relevant information. Generally in Cocoa you always print a view. That can be a standard view with enhanced printing support (like NSTextView, WebView, PDFView) or a custom view, that depends on what you want to print.

Christiaan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.