Skip navigation.
 
mlOdd Paper Size and NSPrintInfo
FROM : Lon Varscsak
DATE : Mon Nov 18 13:32:01 2002

I'm having some trouble using NSPrintInfo and NSPrintPaperSize.

When I do:    

    NSPrintInfo *printInfo = [NSPrintInfo sharedPrintInfo];
    NSPrintOperation *printOp = nil;

   [printInfo setPaperSize:NSMakeSize(864, 1296)];

   printOp = [NSPrintOperation printOperationWithView:self
printInfo:printInfo];

   [printOp runOperation];

I essentially get the smallest paper size possible and [printInfo
paperSize] returns {0,0}.  It appears that since this particular paper
size is non-standard (12 in. x 18 in.), it freaks out ;).

I've even tried manipulating the [printInfo dictionary] directly, and
the result is the same.

What am I missing?

Thanks,

Lon


Related mailsAuthorDate
No related mails found.