[Gtk-sharp-list] Printing a Gecko-sharp WebControl (win32)

Sergio Duran Sergio Duran <sergioduran@gmail.com>
Wed, 23 Mar 2005 08:46:21 -0600


Oh sorry, by the way, where can I get some documentation/instructions
for using gnomeprint on win32, using C#?


On Tue, 22 Mar 2005 15:12:08 -0600, Sergio Duran <sergioduran@gmail.com> wrote:
> Hi,
> I was playing with a custom installed copy of gecko-sharp, I had a
> local copy of the gecko-sharp.dll and gtkembedmoz.dll and the bunch of
> GRE DLLs with my EXE, everything was ok (ok, everything but forms,
> they werent doing anything) I just removed all that and installed
> GRE-GeckoSharp-1.7.3-0.3.exe, the GtkEmbedTest runs Ok, but when I run
> my project it crashes when Showing the WebControl... i get a null
> reference exception, this is the output:
> 
> --- snip ----
> gtkmozembed: realizing
> gtkmozembed: initializing window
> gtkmozembed: realizing window
> An unhandled exception of type 'System.NullReferenceException'
> occurred in gtk-sharp.dll
> 
> Additional information: Object reference not set to an instance of an object.
> 
> Unhandled Exception: The program '[1172] SET.exe' has exited with code 0 (0x0).
> System.NullReferenceException: Object reference not set to an instance
> of an object.
>    at Gtk.Widget.gtk_widget_show(IntPtr raw)
>    at Gtk.Widget.Show()
>    at SET.App.Main(String[] args) in c:\documents and
> settings\sergio\my documents\visual studio projects\set\app.cs:line
> 175
> 
> --- snip ---
> 
> i'm trying to run this code:
>                 static void Main(string[] args)
>                 {
>                         Application.Init();
> 
>                         Window win = new Window("test");
>                         WebControl wc = new Gecko.WebControl();
>                         wc.LoadUrl("http://www.slashdot.org");
>                         win.Add(wc);
>                         wc.Show();
>                         win.Show();
>                         ...
>                 }
> 
> I even tried the GtkMozApp source code and got the same results...
> 
> I'm running on VS.Net 2003, Gtk# 1.9.2... I installed the
> GRE-GeckoSharp package previously mentioned, am I missing something
> here?
> 
> 
> On Fri, 18 Mar 2005 12:40:30 -0600, Zac Bowling <zac@zacbowling.com> wrote:
> > libgnomeprint works on windows (like how abiword and gimp can print on
> > windows). Don't confuse that with libgnomeprintui which is the gui part.
> > That part you will have to do manually or pass in your printer name
> > staticly. I think it wraps most things. For printing on webcontrol you
> > can use the code in the webshot sample app in the gecko# source and
> > capture the image and then pass it to libgnomeprint (I believe). Cross
> > platform printing isn't easy since everyone still does it differently at
> > a library level :-) Hope that helps.
> >
> > Zac
> >
> > On Fri, 2005-03-18 at 11:03 -0600, Sergio Duran wrote:
> > > Hi everyone,
> > >
> > > I'm successfully using win32-gecko-sharp but now I would want to know
> > > how to print the contents of the WebControl.
> > >
> > > Or for that matter, are there any other report printing methods?
> > > Where should I write this question? I guess this is not the right
> > > list, could somebody redirect me?
> > > _______________________________________________
> > > Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> > > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> >
> >
>