Solved

pdf viewer control ActiveX

Posted on 2013-12-02
3
695 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
ID: 39715348
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
ID: 39727584
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
ID: 39760016
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

770 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