05 2018 档案

摘要:File.Create("D:\\路径\\文件名.扩展名"); 阅读全文
posted @ 2018-05-03 19:32 X_A_M 阅读(145) 评论(0) 推荐(0)
摘要:private void button1_Click(object sender, EventArgs e) { try { //1.创建Applicaton对象 Microsoft.Office.Interop.Excel.Application xApp = new Microsoft.Offi 阅读全文
posted @ 2018-05-03 19:31 X_A_M 阅读(769) 评论(0) 推荐(0)
摘要:private void button5_Click(object sender, EventArgs e) { string currentPath = Directory.GetCurrentDirectory(); WriteExcel(textBox3.Text + textBox4.Tex 阅读全文
posted @ 2018-05-03 19:26 X_A_M 阅读(6017) 评论(1) 推荐(0)
摘要:(1)首先在项目中引用 DocX.dll (2) <form action="~/Controller/File" method="post" enctype="multipart/form-data"> <input type="file" /> <input type="submit" valu 阅读全文
posted @ 2018-05-02 14:12 X_A_M 阅读(568) 评论(0) 推荐(0)
摘要:public Form1() { InitializeComponent(); CheckForIllegalCrossThreadCalls = false; } { InitializeComponent(); CheckForIllegalCrossThreadCalls = false; } 阅读全文
posted @ 2018-05-02 14:00 X_A_M 阅读(108) 评论(0) 推荐(0)