|
-
Feb 7th, 2003, 06:30 AM
#1
Thread Starter
New Member
Call pdf from VB.NET form
Does anyone know of a control I can use to call a pdf from a VB.NET form?
-
Feb 7th, 2003, 06:53 AM
#2
Sleep mode
Re: Call pdf from VB.NET form
Originally posted by moonsmartie
Does anyone know of a control I can use to call a pdf from a VB.NET form?
look at this , it may helps
btw , I had an OCX control and used to run in vb6 .I'll look for it and try to send it here if it's working .
-
Feb 7th, 2003, 07:07 AM
#3
Hyperactive Member
Try this:
VB Code:
Process.Start("c:\folder\folder\mypdf.pdf")
VB is smart enough to know that this is a pdf document and open the assocciated pdf displayer (if you have one installed)
I think!
-
Feb 7th, 2003, 07:16 AM
#4
Thread Starter
New Member
Thanks. But I don't want to create a new pdf, I just want to display one that already exists, but display it within a form.
Is this possible?
-
Feb 7th, 2003, 07:21 AM
#5
Sleep mode
Originally posted by moonsmartie
Thanks. But I don't want to create a new pdf, I just want to display one that already exists, but display it within a form.
Is this possible?
as far as I know , it's possible .There's a VB6 OCX and DLL that can show pdf files .I must look for it now
-
Feb 10th, 2003, 09:51 AM
#6
Thread Starter
New Member
Many thanks - I've looked at that thread and will give pdf.ocx a try.
Last edited by moonsmartie; Feb 10th, 2003 at 09:54 AM.
-
Feb 10th, 2003, 11:53 AM
#7
Member
Right-click on the toolbox and then click Customize, add
the COM component, Acrobat Control for ActiveX, and then
in the code put:
AxPdf1.src = "filename.pdf"
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
|