上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 82 下一页
摘要: DataTable dt = new DataTable(); foreach (DataGridViewColumn headerCell in dataGridView1.Columns) { dt.Columns.Add(headerCell.HeaderText); } foreach (DataGridViewRow item in dataGridView1.Rows) { DataR... 阅读全文
posted @ 2010-01-22 12:17 greencolor 阅读(135) 评论(0) 推荐(0) 编辑
摘要: <saveref> <refer> <tit>a </tit><atu> b </atu></refer></saveref> autodataset ----------- DataSet autodataset.ReadXml(filePath);dataGridView1.DataSource =... 阅读全文
posted @ 2010-01-21 16:29 greencolor 阅读(134) 评论(0) 推荐(0) 编辑
摘要: string textreadinall; object nullobj = System.Reflection.Missing.Value; object docFalse = false; object docTure = true; object fofile = textBox1.Text; Word.Application wordApp = new Word.Application()... 阅读全文
posted @ 2010-01-17 17:09 greencolor 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Object oMissing = System.Reflection.Missing.Value; Object oFalse = false; Word.Application oWord = new Word.Application(); Word.Document oWordDoc = new Word.Document(); oWord.Visible = true; oWordDoc... 阅读全文
posted @ 2010-01-17 14:28 greencolor 阅读(156) 评论(0) 推荐(0) 编辑
摘要: save: ListViewItem lv = new ListViewItem(); lv.SubItems[0].Text = "Text1"; lv.SubItems.Add("Text1subtext"); this.listView1.Items.Add(lv); ListViewItem lv2 = new ListViewItem(); lv2.SubItems[0].Text = ... 阅读全文
posted @ 2010-01-17 12:46 greencolor 阅读(163) 评论(0) 推荐(0) 编辑
摘要: string str = @"C:\Windows";string str = "C:\\Windows";In order to expressstring: abc"defstring str = "abc\"def";string str = @"abc""def"; 阅读全文
posted @ 2010-01-15 23:15 greencolor 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Microsoft Visual Studio Tools for Office Technical ArticlesUnderstanding the Word Object Model from a .NET Developer's Perspective Mary ChipmanMCW Technologies, LLCApril 2003Applies to: Microsoft®... 阅读全文
posted @ 2010-01-15 16:41 greencolor 阅读(677) 评论(0) 推荐(0) 编辑
摘要: object oRngoBookMarkStart = 12; object oRngoBookMarkEnd = 34; Microsoft.Office.Interop.Word.Range rngBKMarkSelection = doc.Range(ref oRngoBookMarkStart, ref oRngoBookMarkEnd); rngBKMarkSelection.Text... 阅读全文
posted @ 2010-01-09 00:54 greencolor 阅读(222) 评论(0) 推荐(0) 编辑
摘要: object oRngoBookMarkStart = 12; object oRngoBookMarkEnd = 34; Microsoft.Office.Interop.Word.Range rngBKMarkSelection = doc.Range(ref oRngoBookMarkStart, ref oRngoBookMarkEnd); 阅读全文
posted @ 2010-01-09 00:43 greencolor 阅读(224) 评论(0) 推荐(0) 编辑
摘要: //CLOSING THE FILEoWordDoc.Close(ref oFalse, ref oMissing, ref oMissing);//QUITTING THE APPLICATIONoWord.Quit(ref oMissing, ref oMissing, ref oMissing); 阅读全文
posted @ 2010-01-08 23:08 greencolor 阅读(187) 评论(0) 推荐(0) 编辑
上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 82 下一页