Add an XSLT to infopath model (XSN)

G

Guest

Hi,

I want to put my XSLT in my XSN. I want to make an xsl transformation
when I am in infopath:

XslTransform xslt = new XslTransform();
xslt.Load("myxslt.xslt");

That can be done?

How can I do for call my xslt in my code is it correct like this?

Thanks
 
G

Greg Collins [InfoPath MVP]

Your code would work as it does in any other situation... but the trick is that you need to make sure that your XSLT file is included as part of the form template resources. Otherwise you will not be able to load it because the template will refuse to believe that it exists.

--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


Hi,

I want to put my XSLT in my XSN. I want to make an xsl transformation
when I am in infopath:

XslTransform xslt = new XslTransform();
xslt.Load("myxslt.xslt");

That can be done?

How can I do for call my xslt in my code is it correct like this?

Thanks
 

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