Printing webviews
Printing webviews
- Subject: Printing webviews
- From: Will Thimbleby <email@hidden>
- Date: Tue, 11 Nov 2003 15:18:25 +0000
Hi,
This seems to have been asked before, but I found no answers. I'm
trying to print a webView, and all I get is errors. Here's my code
pretty much verbatim from apple:
- (void)printShowingPrintPanel:(BOOL)showPanels
{
// Construct the print operation and setup Print panel
NSPrintOperation *op = [NSPrintOperation
printOperationWithView: webView
printInfo:[self printInfo]];
[op setShowPanels:showPanels];
// Run operation, which shows the Print panel if showPanels was YES
[self runModalPrintOperation:op
delegate:nil
didRunSelector:NULL
contextInfo:NULL];
}
And I get these errors:
PMSessionEndDocumentNoDialog failed (error code = -30879)
*** -[NSAutoreleasePool dealloc]: Exception ignored while releasing an
object in an autorelease pool: NSInternalInconsistencyException Failed
to end PMPrintContext
Cheers -Will
_______________________________________________
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.