摘要:
DataTable dt = new DataTable(); foreach (DataGridViewColumn headerCell in dataGridView1.Columns) { dt.Columns.Add(headerCell.HeaderText); } foreach (DataGridViewRow item in dataGridView1.Rows) { DataR... 阅读全文
摘要:
<saveref> <refer> <tit>a </tit><atu> b </atu></refer></saveref> autodataset ----------- DataSet autodataset.ReadXml(filePath);dataGridView1.DataSource =... 阅读全文
摘要:
string textreadinall; object nullobj = System.Reflection.Missing.Value; object docFalse = false; object docTure = true; object fofile = textBox1.Text; Word.Application wordApp = new Word.Application()... 阅读全文
摘要:
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... 阅读全文
摘要:
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 = ... 阅读全文
摘要:
string str = @"C:\Windows";string str = "C:\\Windows";In order to expressstring: abc"defstring str = "abc\"def";string str = @"abc""def"; 阅读全文
摘要:
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®... 阅读全文
摘要:
object oRngoBookMarkStart = 12; object oRngoBookMarkEnd = 34; Microsoft.Office.Interop.Word.Range rngBKMarkSelection = doc.Range(ref oRngoBookMarkStart, ref oRngoBookMarkEnd); rngBKMarkSelection.Text... 阅读全文
摘要:
object oRngoBookMarkStart = 12; object oRngoBookMarkEnd = 34; Microsoft.Office.Interop.Word.Range rngBKMarkSelection = doc.Range(ref oRngoBookMarkStart, ref oRngoBookMarkEnd); 阅读全文