View Single Post
 
Old 02-06-2012, 09:52 AM
webbino webbino is offline Windows XP Office 2007
Novice
 
Join Date: Feb 2012
Posts: 1
webbino is on a distinguished road
Default Powerpoint and vba

Greetings to all, are new and with very little experience of language vba :-(!
Using Windows XP sp3, Office 2007 and Acrobat Reader 8.
This is my problem.
On a slide I have two buttons: one to open the file c: \ one.pdf, the other c: \ two.pdf.
I added a form that contains the component Acrobat (acropdf1) and two buttons: one for the other exit form to print the file displayed in acropdf1.

This is the code that I associated with the first button:

Private Sub CommandButton1_Click ()
Load UserForm1
UserForm1.Show
UserForm1.AcroPDF1.LoadFile "C: \ one.pdf"
end Sub

but:
1) when I try to open the file, I opened the "first shot", I have to get out form, click the button again and finally I see the pdf file;
2) How do I tell the print button to print the PDF file displayed in the component.
Thanks to those who can help me.
Hello
Reply With Quote