i’ve got an PDF file and want to open it on clients desktop (so i don’t know the directory of his default PDF reader)…
...
File.WriteAllBytes(pdfByteArray, path);
File.Open(path, FileMode.Open);
...
seems not to work here…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try opening it like this:
If
pathends with some extension (like .PDF) that has an associated program with it will be opened with this program.