[Gtk-sharp-list] Gnome.PrintPreview problem

Ecmel Ercan ecmel@ercansoy.com
Mon, 23 Feb 2004 01:31:55 +0200


Not sure if this is the right place to ask this question, but here it is:

I am trying to use Gnome.PrintPreview as:


        pj = new PrintJob (PrintConfig.Default ());

        Print.Beginpage (pj.Context, "demo");
        Print.Moveto (pj.Context, 0, 0);
        Print.Show (pj.Context, "Hello World");
        Print.Showpage (pj.Context);

        pj.Close ();      
        preview = new PrintPreview (pj.Config, printCanvas);
        pj.RenderPage (preview, 0, true);
        preview.Close ();


But nothing is displayed on the canvas.

Can somebody shed a light?

Ecmel Ercan