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.