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; namespace WindowsFormsWordExcelDemo { public partial class ImgInsertIntoWord : Form { public ImgInsertIntoWord() { InitializeComponent(); } private void 打开ToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = "Word Files(*.docx)|*.docx|Word Files(*.doc)|*.doc"; if (openFileDialog.ShowDialog() == DialogResult.OK) { } } } }