LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Launch HTM file from a .uir file

I would like to know if it is possible to launch an htm file and display it through a UI pannel.  I basically need to launch a file which provides the user instructions, I then also launch a window with GO and NoGO command buttons so that the operator can click go once the actions have been complete.  I must adhere to this order.  I had relative success with the LaunchExecutableEx()call I then launched a DisplayPanel with the go and nogo command buttons.  My problem is that the .htm file takes considerable more time to display thatn that of the Display panel.  It seems to me that I may have better synchronization if I instead launch two Display panels.  I would like to keep the formating of the .htm file so I am hesitant to use a text box, any ideas would be appreciated.
 
 
0 Kudos
Message 1 of 3
(3,135 Views)

If you want to provide help for users I suggest looking at the function:

 

ShowHtmlHelp();

 

This will display a windows html help file. (.chm)

You can download a free utility from microsoft to help you make these files:

 

http://office.microsoft.com/en-us/assistance/HA011362731033.aspx

 

 

0 Kudos
Message 2 of 3
(3,114 Views)
Hello merenguero,
Regarding your question, it is definitely possible to embed a HTML document into a CVI user interface. In particular, you would use the Internet Explorer ActiveX controls to do this. If you right click on the user interface panel, you will see an entry for "ActiveX". From this option, you will be able to add ActiveX objects to your user interface panel. Also to demonstrate how to use the Internet Explorer ActiveX Automatiion Library, I would suggest taking a look at an example I created to count the number of frames on a given webpage. It should give you some direction on how to display a HTML file on a panel.

In addition, I would suggest taking a look at the iedemo shipping example that is located in your CVI install directory under /samples/activex/ie. This example demonstrates how to use the Internet Explorer ActiveX functions.

Hope that helps!

Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 3 of 3
(3,106 Views)