• 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 on both sides from a subclassed NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing on both sides from a subclassed NSView


  • Subject: Re: Printing on both sides from a subclassed NSView
  • From: Dave Camp <email@hidden>
  • Date: Thu, 13 Mar 2003 07:20:04 -0800 (PST)

Page one would be printed on the front side, and page two on the other
side. You need to print two pages, not just one.

Dave

On Thu, 13 Mar 2003, Ivan Myrvold wrote:

> I have a subclassed NSView, where I have implemented the method below.
> That works well, but I also want to have some text on the back of the
> page that is printed by the method below. How can I that? I know that
> my printer supports that, because I can choose "Print on both sides" in
> the printer dialog. Any good ideas?
>
> - (IBAction)print:(id)sender {
> NSPrintInfo *printInfo = [NSPrintInfo sharedPrintInfo];
> [printInfo setLeftMargin:1.0];
> [printInfo setRightMargin:1.0];
> [printInfo setTopMargin:1.0];
> [printInfo setBottomMargin:1.0];
> NSPrintOperation *printOp = [NSPrintOperation
> printOperationWithView:self printInfo:printInfo];
> [printOp setShowPanels:YES];
> [printOp runOperation];
> }
>
> Ivan
> _______________________________________________
> 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.
_______________________________________________
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.

References: 
 >Printing on both sides from a subclassed NSView (From: Ivan Myrvold <email@hidden>)

  • Prev by Date: Re: Asynchronously writing to a file?
  • Next by Date: Re: WSMethodInvocationInvoke & Basic Authentication
  • Previous by thread: Printing on both sides from a subclassed NSView
  • Next by thread: Re: Printing on both sides from a subclassed NSView
  • Index(es):
    • Date
    • Thread