Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

Open a PDF file with security

$
0
0

I used code below open a PDF file but got a error said

The specified executable is not a valid application for this OS platform

But, if I open non-security folder as Process.Start(FILE_NAME) will be no problem.

How to fix it?

Dim FILE_NAME As String = "\\MYSERVER\ORDER\N1234.PDF"
Process.Start(FILE_NAME, "USERNAME", ToSecureString("MYPASSWORD"), "DOMAINNAME")


Viewing all articles
Browse latest Browse all 2257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>