2010-07-26 59 views

回答

1

第5頁顯示了這個參數。這不適合你嗎? (另外,請注意,這僅適用於使用Adobe Acrobat打開的文檔,參數適用於應用程序,不適用於文檔,因此如果您不控制/瞭解用戶的環境,那麼它可能不適用於所有用戶用戶)

0

下面的意志代碼將開闢text.pdf到第2頁:

Dim p As New System.Diagnostics.ProcessStartInfo 
p.Verb = "Open" 
p.WindowStyle = ProcessWindowStyle.Normal 
p.UseShellExecute = True 
System.Diagnostics.Process.Start("C:\Program Files\Adobe\Acrobat 7.0\Acrobat\acrobat.exe", "/A " & Chr(34) & "page=2" & Chr(34) & " " & Chr(34) & "C:\TEMP\DeleteME\test.pdf" & Chr(34)) 
0
'Page Number 

Dim MyPageNumber As Integer 

'Acrobat Reader Path 

Dim AcrobatReaderPath As String = "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" 

'Pdf File Name 

Dim PdfFileName As String = "Egypt.pdf" 

'Open Page 

Shell(AcrobatReaderPath & " /A Page=" & MyPageNumber & " " & Application.StartupPath & "\" & PdfFileName, AppWinStyle.MaximizedFocus)