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控件