Esempio n. 1
0
        public void CreateStylesheetTest()
        { 
            //var array = new Tuple<int, string, string, int>[4];
            //array[0] = new Tuple<int, string, string, int>(1, "David", "Smith", 10000);
            //array[1] = new Tuple<int, string, string, int>(3, "Mark", "Drinkwater", 30000);
            //array[2] = new Tuple<int, string, string, int>(4, "Norah", "Miller", 20000);
            //array[3] = new Tuple<int, string, string, int>(12, "Cecil", "Walker", 120000); 

            DataTableExport_Accessor target = new DataTableExport_Accessor(Arch.CFramework.Utility.DataTableExport.AppType.Win);  
            
            using (StringWriter str = new StringWriter())
            using (XmlTextWriter writer = new XmlTextWriter(str))
            {
                string[] sHeaders = new string[] { "姓名", "年龄", "总计", "生日" };
                string[] sFileds = new string[] { "姓名", "年龄", "总计", "生日" };
                DataTableExport.ExportFormat FormatType = new DataTableExport.ExportFormat();
                target.CreateStylesheet(writer, sHeaders, sFileds, FormatType);
            }
        }