Word & PDF document
-
Hello, I have a form in c # and two buttons on form, i want to open word document file on click on one button and an other button click i want to open PDF file. what should i do should i add any reference or what code is required. please do replay Thanx
-
Hello, I have a form in c # and two buttons on form, i want to open word document file on click on one button and an other button click i want to open PDF file. what should i do should i add any reference or what code is required. please do replay Thanx
You need to locate the file(s) see IO.FileInfo Then use this search to begin your research on how to open a word document[^] and this one to open a pdf file[^]
Never underestimate the power of human stupidity RAH
-
Hello, I have a form in c # and two buttons on form, i want to open word document file on click on one button and an other button click i want to open PDF file. what should i do should i add any reference or what code is required. please do replay Thanx
-
Sajjad Leo wrote:
want to open word document file on click on one button
private void btnExeDoc_Click(object sender, EventArgs e) { try { Process.Start("report.doc"); } catch (Win32Exception ex) { MessageBox.Show(ex.Message); } }
Dear your code is not working i am trying it but there is problem. let me explain it again i want to display text file and pdf file on the button click. i need this only.
-
Dear your code is not working i am trying it but there is problem. let me explain it again i want to display text file and pdf file on the button click. i need this only.
-
Hi dear, Pls remember to add
using System.Diagnostics;
8.Kelvin()
{
while (!(the machine can program itself))
Wont_stop_coding = true;
}I have done this, but its path which i given in code is in C drive but if i want to add file in solution explore then is their any different technique for displaying ms word file or pdf file.