I am trying to call this via ColdFusion and am having some difficulty. I can do the above, but when I try to take it from html and convert it back to doc or rtf, I get errors.
The code
(this bit works)
<cfset doc.init(“C:\Temp\Resume-Jamie2.rtf”)>
<cfset doc.save(“C:\Temp\ASPoseResumeConvertTest.html”)>
(this bit does not)
<cfset doc2 = createObject(“java”,“com.aspose.words.Document”) />
<cfset doc2.init(“C:\Temp\test.html”) />
<cfset doc2.save(“C:\Temp\ASPResumeConverted.rtf”) />
The error I get is:
Object Instantiation Exception.
An exception occurred when instantiating a Java object. The class must not be an interface or an abstract class. Error: ‘’.
<cfset doc2.init(“C:\Temp\test.html”) />
<cfset doc2.save(“C:\Temp\ASPResumeConverted.rtf”) />
The init is what’s throwing the error
Any ideas?