Go Premium for a chance to win a PS4. Enter to Win


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

Posted on 2014-03-24
Medium Priority
Last Modified: 2014-03-27
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%

            Dim filePath As String = "~/Resources/GREAT.pdf"
            Response.ContentType = "application/pdf"
        Catch ex As Exception
        End Try

Open in new window

Question by:Murray Brown
  • 3
  • 2
LVL 34

Expert Comment

by:Paul MacDonald
ID: 39950409
Are you sure this happens to everyone, or just you?

Author Comment

by:Murray Brown
ID: 39950434
Good question. Can only speak for myself :)
LVL 75

Accepted Solution

käµfm³d   👽 earned 2000 total points
ID: 39950449
Going by the documentation, it looks you should be able to use the parameter zoom. Try appending that to your URL:


Dim filePath As String = "~/Resources/GREAT.pdf#zoom=100"

Open in new window

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Author Comment

by:Murray Brown
ID: 39950630
Thanks kaufmed but I get this error
LVL 34

Expert Comment

by:Paul MacDonald
ID: 39950661
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.

Author Closing Comment

by:Murray Brown
ID: 39959639

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question