Make a xslt transformation in jscript from the current form

V

virgul

Hi,

I try to transform my infopath form with a Xslt with jscript and after
I want to print it!

My Jscript code:

function CTRL330_5::OnClick(eventObj)
{

var XMLFileDOM = XDocument. ?????????

//Get the transform that is stored as a secondary data source.
var XSLTFileDOM = XDocument.GetDOM("XSLTFile");

//Transform XMLFile by using the style sheet that is named XSLTFile.
var TransformedDOM = new ActiveXObject("MSXML2.DomDocument.5.0");
TransformedDOM.async = false;
TransformedDOM.validateOnParse = true;
TransformedDOM.loadXML( XMLFileDOM.transformNode(XSLTFileDOM));
}

But I don't know how to select my current form for do the
transformation. Has anybody an idea? Is it possible to do that? My xslt
is a rtf view make with Altova Stylevision.

Just one things any body know which is the syntax for print the current
form.

Thanks all

I hope that is possible!

Thierry

++
 
B

Brian Teutsch [MSFT]

XDocument.DOM is an MSXML DOM. Just use it like you're trying to use
TransformedDOM.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top