vb.net 打开pdf文件

前端之家收集整理的这篇文章主要介绍了vb.net 打开pdf文件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Public Overloads Shared Function FN_ExecuteCmd(ByVal strFileName As String) As String

Dim myProcess As System.Diagnostics.Process = Nothing

Try

myProcess = New System.Diagnostics.Process

myProcess.StartInfo.FileName = strFileName
myProcess.StartInfo.CreateNoWindow = True
myProcess.Start()

myProcess.Close() myProcess.Dispose() Return "1" Catch ex As Exception myProcess.Close() myProcess.Dispose() Throw ex End Try End Function

猜你在找的VB相关文章