Solved

pdf viewer control ActiveX

Posted on 2013-12-02
3
668 Views
Last Modified: 2014-03-25
I'm using AxAcroPDF control to display and print a PDF File. I use the following code:
        AxAcroPDF1.LoadFile("c:\temp\amazon.pdf")
        AxAcroPDF1.setView("Fit")
        AxAcroPDF1.setShowToolbar(False)
        AxAcroPDF1.setShowScrollbars(False)

The fact is that when the document is displayed appears a grey bar over it, at bottom side, with zoom, navegate and show toolbar options for some seconds and appears again whenever I do "mouse over" the document. How can I deactivate that grey bar?
I need the user can see only the first page of the document and print it pressing a form button.
0
Comment
Question by:leorocha
  • 2
3 Comments
 
LVL 23

Expert Comment

by:Christopher Kile
Comment Utility
Then display the document, build some button code to call PrintPages(0, 0), and quit worrying about the bar, which will not print using this function.
0
 

Author Comment

by:leorocha
Comment Utility
Yes I've done that, but I need to hide that bar. But it seems that is impossible
0
 
LVL 23

Accepted Solution

by:
Christopher Kile earned 500 total points
Comment Utility
You can't hide the bar without changing the code of the viewer; there appears .  You can print the document without the bar appearing in the output.  Based on my 30 years of experience, if you tell the user to ignore the bar then most of them will; based on about 7 years of using PDF viewers in our applications, which all had a similar bar when moused over, we had no incidents related to this issue.  In conclusion, I believe you'll be ok without removing it, and I don't believe you'll encounter problems due to its presence other than the occasional user complaining that this is there.  Sorry if this is bad news.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now