Re: Printing on both sides from a subclassed NSView
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.