• 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 webviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Simple question about Objects and Delegates
  • Next by Date: Re: No man pages when installing xcode?
  • Previous by thread: Simple question about Objects and Delegates
  • Next by thread: WebKit question
  • Index(es):
    • Date
    • Thread