• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Printing a non document based textView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printing a non document based textView


  • Subject: Printing a non document based textView
  • From: Andrea Salomoni <email@hidden>
  • Date: Fri, 4 Nov 2005 15:58:38 +0100

Hi to all,

I'm trying to print a textView in a non document based app.
I wrote this code:

-(void)printShowingPrintPanel:(BOOL)flag
{

[ self setPInfo: [[NSPrintInfo sharedPrintInfo] copy] ];
NSPrintInfo    * pi = [ self pInfo ];
NSPrintOperation * printOp;

[pi setTopMargin:10.0];
[pi setLeftMargin:20.0];

[pi setHorizontallyCentered:NO];
[pi setVerticallyCentered:NO];

printOp =[NSPrintOperation printOperationWithView:theFolder printInfo:pInfo];
//[printOp runOperation];
}


trying to set the margins... but the app continue to print the text in the middle of the page...
How can I do?


Thank you all for support

Yorh

_______________________________________________
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


  • Follow-Ups:
    • Re: Printing a non document based textView
      • From: Ryan Stevens <email@hidden>
  • Prev by Date: Re: OK to Use C++ Shorthand Constructs in a Cocoa Project?
  • Next by Date: Re: Catch an exception
  • Previous by thread: Re: RE : newbie: adding nibs: i'm stuck
  • Next by thread: Re: Printing a non document based textView
  • Index(es):
    • Date
    • Thread