private void NewPage(object sender, RoutedEventArgs e) { //string[] strAr = new string[dataGrid1.Rows[1].Count]; //for (int i = 0; i < dataGrid1.Rows[1].Count; i++) //{ //strAr[i] = (int)dataGrid1.Rows[i].Cells["Column0_IndexTable1"].Value; //} Web.AddNewPage(files, 1); }