Problem with TWebBrowser component

Posted on 2004-11-24
Last Modified: 2010-04-05
I have created a program that contains a TWebBrowser component. On my computer and other PC's that I have tested on, everything works well, but in an environment where it is meant to be used, it seems to refuse to retrieve its information from my Internet database. I have tried to toggle the property RegisterAsBrowser, but this does not help. There is a suspicion that the firewall of the company in question has something to do with it, but I don't know. Is there a setting that I could use, or is there a workaround to be made - or do I have to require that the firewall is set in specific ways?
Question by:haab
    LVL 13

    Expert Comment

    change the internet settings on the machine that you are using, to use the Proxy server (I assume you have one), once you set that it should ask you for a username/password when you run your application and should work fine after than, unless you are trying to use other ports for communicating
    LVL 26

    Expert Comment

    Without knowing more specifics about your setup, we can only guess.

    Author Comment

    Well, I don't know about the setup, that's the problem. I thought the TWebBrowser would work as if it was the IE itself, but on one possible customer's PC it just refuses to go online.
    LVL 26

    Expert Comment

    It should use IE's proxy settings if it has any because it is just a wrapper for IE's browser.

    Author Comment

    It seems reasonable to do so, but how do I set these settings? Or, put in another way; where can I find documentation for the TWebBrowser component? Thank you this far; I hope I will be able to solve the problem soon.
    LVL 26

    Accepted Solution

    It uses them automatically, you don't have to set anything.
    To set them programatically, you have to find out how IE
    sets them in the registry.

    The values that configure the Internet proxy setup are
    located in the key below. To change which proxy server is
    used, modify the value of 'ProxyServer' to equal the
    server and port combination. For example if your proxy
    server was called \PROXY and it was running on port 80
    then the setting would equal 'PROXY:80'.

    You may also need to set the value of 'ProxyEnable' to
    equal '1' for proxy enabled or '0' for disabled.
    Setting the value of 'ProxyOverride' to equal '<local>'
    will stop internal addresses from going through the

    Changes should take effect immediately.

    User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\
               CurrentVersion\Internet Settings]
    Name: ProxyServer, ProxyEnable, ProxyOverride
    Type: REG_SZ (String Value)
    Value: Server:Port

    The setting below allows you to change the scope of the
    Internet proxy configuration and specify whether all
    users should share system-wide or individual settings.

    Create a new DWORD value, or modify the existing value
    called 'ProxySettingsPerUser' using the settings below.
    Exit your registry, you may need to restart or log out
    of Windows for the change to take effect.

    System Key: [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\
                Internet Settings]
    Name: ProxySettingsPerUser
    Type: REG_DWORD (DWORD Value)
    Value: (0 = whole machine, 1 = per user)

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    Suggested Solutions

    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now