Zoom In PDF on WebBrowserControl

jmaty23

Registered User.
Local time
Today, 16:33
Joined
Jul 24, 2012
Messages
53
I am trying to zoom in a PDF document that opens in a webbrowsercontrol on an access form.

I currently am trying to use SendKeys for the zoom in. Here is the code I am trying to use for zoom in. The problem I am having is that when I click cmdzoomin, the PDF rotates clockwise, doesn't zoom.
Private Sub cmdzoomin_Click()
On Error GoTo ErrorHandler

Me.WebBrowser5.SetFocus
SendKeys ("^{+}")

ProcedureExit:
Exit Sub

ErrorHandler:
MsgBox "Error" & ": " & Err.Number & vbCrLf & "Description: " _
& Err.Description, vbExclamation, Me.Name & ".cmdzoomin_Click"
Resume ProcedureExit

End Sub

The odd thing is that my zoom out button works fine. SendKeys ("^{-}")

Any thoughts to make this work?
 
What about "^+", (not tested).
 
Update: I'm using this Access DB on a touch screen with Windows 7. After installing the DB on the touch screen computer it puts Adobe in touch screen mode which keeps the Adobe Reader control bar visible all the time. This allows the user to use the native zoom in and out buttons. This will work for me for now. Thanks for the assistance.

I will try ^+ and post if it works or not.
 

Users who are viewing this thread

Back
Top Bottom