Thursday, February 10, 2011

Gecko usage in C# (geckofx)

Hi!

There are some things that I didn't find how to do using geckofx:

  1. Get the URL of a clicked link.

  2. Display print preview window.

Does this functionality exist in geckofx? If not, what's the best way to achieve it in a C# project that uses GeckoWebBrowser to display html pages?

Thanks

  • OnNaviagted event should give you the link, and look for the print interfaces nsIPrintingPromptService::ShowPrintDialog in Geckofx.

  • For printing, see this forum thread. Make sure to read it all before starting. Essentially you'll have to patch and recompile GeckoFX.

0 comments:

Post a Comment