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: Ivan Myrvold <email@hidden>
- Date: Fri, 14 Mar 2003 07:45:00 +0100
I want this to be transparent to the user. He shouldn't need to select
"printing on both sides" in his print dialog.
Ivan
Pe torsdag, 13. mars 2003, kl. 16:20, skrev Dave Camp:
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.
Ivan C Myrvold
OrtopediService AS
Mob. 913 16 356
Tlf. 38 14 45 93
_______________________________________________
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.