Discussion Locked

Open and Print .pdf in VB6

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hope somebody can help me/point me in the right direction. I need to write an application which will open a specific .pdf file based on user input and allow the user to print the file. I own Acrobat 5.0 so I will be able to place the Acrobat control on my form but I need some examples of how to manipulate the controls properties to allow me to load the .pdf files and print them. I am using VB6.

Thanks for the help

2 replies

by deepsand

This is a tech. problem, in search of a solution.

It properly belongs in "Technical Q&A," not in "Discussions." Please re-post there.

Not only will you be more likely to attract the attention of those seeking to provide answers, but you will also make it easier for those seeking discussions to find such.

Thank you.

by pmsyip

The easies way is using the following code provided Acrobat reader is installed.

y = ShellExecute(Me.hwnd, "Open", filename, "", vbNullString, 1)

Me is the form

This discussion is closed to new replies.