Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening PDF/ Solidworks API 1

Status
Not open for further replies.

JordonMusser

Mechanical
Dec 22, 2006
40
I can open it using the shell command..

ie:

myapp= Shell("C:\app path C:\file path")

But unfortunately I will not always know the location of acrobat reader.

Is there another way to do this?
 
Replies continue below

Recommended for you

Windows API ShellExecute will open a file with its default application

Windows API declaration for ShellExecute
Code:
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, _
ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Sub that opens a web page using ShellExecute
Code:
Public Sub OpenEsoxWeb()
ShellExecute 0, vbNullString, "[URL unfurl="true"]http://www.EsoxRepublic.com",[/URL] vbNullString, "C:\", SW_SHOWNORMAL
End Sub

[bat]Honesty may be the best policy, but insanity is a better defense.[bat]
-SolidWorks API VB programming help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor