Microsoft
Software
Hardware
Network
Question : Open and close a pdf document
I must open a pdf document so I ask you if this code is ok......
Private Sub Comando201_Click()
Dim AcroApp As Acrobat.CAcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Set AcroApp = CreateObject("AcroExch.App
")
Set PDDoc = CreateObject("AcroExch.PDD
oc")
AcroApp.Show
PDDoc.Open ("l:\toledo.pdf")
PDDoc.OpenAVDoc ("l:\toledo.pdf")
End Sub
.....And I have a button that close the pdf open with the code upon
Private Sub close_Click()
Dim avdoc As Acrobat.CAcroAVDoc
Dim AcroApp As Acrobat.CAcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Set AcroApp = CreateObject("AcroExch.App
")
Set avdoc = CreateObject("AcroExch.avd
oc")
Set PDDoc = CreateObject("AcroExch.PDD
oc")
AcroApp.CloseAllDocs
Set avdoc = Nothing
Set AcroApp = Nothing
End Sub
In this case the document is closed but Acrobat is already active so if I try to re-open the pdf I receive the error that the file is already open.....how can I close the pdf totally?????
Answer : Open and close a pdf document
then what is the problem? So it requires two lines of code...big deal.
AW
Random Solutions
Connecting to Oracle from perl.
IE 7 throws "invalid argument" jscript error when change "top" css property
How can I identify the 'other devices' in my device manager? i.e. Base System Device, SM Bus Controller, Video Controller, Unknown Device. Don't know where to search to find drivers.
Differences b/w win95,win98,win2k,Windows Me,windows XP
Adding a non-exchange address to an exchange group?
Add column in the midle of the table in Sybase
Redirect Outlook Anywhere client to local xml for correct autodiscover url
decompressing files that are in RAR format
Auto Empty Recycle Bin?
SELECT COUNT(*) issues msg 8115