Web browser for desktop and device

RacingDog

Active Member
Licensed User
Nope, can't see anything. I guess the corporate rule writers have changed their minds again.
 

ELVESIS

Member
Licensed User
Longtime User
I used webbrowser.dll (version 1.2) in my project.It's working on WM 6.0 or 6.1.But not working on WM 6.5...!!!??? :sign0085:
 

ELVESIS

Member
Licensed User
Longtime User
I'm sorry for shorty explain :sign0013: :sign0089:

Error message pictures athached below...

But this application nomally working on WM 5.0 , 6.0 or 6.1
 

Attachments

  • Photo0962.jpg
    Photo0962.jpg
    19.2 KB · Views: 11

agraham

Expert
Licensed User
Longtime User
Apparently WM 6.1.4 and 6.5 use a new Internet Explorer 6 based browser rather than the old Pocket Internet Explorer and this causes some problems with the Compact Framework v3.5 WebBrowser control. I susppect this why your application doesn't work. I don't have a WM6.5 device myself so I can't try it out.

There is an updated NETCF v3.5 CAB, whose version is v3.5.9198 that seems to replace the new CF IE6 WebBrowser control with the previous one. If you can locate that it might solve your problem. Also if your device has only CF 3.5 then trying to install CF 2.0 might also help - providing the phone will accept the install.

EDIT:- Further reading makes me think that installing CF 2.0 will probably have no effect on the problem as it calls the default browser which is IE6 on WM 6.5.
 
Last edited:

aroom

Member
Licensed User
in webBrowser object, I make some html control like buttons and textboxs, can i use Javascript function call back host Subroutine define in Basic4ppc?
thanks a lot.
 

pdabasic

Active Member
Licensed User
show webbrowser as image

Hello Agraham!

I want to make an image from the navigated url like in your htmlpanel libray.
I tried to use the dzimage.controlcapture function but it's get an error message:
B4X:
cap.Controlcapture(web.Controlref,0,0,web.width,web.height)
Error desceiption:
A generic error oncurred in GDI+
...

How can I solve it?

Now it's working. I used the old dzimage library. Sorry

Thank you!
 
Last edited:

pdabasic

Active Member
Licensed User
Hello Agraham!

I use your dll but when no internet or the navigated url doesn't response or can't find the page I must to navigate my browser to an other page.

How can I catch the status of the browser like document completed?

Thank you!
 

PepSoft

Member
Licensed User
Longtime User
Hello:

I have a problem with the images.
With Url pictures look good.
But with "Document text" I do not see the images.

B4X:
WebV.DocumentText="<html>
<head>
</head>
<body>
<h1>Test Web</h1>
<img src="imagtest1.jpg" alt="Test">
</body>
</html>"

Someone can help me.
thanks

PepSoft
 

Attachments

  • VisorWeb.zip
    5.6 KB · Views: 11

Basic4Life

Member
Licensed User
Hello:

I have a problem with the images.
With Url pictures look good.
But with "Document text" I do not see the images.


Someone can help me.
thanks

PepSoft


There are a couple of problems with your code.
The most important one is that you are not referencing a filepath for imagtest1.jpg

That means the browser doesn't know where to get the image.
If you load a html file, the webbrowser automatically assumes the files in the document are located in the same folder as the document if there's only the filename.

When you replace the DocumentText with a string, the webbrowser doesn't have any information about locations of files.

The easiest solution is to simply enter the full filepath in the Textbox.
For Example "file://C:/.../imagtest1.jpg"

You could also save the Textbox text to a temporary html file and have the browser load that file instead of the text directly.

But you can also add the filepath to the textbox text.
I added an example of the last method.

I also noted that the ' " ' are lost in the Textbox when the text is entered in the Form Designer in the IDE.
 

Attachments

  • VisorWeb_new.zip
    6 KB · Views: 13
Top