// Create The New Document: private void Button1_Click_1(object sender, EventArgs e) { if (SaveDoc.ShowDialog() == DialogResult.OK) { CreateWordDocument(textBox1.Text, SaveDoc.FileName, pathResim); progressBar1.Value = 100; } }
//Create your document: private void btnSubmit_Click(object sender, EventArgs e) { if (SaveDoc.ShowDialog() == DialogResult.OK) { CreateWordDocument(tFilename.Text, SaveDoc.FileName, pathImage); tEnabled(false); //printDocument1.DocumentName = SaveDoc.FileName; } }