Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ASP.net VB.net open pdf in new browser at 100%

Hi
I am using the following code to open a pdf file in a new browser
It opens at 143%
How do  get it to rather open at 100%

 Try
            Response.Clear()
            Dim filePath As String = "~/Resources/GREAT.pdf"
            Response.ContentType = "application/pdf"
            Response.WriteFile(filePath)
        Catch ex As Exception
            Response.Write(ex.Message)
        End Try

Open in new window

Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

Are you sure this happens to everyone, or just you?
Avatar of Murray Brown

ASKER

Good question. Can only speak for myself :)
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
User generated image
Thanks kaufmed but I get this error
It may just be the way you have your PDF viewer configured, and not a problem with the file itself at all.  I'd look into it.
thanks