import
com.ms.wfc.html.*;import com.ms.wfc.core.*;
import com.ms.wfc.ui.*;
public
class Class1 extends DhDocument {DhText createdText;
DhText boundText;
initForm();
}
private void initForm(){
createdText =
new DhText();createdText.setText("Created Text");
boundText =
new DhText();boundText.setID("bindText");
boundText.setBackColor(Color.LIGHTGRAY);
}
/*** Client-side only.
*
* Here, the underlying HTML document is available for inspection. Add any code
* that wants to get properties of elements or inspect the document in any other way.
*/
protected void onDocumentLoad(Object sender, Event e){
setBoundElements(
new DhElement[] {boundText}); /*** setNewElements() takes a list of DhElements and adds them to the HTML document.
*/
setNewElements(
new DhElement[] {createdText});}
}
Page1.htm
-------------
<HTML>
<HEAD>
<TITLE>Document Title</TITLE>
</HEAD>
<BODY>
<OBJECT CLASSID="CLSID:CF83EA5E-0FFD-4476-9BF7-6C15F7F8BDCF" height=0 width=0 … VIEWASTEXT ID="Object1">
<PARAM NAME=CODECLASS VALUE=DotNETTest_NET.dll#Class1>
<PARAM NAME=VJSVERSION VALUE= 1.0.3710>
</OBJECT>
<!-- Insert HTML here -->
<SPAN id="bindText">This is bound text.</SPAN>
</BODY>
</HTML>

com.ms.wfc.html applications developed in VJ # is not loading in MSHTA.exe as HTA
huh
Thanks for ur reply but this is not really an acceptable solution to us, beucase all our wfc applications are designed to run in MSHTA.exe
. so if there is no migration path now then we are pretty much doomed. so please us know if there is anything you can provide like a hot fix or something to make it work. please let me know so that we can open a support ticket with microsoft if u think that's the right way to pursue this issue.
Thanks
raja
saeedbaghestani
ruminant
Hi,
Diganta Roy
This scenario is not supported as of today in J#. You can host WFC controls only in browser, directly.
We shall consider this in our plans for the next version of J#.
Thanks,
< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />