• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 579
  • Last Modified:

View PDF files in VB6 app without having Save option

Hi

I would like users to be able to view PDF files in a VB6 app without being given access to the save/save as dialog box - just navigate and zoom in/out.

Any ideas?

Andy
0
ajmcqueen
Asked:
ajmcqueen
  • 3
  • 2
1 Solution
 
cubixSoftwareCommented:
Hi

I just replied to your other post re: Word, and I think the same method works here, i.e. add a web control to your form and then navigate to it....

webcontrol1.Navigate2 "C:\Test.pdf"


HTH :)

0
 
ajmcqueenAuthor Commented:
This method certainly allows a user to view a pdf but it doesn't prevent the user opening the file/open dialog box so it doesn't solve my problem.
0
 
cubixSoftwareCommented:
In the Navigate2 event if you enter the following code

            wbDocument.ExecWB(SHDocVw.OLECMDID.OLECMDID_HIDETOOLBARS, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER)
            wbDocument.ExecWB(SHDocVw.OLECMDID.OLECMDID_HIDETOOLBARS, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER)


(yes it is two lines exacly the same) then this should hide all the toolbars

0
 
cubixSoftwareCommented:
I believe I gave the correct answer, in fact it was the same advice I gave here http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21875691.html and this was accepted with a Grade A

0
 
ajmcqueenAuthor Commented:
Sorry

I missed this one. Will award the points.

Mac
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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