• 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
Re: Printing with a WebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing with a WebView


  • Subject: Re: Printing with a WebView
  • From: Steven Kramer <email@hidden>
  • Date: Tue, 19 Oct 2004 13:58:25 +0200


Op 18-okt-04 om 21:15 heeft Frédéric Testuz het volgende geschreven:

Le 18 oct. 04, à 19:59, Steven Kramer a écrit :

Don't print the web view, print it's main frame. This also gives you big speedups and doesn't print the scrollers.

NSView* printView = [[[webView mainFrame] frameView] documentView];

Check the archives too, this has all been discussed before.

Thanks for your answer.

Meanwhile, I red the archives and already test this solution. It don't work. I think the reason is that I create the WebView and I don't include it in a window. So before [printOperation runOperation] documentView is *nil*. Note that if you set the WebView for the printOperation, documentView exists after runOperation.

Perhaps I hadn't see a good exemple in the archives, if someone has a code exemple.


Okay, that's a different story. You need to run a modal loop waiting for the webview to fully load itself. I haven't posted code for this before, and won't do it now, because it's all a bit contrived and largish. I'll dig up a previous message of mine and send it to you..

Steven Kramer

--
email@hidden
http://sprintteam.com/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Printing with a WebView (From: Frédéric Testuz <email@hidden>)
 >Re: Printing with a WebView (From: Frédéric Testuz <email@hidden>)

  • Prev by Date: RE: Re: Copying a file package[Solved]
  • Next by Date: clean fails
  • Previous by thread: Re: Printing with a WebView
  • Next by thread: NSColor extension problems...
  • Index(es):
    • Date
    • Thread