|
|
Home / Groups / ColdFusion Talk (CF-Talk)
Converting simple Java code to ColdFusion> That's weird. FileInputStream is concrete and from the java code > Presentation should be concrete too. > > Do you get a different error if you break it out into separate lines? > > <cfset fis = CreateObject("java", "java.io.FileInputStream"). > init("c:\test\destination.ppt")> > <cfset pres1 = CreateObject("java", "com.aspose.slides.Presentation"). > init( fis ) > Thanks a million for your help Janet, it seems setting it up like so have solved the problem. <cfset pres2 =CreateObject("java", "java.io.FileInputStream").init("c:\test\destination.ppt")> I can now get access to the getSlideByPosition() method, I'm sure I'll find out down the road if it has written over the slides.presentation object :-) but so far so good as I can access the method. |
Mailing Lists
|
Latest Fusion Authority Articles
|