Need help printing a webView...
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.