House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Talk (CF-Talk)

Converting simple Java code to ColdFusion

Author:
Jide Aliu
11/16/2007 08:21 PM

> 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.


Search cf-talk

February 11, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29