コード例 #1
0
        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
        }
コード例 #2
0
        public void Print(string Html)
        {
#if !MACOS
            if (Html == null)
            {
                Console.WriteLine("empty print");
                return;
            }

            PrintManager.Print(Html);
#endif
        }