Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)



I'm running into difficulties printing a webView in my NSDocument based
application.  I want to send the ENTIRE webView content to the printer,
not just the portion that is visible on screen in my window...

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 entire
contents of the outlineView.  So, the problem lies somewhere with the
webView.

Do I need to do anything extra special with the webView?  Has anyone
had any luck with this?

Thanks,

--

Jeff
_______________________________________________
webkitsdk-dev mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.