Powerbuilder Ole Control Microsoft Web Browser
Posted : admin On 4/19/2019This program shows how to use the Microsoft web browser control. It uses the Web Browser control's Design Mode to allow you to easily create HTML documents. The Browser menu has an item that goes to a Microsoft webpage that explains how to change the IE Browser Emulation mode. The default is IE7. Imagine creating your own Web browser that can. To build your own Web browser application in PowerBuilder. OLE control and select the Microsoft WebBrowser.
I have created an OLE object in a window of Powerbuilder. It is created to generate a report on the data sent from Powerbuilder.Point is that I pass the values from Powerbuilder window to the Ole web browser control via URL. The URL contains the server name as well as the data also.
Its working fine but I do not want to send the data via URL. Is there any other way to send the data from the Powerbuilder to Ole web browser control.
Bing
1 Answer
Instead of the browser OLE control and URL. why don't you simply create a datawindow for that report and place it on the window and retrieve the data or set the data if its coming from some external source.
Not the answer you're looking for? Browse other questions tagged powerbuilder or ask your own question.
I'm using WebBrowser control in a window inside a PowerBuilder 11.5 application. Everything works fine on IE7 and IE8 but the application crashes in IE9 under Windows 7 when you select an item in a tag.
In IE7 and IE8 I added my application to registry key FEATURE_USE_WINDOWEDSELECTCONTROL. In IE9 under Windows 7 64bits did the same and if the REG_DWORD value that corresponds to my application is 1, the application crashes. If the value is 0, the application does not crashes but item selection with mouse is impossible.
Analyzing errors and dump file, error occurs in the mshtml.dll file with an exception code 0xc0000005, including:
Any ideas?.
Update: My app is a 32bit app developed in Windows XP SP3.
Update 2: Exception code is 0xC0000005 (I think it's a memory access violation.
Update 3: Seeking the reason for the error, I've developed an ActiveX control in C# based on the .NET WebBrowser control and I've replaced the Microsoft Web Browser of my PB app with the new one. It also crashes and only in PB, because in a WinForm application (with the same WebBrowser) everything works fine.
Using windbg to analyze dump file:
There may be some incompatibility between PB11.5 and Windows 7 64 bit + IE9?.
Thanks in advance.
2 Answers
Setting this registry value appears to be a workaround for a bug in Internet Explorer 7 (MS KB Article, eHow Description). My guess is that since the root cause lies in the Microsoft codebase, your only option is to work around it by toggling that registry value according to which version of IE is installed. You can use this CodeProject article to help you determine that. If IE7 or IE8 is installed, set the value to 1, otherwise, set it to 0.
GL!
Is it crashing when you're running the compiled .exe or when you're running from the PB IDE?
Microsoft Web Browser Crossword
We are doing a similar thing and it is working for us.
We're having a different issue with the dropdowns and the FEATURE_USE_WINDOWEDSELECTCONTROL. When we set that DWORD value = 1, the dropdowns are selectable, but in some of our HTML screens, we use DIV panels and set z-indexes to overlay content/popups. The dropdowns 'bleed through' and show above the panels. Trying to find a solution...