PDF viewer or be able to attach a pdf file to a form

GT_engineer

Registered User.
Local time
Today, 14:43
Joined
Aug 23, 2012
Messages
85
I am looking to see if it is possible to have a pdf viewer in a form. Right now I have the ability to view attached images, but some users may want to attach a pdf file.

Also, can the image viewer view the pdf's or do I need to create a new viewer for the pdf files??
 
Just install adobe reader (I use adobe reader 11)

and then put Adobe reader activex controll in your form,
give the name "MyPDF"

put this code on form open event
me.Mypdf.src="D:\My data\Samplepdf.pdf" 'or you can use file dialogue to get path of pdf file you want to view

I hope it can help you,


Regards
 
thanks, will test it out. I will make it invisible and depending on the extension of my file jpg or pdf i will make it visible.
 
When I try to view the pdf I get this error

'Object doesn't support this property or method'

I believe it doesn't recognize

me.PDF.scr

I also tried

me.PDF.source
 

Users who are viewing this thread

Back
Top Bottom