C# 窗体应用程序 打开word文档,并将其转化成XML文件

2024-10-30 15:33:21
推荐回答(1个)
回答1:

private void button1_Click(object sender, EventArgs e)
{
if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
{
this.textBox1.Text = openFileDialog1.FileName;
}

}
Form中添加一个openFileDialog控件