Re: Printing Newbie
Re: Printing Newbie
- Subject: Re: Printing Newbie
- From: Scott Anguish <email@hidden>
- Date: Sat, 14 Sep 2002 00:10:35 -0400
On Friday, September 13, 2002, at 08:56 PM, Mike Dean wrote:
I have a textview that is the target of my menu item for printing;
all is well from standpoint that something happens. However, the
printed material, or whatever shows up in print preview, is cropped on
the right side, so that about 1/4 of the view is not printed. I am
using ASCII encoding. When I save the view, I can open it and the
entire text is present in the saved version, and everything displays
correctly on the computer. But when it goes through the print: method
for the NSView, 1/4 is missing on the right. Anything obvious come to
mind? If not, I will post the code, but it is standard out of one of
the beginner books.
Yeah..
Most likely your view is too wide for the page, and as a result, it is
getting clipped. The default pagination for an NSPrintInfo is
Horizontal clipping and vertical autopagination
change that (either in the print: method or whereever you're calling
printing is one option) and it'll be better (across multiple pages
maybe.. but better)
_______________________________________________
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.