• 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
Need help printing a webView...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help printing a webView...


  • Subject: Need help printing a webView...
  • From: Jeff Sauer <email@hidden>
  • Date: Sat, 19 Jul 2003 10:21:19 -0700

I'm running into difficulties printing a webView in my NSDocument based
application.

Here is the code I'm using:

- (void)printShowingPrintPanel:(BOOL)showPanels {
// Obtain a custom view that will be printed
NSView *printView = webView;

// Construct the print operation and setup Print panel
NSPrintOperation *op = [NSPrintOperation
printOperationWithView:printView
printInfo:[self printInfo]];
[op setShowPanels:showPanels];
if (showPanels) {
// Add accessory view, if needed
}

// Run operation, which shows the Print panel if showPanels was YES
[self runModalPrintOperation:op
delegate:nil
didRunSelector:NULL
contextInfo:NULL];
}

In the same NSDocument, I also have an outlineView in a drawer... if I
replace the webView with outlineView, it properly prints out the
contents of the outlineView. So, the problem lies somewhere with the
webView.

Do I need to do anything extra special with the webView?

This is my first Cocoa application, so any help would be much
appreciated!

Regards,

--

Jeff
_______________________________________________
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: Re: mystery NSTextView draw problem
  • Next by Date: Java Bridge - Use Java in ObjC
  • Previous by thread: Re: mystery NSTextView draw problem
  • Next by thread: Java Bridge - Use Java in ObjC
  • Index(es):
    • Date
    • Thread