Does anyone know of a control I can use to call a pdf from a VB.NET form?
Printable View
Does anyone know of a control I can use to call a pdf from a VB.NET form?
look at this , it may helpsQuote:
Originally posted by moonsmartie
Does anyone know of a control I can use to call a pdf from a VB.NET form?
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 .
Try this:
VB is smart enough to know that this is a pdf document and open the assocciated pdf displayer (if you have one installed)VB Code:
Process.Start("c:\folder\folder\mypdf.pdf")
I think!
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 nowQuote:
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?
Many thanks - I've looked at that thread and will give pdf.ocx a try.
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"