12-06-2011 06:19 AM
Hi,
we want to impletent a Internet-page with Internet Explorer in our CVI software.
With the following code it is possible to do this:
//
sprintf(WebAdress, "http://%s", IP);
// Get Object Handle from ActiveX control and load initial page
GetObjHandleFromActiveXCtrl(opHandle, OPPANEL_WEBBROWSER, &webHandle);
// Navigate to the ni.com first
INET_IWebBrowser2Navigate(webHandle, NULL, WebAdress,
CA_DEFAULT_VAL, CA_DEFAULT_VAL,
CA_DEFAULT_VAL, CA_DEFAULT_VAL);
But it is not possible to change the size of the Internet-page to a smaller frame. That means, we want a window inside our software which shows an internet page and because the window in our software is smaller that the original internet page we want to resize it. Does anyone know, if this is possible? And how?
Thanks
greetings
Oliver
12-06-2011 06:19 AM
by the way, we use CVI 2010
12-06-2011 10:59 AM
Hi OZI,
You should take a look at samples\userint\activex\webbrowser.cws, for an example of using the IE control as an ActiveX control in a CVI panel.
Luis