Re: Printing my document
Re: Printing my document
- Subject: Re: Printing my document
- From: Fritz Anderson <email@hidden>
- Date: Mon, 23 May 2005 11:00:46 -0500
On 23 May 2005, at 7:42 AM, Graham J Lee wrote:
Now, how do I go about printing that? I've overridden -
printDocument: in my NSDocument subclass, and get the following
results:
-(void)printDocument:(id)sender
{
[super printDocument:sender]; /* does nothing */
[tableView print:sender]; /* print the contents (though not
column headings) of the table view */
[graphView print:sender]; /* print the graph view out very
nicely */
}
However, the tableView and graphView prinouts get sent (perhaps
unsurprisingly) as separate print jobs. What I'd like to do is
print the tableView followed by the graphView on the same (printer)
document, even if they don't fit on the same page. How could I
acheive that?
Without promising to omit the headers or do it very nicely, I'd say
you create an NSView big enough to hold both views, lay them out
inside it, and print that. Return the views to their original
superviews when you're done.
-- F
--
Fritz Anderson
Consulting Programmer
http://resume.manoverboard.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden