Thanks! works excelent!

Regards

Jesus Eguiluz
Ingeniero Electrónico.
Investigación y Desarrollo
Andes Electrónica Ltda.
+56 2 2347-8780
www.andeselec.com

El 27/12/13 12:05, Doug Blank escribió:
On Fri, Dec 27, 2013 at 9:24 AM, Jesus Eguiluz <[email protected]> wrote:
The attach code works perfect in ubuntu 12.04, but in windows I get the
following error:

Marshaling clicked signal
Exception in Gtk# callback delegate
   Note: Applications can use GLib.ExceptionManager.UnhandledException to
handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocatio
n. ---> System.Runtime.InteropServices.SEHException: External component has
thrown an exception.
    at Gtk.PrintOperation.gtk_print_operation_run(IntPtr raw, Int32 action,
IntPtr parent, IntPtr& er
ror)
    at Gtk.PrintOperation.Run(PrintOperationAction action, Window parent)
    at Workbench.PrintingDialog.Print(PrintOperationAction action, String
FileName)
    at Workbench.PrintingDialog.PrintDialogHandleClicked(Object sender,
EventArgs e)
    --- End of inner exception stack trace ---

I not have a clue about this.
Not certain, but I remember I had a similar exception because Main()
wasn't running in the correct thread. I added the following decorator,
and the issue went away:

[STAThread]
public static void Main(string[] args) {
...
}

Hope that helps,

-Doug

May be will be better use system.drawing.printing?

Regards

--
Jesus Eguiluz
Ingeniero Electrónico.
Investigación y Desarrollo
Andes Electrónica Ltda.
+56 2 2347-8780
www.andeselec.com


_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list



_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to