Re: How to Print MultiPageView in a Single Page Similar to Excel
Re: How to Print MultiPageView in a Single Page Similar to Excel
- Subject: Re: How to Print MultiPageView in a Single Page Similar to Excel
- From: Scott Thompson <email@hidden>
- Date: Tue, 14 Feb 2006 09:09:04 -0600
On Feb 14, 2006, at 6:56 AM, Janakiram wrote:
Hi,
I have a graphical view which typically prints on two pages if
the paper size is A4. Now my requirement is to print the entire
view contents on a single page.I tried by setting the range
location lengh to 1 in knowsPageRange: method and passing the
entire view bounds in rectForPage method but the entire view is not
scaled & printed on the page , it took default rectangle and it
printed the middle portion of the view. Please Suggest me some ways
to solve this problem.
how Microsoft Excel PageBreaksView Works, where user can set the
area to be printed on each page. Please share your views . Thanks
in Advance.
Given that you are using Objective-C is it safe to assume you are
using Cocoa?
If so then you can change the pagination mode in the NSPageInfo
object to request the system scale your view to a single page. In
our application the calls are:
[printInfo setHorizontalPagination: NSFitPagination];
[printInfo setVerticalPagination: NSFitPagination];
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden