Link to home
Start Free TrialLog in
Avatar of João serras-pereira
João serras-pereiraFlag for Portugal

asked on

web controller yelds error on ms/access form

Hi -

On my app I am trying to use the web browser to open a local html page.

I am attaching the page as it is.

User generated image

The, itself runs perfectly on all the browser I have tested and it is a very dimple derivative of the google charts initial  sample codes.

However, run running under the web broser I am getting error messages as follows:

User generated image
User generated image

User generated image


can anyone help?
testCharts.html
ASKER CERTIFIED SOLUTION
Avatar of Jim Dettman (EE MVE)
Jim Dettman (EE MVE)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of João serras-pereira

ASKER

Hi

Now behaviour became a bit tricky..

The file itself opens correctly when I use EDGE,

Please check the screenshots:

User generated image

User generated image
and it is interactive! it sit on my C drive (I am attaching the file (TestCharts) duly corrected.

The 2 screenshots are sent to document interactivity.

Now on the webbrowser control I have:

User generated image

User generated image

User generated image
then the form code is:

Private Sub Box1_Click()

    Me.wbc_chartPsichProfile.ControlSource = "C:\t\testCharts.html"

    'Do While wbc_chartPsichProfile.ReadyState <> READYSTATE_COMPLETE
    '    DoEvents
    'Loop

End Sub

Private Sub Form_Open(Cancel As Integer)

End Sub

Open in new window


When I run exactly the same file I am getting: a blank form...

User generated image

any ideas?
testCharts.html
'got it working (!!!) - partially at least!

1. replaced the control by another onde that I had on 2016 project:

User generated image

The file is the same (edited with your support) as per what I have sent before. Security keeps a problem but now, when I accept the Microsoft Warning, it displays a correct chart...
Source code now is:


Private Sub Box1_Click()

    ctlWebBrowser.Navigate ("about:blank")
    DoEvents
    ctlWebBrowser.Navigate ("C:\t\testCharts.html")

End Sub

Open in new window

You still stuck on this or no?

Again, try:

ctlWebBrowser.Navigate ("\\<ComputerName>\C$\t\testCharts.html")

Jim.
Sort of.....

It now opens the page after issuing the warning ( I did set rendering as Edge). But no way to drop security ( I have tried all suggestions including modifying the internet security options dropping down ALL security (a crime I know). The only thing I did not do was modifying the register (the app must run on a different computer and I just hate to modify the registry

....

Will try again tomorrow at dawn (Lisbon time)
Kindest regards
Joao