Results 1 to 7 of 7

Thread: Call pdf from VB.NET form

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2003
    Location
    Birmingham, UK
    Posts
    3

    Call pdf from VB.NET form

    Does anyone know of a control I can use to call a pdf from a VB.NET form?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    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 .

  3. #3
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Try this:

    VB Code:
    1. 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!
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2003
    Location
    Birmingham, UK
    Posts
    3
    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?

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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

  6. #6

    Thread Starter
    New Member
    Join Date
    Feb 2003
    Location
    Birmingham, UK
    Posts
    3
    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.

  7. #7
    Member
    Join Date
    Dec 2002
    Location
    NY, USA
    Posts
    52
    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"
    Iouri Boutchkine

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width