using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Excel = Microsoft.Office.Interop.Excel;
using System.IO;
namespace PACC
{
public partial class Form1 : Form
{
private string attachDir;
public Form1()
{
InitializeComponent();
}
private void btnSelectDir_Click(object sender, EventArgs e)
{
FolderBrowserDialog fbd = new FolderBrowserDialog();
if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
attachDir = fbd.SelectedPath;
label1.Text = attachDir;
}
}
private void btnDo_Click(object sender, EventArgs e)
{
Do(InsertAttachments);
}
private void InsertAttachments() {
c#在excel里批量插入附件(从文件创建对象)
最新推荐文章于 2025-01-05 11:39:34 发布