Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

export pdf and preview pdf file error

0 REPLIES 0
Reply
Message 1 of 1
mta-rmt
206 Views, 0 Replies

export pdf and preview pdf file error

I am trying to get this ilogic code to save a pdf & then allow me to preview it. I keep getting an error with Adobereader 10.0 saying "file can't be opened because it in use by another program"

 

I'm working witht he code below.

 

'----------OPEN SAVED PDF--------------------------
zz = MessageBox.Show("Preview PDF ?", "PDF Preview ?", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If zz = vbYes Then
Dim shellResult As Double
Dim ProgramFilesPath As String
ProgramFilesPath = Environ("PROGRAMFILES(X86)")
On Error Resume Next
shellResult = Shell(ProgramFilesPath & "\Adobe\Reader 10.0\Reader\AcroRd32.exe" & " " & oDataMedium.FileName, vbNormalFocus)
If shellResult = 0 Then MsgBox ("Launche of Adobe Reader failed.", vbCritical + vbOKOnly )
End If

 

 

Any ideas ?

Inventor 2012 SP2
Xeon E5410 2.33 GHz
8 Gb RAM
Quadro FX1700
Vista 64 Bit SP2
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report