printDocument WebView
printDocument WebView
- Subject: printDocument WebView
- From: "Alfred Mayerhofer" <email@hidden>
- Date: Sun, 15 Feb 2004 03:26:46 +0100 (MET)
Hello, List:
I changed in the example /Developer/Examples/WebKit/Minibrowser
the Connection (Menu/File/Print...) to print:
so I have a working printroutine (website fit to papersize,
multiple pages for large sites, correct Page Setup handling)
but no modaldialog and I have to select the WebView by clicking in it.
I changed
the Connection (Menu/File/Print...) back to printDocument:
and added:
- (void)printDocument:(id)sender
{
NSWindow *docWindow = [self window];
NSPrintOperation *printOperation = [NSPrintOperation
printOperationWithView:webView];
[printOperation runOperationModalForWindow:window
delegate:nil
didRunSelector:NULL
contextInfo:NULL];
}
now I have modaldialog and the WebView is selected
but not the rest (website doesn't fit to papersize,
only 1 page, no Page Setup handling)
What's the correct way to have
modaldialog, WebView selected, website fit to papersize,
multiple pages for large sites, correct Page Setup handling
Thanks!
A
--
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++
http://www.gmx.net/derspiegel +++
_______________________________________________
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.