public void Print(string Html) { if (Html == null) { Console.WriteLine("empty print"); return; } Console.WriteLine("XXXX"); #if USE_GTKHTML_PRINT try { PrintManager.Print(Html); } catch { MessageDialog md = new MessageDialog(null, DialogFlags.DestroyWithParent, MessageType.Error, ButtonsType.Close, "Printing not supported without gtkhtml"); int result = md.Run(); md.Destroy(); } #else MessageDialog md = new MessageDialog(null, DialogFlags.DestroyWithParent, MessageType.Error, ButtonsType.Close, "Printing not supported without gtkhtml"); int result = md.Run(); md.Destroy(); #endif }
public void Print(string Html) { #if !MACOS if (Html == null) { Console.WriteLine("empty print"); return; } PrintManager.Print(Html); #endif }