Printing many, many pages efficiently
Printing many, many pages efficiently
- Subject: Printing many, many pages efficiently
- From: Jacob Engstrand <email@hidden>
- Date: Tue, 3 Dec 2002 21:36:11 +0100
Hi all,
I want to print many, many records from a database. And I do! Printing
goes well. All is fine.
The question:
How can I set up the printing machinery to call my code once for each
page, so that I can build that page just before it is printed, and then
release it, its subviews and its associated data before building the
next page?
From what I understand, it seems you have to provide the entire NSView
to be printed, and feed that into printOperationWithView: before the
actual printing even starts. I would really like to avoid this, as it
consumes a lot of memory. Also it is rather wasteful to have to build a
view spanning over, say, 100 pages (loading maybe 1000 records from my
database), if the user only wants to print a small range of pages.
Very grateful for any input!
thanks
/jacob
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.