Hi.
When you publish your form using InfoPath, you will have an XSN file. This is a cab file with all the required InfoPath files. If you extract this, you will find the files you need in order to follow the solution link provided by Virgul.
cheers. Scott.