com.ms.wfc.html applications developed in VJ # is not loading in MSHTA.exe as HTA

com.ms.wfc.html applications developed in VJ # is not loading in MSHTA.exe as HTA. we have a simple application as shown below, this one seems to work in the IE browser and not in HTA (mshta.exe) , this used to work before in MSHTA.exe when the project is in VJ++ 6.0 , please advise on how to run this in mshta.

import com.ms.wfc.html.*;
import com.ms.wfc.core.*;
import com.ms.wfc.ui.*;

public class Class1 extends DhDocument {

DhText createdText;
DhText boundText;

public Class1() {

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>




Answer this question

com.ms.wfc.html applications developed in VJ # is not loading in MSHTA.exe as HTA

  • Curtis Zeiszler

    Hi,

    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" />Diganta Roy



  • Yashman

    we have contacted the microsoft support and it seems they have opened a bu report. so can you throw some light on how this will be fixed is it something that IE need to allow J# controls to run in HTA just by flipping a flag or something which i think woould be easy if that;s the case or is it something thet vj# runtime needed to be changed inorder to accomadate HTA . please advise as it would be useful in getting it understand on how this would be fixed and how long will it take so that we can understand better and plan ourselves going forward.

  • boonpin

    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 Sad . 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



  • com.ms.wfc.html applications developed in VJ # is not loading in MSHTA.exe as HTA