-
Apr 20th, 2005, 01:16 AM
#1
Thread Starter
Frenzied Member
Adding pdf.ocx in VB6?
I have a strange problem.
I wish to browse a pdf-file from VB6, so I have created a form with a picturebox and the code below:
VB Code:
Form7.Pdf1.src = "http://www.logstor.com/productcatalogue/uk/uk_4_5.pdf"
And this has been working, but now I receive this error when making the project file:
Code:
Compile Error. Method or data member not found.
What is going on?????
-
Apr 20th, 2005, 01:29 AM
#2
Re: Adding pdf.ocx in VB6?
-
Apr 20th, 2005, 01:31 AM
#3
Thread Starter
Frenzied Member
Re: Adding pdf.ocx in VB6?
-
Apr 20th, 2005, 01:38 AM
#4
Re: Adding pdf.ocx in VB6?
hpl,
So on what line do you get an error?
-
Apr 20th, 2005, 01:43 AM
#5
Thread Starter
Frenzied Member
Re: Adding pdf.ocx in VB6?
At this line
Form7.Pdf1.src = "http://www.logstor.com/productcatalogue/uk/uk_4_5.pdf"
-
Apr 20th, 2005, 01:53 AM
#6
Re: Adding pdf.ocx in VB6?
hpl,
The is no such property (src) for a picturebox.
-
Apr 20th, 2005, 01:55 AM
#7
Thread Starter
Frenzied Member
Re: Adding pdf.ocx in VB6?
But I have used this code in 3 years without any problems, but since I've installed Acrobat Reader 7.0 everything is going wrong
-
Apr 20th, 2005, 01:59 AM
#8
Re: Adding pdf.ocx in VB6?
hpl,
Then pdf1 is not a VB6 PictureBox. It must be a Acrobat PictureBox and you must add in the Acrobat component or reference if any.
-
Apr 20th, 2005, 02:02 AM
#9
Re: Adding pdf.ocx in VB6?
I found the pdf.ocx, or at least a trial version of it, anyways.
It cost $50 otherwise.
http://www.soft32.com/download_24138.html
-
Apr 20th, 2005, 02:12 AM
#10
Re: Adding pdf.ocx in VB6?
hpl,
Doesn't the pdf viewer get installed when you install Acrobat? Just add the component to your project.
-
Apr 20th, 2005, 02:22 AM
#11
Addicted Member
Re: Adding pdf.ocx in VB6?
You can download pdf.ocx from www.download.com
" I never did anything worth doing entirely by accident.... Almost none of my inventions were derived in that manner. They were achieved by having trained myself to be analytical and to endure and tolerate hard work."
" Many of life's failures are experienced by people who did not realize how close they were to success when they gave up. "
- Thomas Alva Edison-
In God We Trust
-
Apr 20th, 2005, 02:33 AM
#12
Thread Starter
Frenzied Member
Re: Adding pdf.ocx in VB6?
Originally Posted by randem
hpl,
Then pdf1 is not a VB6 PictureBox. It must be a Acrobat PictureBox and you must add in the Acrobat component or reference if any.
How do I add a Acrobat Picturebox, and where do I add the Acrobat component/object?
-
Apr 20th, 2005, 02:40 AM
#13
Re: Adding pdf.ocx in VB6?
hpl,
In VB6, go to Project->Components then select the component. Then you can add it to your form.
-
Apr 20th, 2005, 02:47 AM
#14
Thread Starter
Frenzied Member
Re: Adding pdf.ocx in VB6?
And what is the component name? I can't find it
-
Apr 20th, 2005, 03:00 AM
#15
Re: Adding pdf.ocx in VB6?
hppl,
Adobe Acrobat 7.0 Browser Control Type Library.
-
Apr 20th, 2005, 04:51 AM
#16
Thread Starter
Frenzied Member
Re: Adding pdf.ocx in VB6?
Great, Now it works, thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|