Results 1 to 7 of 7

Thread: how to open a html and a pdf file with my application

  1. #1
    Join Date
    Jul 2005
    Posts
    93
    Rep Power
    0

    Default how to open a html and a pdf file with my application

    i am working on an application in which i have created two documents.

    and help file (html) and a tutorials (pdf).

    In my menu i have two buttons, tutorials and help, and i dont know how to open these two files (help files html, pdf file tutorial )with my program so that i can view them from my application.

    could u please help me.

  2. #2
    girldemsuga Guest

    Default

    I am not sure about PDF file but i'm sure there must be a way to do it.

    What VB are writing this spftware in?

    In VB6, after opening the project, press "CTRL + T" and you will be brought to the Component Dialog. From there select "Microsoft Internet Controls".

    Me.WebBroweser.Navigate "C:\about.html"
    In VB.Net, there is also a "WebBrowser" control but i have never used it so you'll have to figure it out. (Should be similar to VB6)

  3. #3
    Join Date
    Sep 2004
    Posts
    1,905
    Rep Power
    21

    Default

    In VB.Net, there is also a "WebBrowser" control but i have never used it so you'll have to figure it out. (Should be similar to VB6)
    This is a very elegant approach
    Let's act on what we agree on now, and argue later on what we don't.
    Black men leave Barbeque alone if Barbeque don't trouble you

  4. #4
    girldemsuga Guest

    Default

    Quote Originally Posted by crosswire View Post
    This is a very elegant approach
    Is there something wrong with what i said?

    in VB.Net, the approach is the same

    WebBrowser1.Navigate("www.google.com")
    or


    WebBrowser1.Navigate("C:\about.html")
    Last edited by Arch_Angel; Apr 18, 2007 at 05:43 PM. Reason: merged multiple posts

  5. #5
    Join Date
    Sep 2004
    Posts
    1,905
    Rep Power
    21

    Default

    No there is nothing wrong.

    I was just thinking the exact same thing at the same time. I try the control just before posting to see if it worked on pdf and It was neat. Anchored it in the window and navigated to a pdf "C:\help.pdf" and the pdf plugin worked nicely.

    But on reply I see you answered already. Felt like I did test for nothing.
    Let's act on what we agree on now, and argue later on what we don't.
    Black men leave Barbeque alone if Barbeque don't trouble you

  6. #6
    Join Date
    Dec 2002
    Posts
    500
    Rep Power
    0

    Default

    Systems.Windows.Forms.Help

    method Help.ShowHelp can be used for chm files ad html files
    Cultured in Aggression and Koding like a Warrior!!
    “Common sense is instinct. Enough of it is genius.” - George Bernard Shaw.
    "The significant problems we face cannot be solved by the same level of thinking that created them." - Albert Einstein

  7. #7
    Join Date
    Jun 2007
    Posts
    678
    Rep Power
    0

    Default

    If you want to add pdf simply use a ActiveX component.

    PDFViewer OCX is an ActiveX component which enables your application to display and interact with PDF files. Simply place the control on your form, set the Path property, and you are all set! PDFViewer OCX is identical to Adobe Acrobats PDF Reader program. http://www.softforall.com/SoftwareDev/ActiveX/PDFViewer_OCX08010175.htm


    As soon as you make something idiot proof, Nature makes better idiots!!!

    Think big, think smart, think linux

Posting Permissions

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