Slides still say Eval

We’re using Coldfusion and can’t get Aspose to recognize our license so the Eval message appears on all slides.

Here’s a simple Hello World script that we tried that still shows as eval edition:

<!— Create a reference to an aspose object —>

<!— Create the object and initialize —>

<!— Initialize License —>

<cfset LicfileI = LicFile.init(JavaCast(“string”,“D:\apose\Aspose.Slides.lic”))>

<cfset license.setLicense(LicfileI)>




<cfset rect.getLineFormat().setShowLines(false)>
<cfset rect.addTextFrame(“Hello World!”)>
<cfset pres.getSlides().removeAt(0)>
<cfset FileOutput = CreateObject(“java”, “java.io.FileOutputStream”).init(“D:\test\test2.ppt”)>
<cfset pres.write(FileOutput)>
<cfset LicfileI.close()>
<cfset FileOutput.close()>

Dear clesssmith,

Thank you for considering Aspose.Slides.

You should set license before using any of the Aspose.Slides API.

In your code, it looks, you are creating Presentation object before setting license.

Thanks for your response. We tried your suggestion and it did not work. The Evaluation message is still appearing on each slide.

Here’s how the code now starts:

<!— Initialize License —>

<cfset LicfileI = LicFile.init(JavaCast(“string”,“D:\SDS_CustomTags\apose\Aspose.Slides.lic”))>

<cfset License.setLicense(LicfileI)>

<!— Load in needed objects —>






rest of code below…

Please try this code:

<!— Initialize License —>

<cfset LicfileI = LicFile.init(JavaCast(“string”,“D:\apose\Aspose.Slides.lic”))>

<cfset license.setLicense(LicfileI)>

<!— Create a reference to an aspose object —>

<!— Create the object and initialize —>




<cfset rect.getLineFormat().setShowLines(false)>
<cfset rect.addTextFrame(“Hello World!”)>
<cfset pres.getSlides().removeAt(0)>
<cfset FileOutput = CreateObject(“java”, “java.io.FileOutputStream”).init(“D:\test\test2.ppt”)>
<cfset pres.write(FileOutput)>
<cfset LicfileI.close()>
<cfset FileOutput.close()>

I tried the code you suggested and it still doesn’t work. The following is still on each slide:

"

Evaluation only.
Created with Aspose.PowerPoint.
Copyright 2004 Aspose Pty Ltd.

"

This is an old message so we thought our software could be too old for our license but we downloaded the latest version (1.7.2.0) from your site. Still same results.

One thing of note, however, is the XML in our license file says our LicenseVersion is 2.0. Does that need to coincide with the version of the software we’re using?

I have sent you email with code example.

Following our IM session this morning, we moved the .jar file to the CF default for .jar files and put the .lic file in it’s own directory (moving it from the customtags directory). We gave CF a reboot and magically, it works! Thanks for your help. I’m sure we’ll be bugging you on some other ways we’re using Aspose. :wink: