Exemplo n.º 1
0
        void show_xls_out()
        {
            int col = 0;

            MSOfficeTools.exportExcel(xls_out.FileName, table, "Registry",
                                      x =>
            {
                if (x == Value_Dots)
                {
                    x = Value_Question;
                }
                else if (x == Value_Batsu)
                {
                    x = Value_Question;
                }
                else if (x == MachineInfo.NOTREACHABLE)
                {
                    x = Value_Question;
                }
                else
                {
                    x = x.Replace(Value_Dots, "");
                    x = x.Replace('\n', '¤');
                } return(x);
            }, x => "C" + (col++) + ":\n" + x.Replace('\n', '¤'));
        }
Exemplo n.º 2
0
 private void xls_out_FileOk(object sender, CancelEventArgs e)
 {
     MSOfficeTools.exportExcel(xls_out.FileName, table, GetType().Name, x => {
         if (x == Value_Dots)
         {
             return(Value_Question);
         }
         else if (x == Value_Batsu)
         {
             return(Value_Question);
         }
         else if (x == MachineInfo.NOTREACHABLE)
         {
             return(Value_Question);
         }
         else
         {
             return(x.Replace(Value_Dots, ""));
         }
     });
 }