Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How do I do to call a PDF file in VB.NET

Previously in VB 6 I used a OLE object to call Adobe acrobat reader for opening a PDF document;

FM_frmMain.DefInstance.OLE1.CreateLink((VB6.GetPath & "attachedFileswhatever.pdf"))

How do I do this in VB.NET? Any idea?

Thanks in advance.



Comments

  • ultimageultimage Member Posts: 119
    [b][red]This message was edited by ultimage at 2005-5-4 10:57:34[/red][/b][hr]
    [b][red]This message was edited by ultimage at 2005-5-4 10:57:7[/red][/b][hr]
    : Previously in VB 6 I used a OLE object to call Adobe acrobat reader for opening a PDF document;
    :
    : FM_frmMain.DefInstance.OLE1.CreateLink((VB6.GetPath & "attachedFileswhatever.pdf"))
    :
    : How do I do this in VB.NET? Any idea?
    :
    : Thanks in advance.
    :
    :
    :
    :
    do something like this:

    [code]
    Dim processOpenPDF As New Process
    processOpenPDF.StartInfo.FileName = "c:myPDFfile.pdf"
    processOpenPDF.Start()
    [/code]

    that should do it.
    Ultimage
    ultimage@insightbb.com





Sign In or Register to comment.