• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Printing my document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Printing my document
      • From: Graham J Lee <email@hidden>
References: 
 >Printing my document (From: Graham J Lee <email@hidden>)

  • Prev by Date: Re: NSBitmapImageRep lost methods?
  • Next by Date: Re: Creating an Offscreen NSView
  • Previous by thread: Printing my document
  • Next by thread: Re: Printing my document
  • Index(es):
    • Date
    • Thread