Printing on both sides from a subclassed NSView
Printing on both sides from a subclassed NSView
- Subject: Printing on both sides from a subclassed NSView
- From: Ivan Myrvold <email@hidden>
- Date: Thu, 13 Mar 2003 13:57:26 +0100
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.