Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 827
  • Last Modified:

pdf viewer control ActiveX

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
leorocha
Asked:
leorocha
  • 2
1 Solution
 
Christopher KileCommented:
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
 
leorochaAuthor Commented:
Yes I've done that, but I need to hide that bar. But it seems that is impossible
0
 
Christopher KileCommented:
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now