We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Unable to work with apose.slides

Hi,
i want to use apose.slides to export my report to ppt file. one thing that seems to be confusing is that, is apose.slides is also using jaspereports api or all the api for exporting the report to ppt file are included in the same package. i had tried the trial version of apose.slides and came to the conclusion that it is using jasperreport exporting api’s to export different parts of the reports. like box and other things. for example jasperreports are facilitating apose.slides to export stuff on the report.

let me make my question presice. can i use apose.slides without using api’s for jasperreprots? becoz it seems to me that apose.slides is using jasperreports2.0.5 api for jasperreports. please suggest.

thanks,
MBJ

Hello,

We have 3 different product lines:

  • Aspose.Slides for Java and .NET which have own api and don’t use any third-party products like JasperReports.You can use it if you need full access to a presentation file and you want to create whole report by yourself.
  • Aspose.Slides for JasperReports is JasperReports exporter. It can only work together with JasperReports or JasperServer to export jrxml/jrprint reports to ppt format.
  • Aspose.Slides for Reporting Services is MS SQL Server extension which allow export SQL Server reports to ppt format.
Also we are going to release Aspose.Slides for BIRT soon which is ppt/pptx exporter for Eclipse BIRT reporting engine.

So you should check you requirements and decide what product to use.

Alexey,
thanks for responding quickly. the probelm is that i am working with jasperreports and the api’s i am using for generation reports are 2.0.2. i had made many changes to work the api’s according to the client’s request. now the problem i am facing is Apose.Slides for JasperReports uses Jasper api’s for the version 2.0.5 or higher now if i upgrade my existing api’s i will have to change whole application scinarios. kindly suggest if i can use Apose.Slides for JasperReports with my existing jasperreports2.0.2 api’s.

thanks,
MBJ

Hello,

Aspose.Slides tested with JasperReports 2.0.4 and 2.0.5. Since differences between 2.0.2 and 2.0.4 are minimal so if you didn’t change exporting engine too much, I think it should also work with 2.0.2 without any problems.

That is JasperReports 2.0.4 release notes:
JasperReports 2.0.4 adds support for Dotted and Double line style. It
also adds warning messages to signal the use of deprecated pen and box
attributes and tags in JRXML. All of the samples included in this
version have been refactored.

Hey Alexey,
now i am getting this error trace
Caused by: java.lang.IncompatibleClassChangeError
at com.aspose.slides.jasperreports.e.a(SourceFile:69)
at com.aspose.slides.jasperreports.n.a(SourceFile:31)
at com.aspose.slides.jasperreports.JRPptExporter.a(SourceFile:160)
at com.aspose.slides.jasperreports.JRPptExporter.a(SourceFile:61)
at com.aspose.slides.jasperreports.JRPptExporter.a(SourceFile:148)
at com.aspose.slides.jasperreports.JRPptExporter.a(SourceFile:230)
at com.aspose.slides.jasperreports.JRPptExporter.exportReport(SourceFile:194)

it seems to be the mismatch of the compliance level. i am using jdk1.5.0_11. it looks like the version of the jar or the binary files i am using is incompatible to the deployment version. can you please help in this regard. please let me know what version of java is being used to create the binary for the files included in the jar file i.e, Aspose.Slides.JasperReports.jar file. kindly correct if i am wrong.

thanks,
MBJ

Hello,

Aspose.Slides for JasperReports compiled with JDK 1.6.0_06 but with options source=“1.5” target=“1.5”. IncompatibleClassChangeError can’t be thrown because of wrong jdk version, it usually appears if some class replaced with another version with different methods.

I’m afraid com.aspose.slides.jasperreports.e.a(SourceFile:69) line refer to the method inside JasperReports

net.sf.jasperreports.engine.JRCommonElement.getMode()


Dear you have identified the problem but not the reason for it. kindly tell me what i have to do to cope with this error. i am now using JasperReport 2.0.4 api and it is still throwing the same error. as mentioned in the previous post i am sending the stack trace again… please have a look at it and ellaborate… thanks…

Exception in thread “main” java.lang.IncompatibleClassChangeError
at com.aspose.slides.jasperreports.e.a(SourceFile:69)
at com.aspose.slides.jasperreports.n.a(SourceFile:31)
at com.aspose.slides.jasperreports.JRPptExporter.a(SourceFile:160)
at com.aspose.slides.jasperreports.JRPptExporter.a(SourceFile:61)
at com.aspose.slides.jasperreports.JRPptExporter.a(SourceFile:148)
at com.aspose.slides.jasperreports.JRPptExporter.a(SourceFile:230)
at com.aspose.slides.jasperreports.JRPptExporter.exportReport(SourceFile:194)
at com.sbs.salesstrat.common.web.action.TextApp.main(TextApp.java:176)

Hello,

I think you still use JasperReports 2.0.2. Probably you have old jar in the classpath or may be some old changed classes.

I have checked 2.0.2, 2.0.3 and 2.0.4 sources. There is no JRCommonElement class in the 2.0.2 version at all so Aspose.Slides for JasperReports definitely won’t work with it. This class appeared first time in the 2.0.3. So in case you really use JasperReports 2.0.4 then you can’t get such exception. Could you please check classpath again.

aused by: java.lang.NoClassDefFoundError: com/aspose/slides/lE (wrong name: com/aspose/slides/le)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at com.sbs.salesstrat.jasper.web.action.LogingAction.Login(LogingAction.java:59)

i had some how managed to work with dual api’s. i am getting the above error now. i am also using apose.words.jasperreports that is not causing any problem
but when i use apose.slides.jasperreports it throws me this error… please help in this regard

further i didnt understand one thing when i explored apose.slides.jasperreports i found files with the same name like (le and lE)/ (bx/bX ) .class files. when i extract that jar windows say file already exits do you want to replace if yes / No it keeps one version of the file either with small case or capital case…


regards
MBJ

Hello,

You shouldn’t extract class files from jar. Class names in Java are case sensitive. That is absolutely normal if you have 2 classes let’s say “TestClass” and “testclass” in one package. In this case jar will contain both TestClass.class and testclass.class files. Jar and zips support it but windows file system doesn’t.

I have just checked Tomcat bug tracker and it looks like that is old Tomcat’s bug.
https://issues.apache.org/bugzilla/show_bug.cgi?id=39093
https://issues.apache.org/bugzilla/show_bug.cgi?id=47323

If necessary I can create new jar file with disabled mixed case of obfuscated file names although I think everything should work fine if you don’t extract classes. Btw, latest version contains also beta version of JasperReports PPTX exporter.

Hi,

Caused by: java.lang.NoClassDefFoundError
at com.aspose.slides.eb.(SourceFile:79)
at com.aspose.slides.cE.(SourceFile:25)
at com.aspose.slides.jasperreports.o.a(SourceFile:103)
at com.aspose.slides.jasperreports.k.a(SourceFile:152)
at com.aspose.slides.jasperreports.k.b(SourceFile:100)
at com.aspose.slides.jasperreports.k.a(SourceFile:63)

at com.aspose.slides.jasperreports.JRPptExporter.a(SourceFile:124)
at com.aspose.slides.jasperreports.JRPptExporter.a(SourceFile:65)
at com.aspose.slides.jasperreports.JRPptExporter.a(SourceFile:148)
at com.aspose.slides.jasperreports.JRPptExporter.a(SourceFile:230)
at com.aspose.slides.jasperreports.JRPptExporter.exportReport(SourceFile:194)
at com.sbs.salesstrat.jasper.web.action.LogingAction.Login(LogingAction.java:70)

i am getting above exception. the packages that are bold are not present in the jar file that i downloaded and is in use. kindly send me the correct jar file so that i can test it and we can purchase the Aspose. futher i tried to download 1.2.0.0 version from you website and it is saying the release is 1 year old and cannot be downloaded please select some latest release to download, and there is no latest release for jasperreports. futher, i tried right click and select download option, unexpected error is thrown.

NOTE : I am had tested aspose.words.jasperreports and it is running fine. please help me regarding slides issue.
I am also attaching the package that i am having and is being used.


Thanks,
Muhammad Bilal

Hello,

Attached version is correct. com.aspose.slides.jasperreports.k.class exists in the jar so there is no problem.

I think the problem is you don’t have JAI and JAI-IO in the classpath. Actually, you only need jai_codec.jar and jai_core.jar. I have attached it here for download.

We are going to release new Aspose.Slides for JasperReports version in October. It will support also PowerPoint 2007 PPTX export format.

thanks… i just want to ask if current aspose api’s works with 3.6 api’s for jasperreports.

Hello Bilal,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your interest in Aspose.Slides.

Currently supported versions of Jasper Reports with Aspose.Slides for Jasper Reports are Jasper Reports 2.0, 3.0 or higher (tested with 2.0.4, 2.0.5 and 3.0). For more information, please follow this link. Please try using our product with Jasper Reports 3.6 and Incase, If you encounter any problem with use of our, please share with us.

We are sorry for your inconvenience.

Dear,

I have sent you an email regarding the problem i am facing. but i think you didnt revieved that. i am facing the problem using the latest version of aspse.slide that is 1.3.0. my intention is to buy the latest release. as you know or you can know from the above thread about the current version i am using in my application. now i want to buy the latest version of aspose for jasperreports and want to use it in my project. i have included the jar for the latest version and its thowing me the JIA codec error. please help me in that

please let me know is this release is in stable position and have the baackward compatibility with jasperreports api’s. looking for the quick response.

IOException occurs when search for propriate codecs.

MBJ

Hello Dear,

I have received the email sent by but we will really appreciate if you please kindly raise your queries over the forum as it will help others as well for reference if they have some what similar issue. The JIA codecs error that you are experiencing is probably due to missing class path reference of 2 JAI jar files.

  • jai_codec.jar
  • jai_core.jar

The jai_imageio.jar is not necessary for JasperReports versions. Also, the latest version of Aspose.Slides for JasperReport 1.3.0 is backward compatible with JasperReports 2.0.5 API.

For next part of your query in which you have requested about package and pricing details, our Aspose.Purchase team will share the details with you shortly.

Thanks and Regards,

Dear Mudassir,
thanks for your reply. i have no issues of classpaths. the problem that i have mentioned earlier is occuring on some machines. for one machine the deployment is going good . the release is working fine and have no errors. how ever for other machines. i have tested for two machines it throws me this error if JAI. i am qouting the exception here. please have a look at it.

2010-06-05 20:04:21,943 INFO [STDOUT] Error: IOException occurs when search for propriate codecs.
2010-06-05 20:04:21,943 INFO [STDOUT] Occurs in: com.sun.media.jai.codec.ImageCodec
2010-06-05 20:04:21,943 INFO [STDOUT] java.io.EOFException
2010-06-05 20:04:21,943 INFO [STDOUT] at com.sun.media.jai.codec.SeekableStream.readFully(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.sun.media.jai.codec.SeekableStream.readFully(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.sun.media.jai.codec.ImageCodec.getDecoderNames(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.sun.media.jai.opimage.StreamRIF.create(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at javax.media.jai.FactoryCache.invoke(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at javax.media.jai.OperationRegistry.invokeFactory(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at javax.media.jai.registry.RIFRegistry.create(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at javax.media.jai.RenderedOp.createInstance(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at javax.media.jai.RenderedOp.createRendering(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at javax.media.jai.RenderedOp.getWidth(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.sun.media.jai.codecimpl.PNGImageEncoder.encode(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.aspose.slides.jasperreports.obfuscated.km.(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.aspose.slides.jasperreports.obfuscated.anq.(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.aspose.slides.jasperreports.obfuscated.anr.do(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.aspose.slides.jasperreports.obfuscated.anr.if(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.aspose.slides.jasperreports.obfuscated.bcf.do(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.aspose.slides.jasperreports.obfuscated.bcf.if(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.aspose.slides.jasperreports.obfuscated.bcf.do(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.aspose.slides.jasperreports.JRSlidesExporter.do(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.aspose.slides.jasperreports.JRSlidesExporter.do(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.aspose.slides.jasperreports.JRSlidesExporter.do(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.aspose.slides.jasperreports.JRSlidesExporter.if(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.aspose.slides.jasperreports.JRSlidesExporter.exportReport(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.sbs.salesstrat.jasper.web.action.LogingAction.Login(LogingAction.java:70)
2010-06-05 20:04:21,943 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2010-06-05 20:04:21,943 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
2010-06-05 20:04:21,943 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
2010-06-05 20:04:21,943 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2010-06-05 20:04:21,943 INFO [STDOUT] at com.sbs.salesstrat.jasper.web.GenericFilter.doFilter(GenericFilter.java:45)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:150)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2010-06-05 20:04:21,943 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2010-06-05 20:04:21,943 INFO [STDOUT] at java.lang.Thread.run(Unknown Source)

Hello Bilal,

There is similar problem described.
http://www.experts-exchange.com/Programming/Languages/Java/Q_21151136.html

Stack trace and error message are identical so I think the problem is the same. JasperReports returns empty or broken images to the PPT/PPTX exporter. Unfortunately I don’t know why it happens. May be something wrong with JasperReports or configuration.

Thanks you!
but if jasperreports are the
returning the problematic images. kindly tell me why its working with
your current version that i am using? i am herby attaching the jar
files that i am currently using and are in a stable mode working fine.
please also tell me what is the release version for these jars… its
not been uploaded but i am typing the name of the jars i have… or if
any other information is required regarding the current version that i
am using please let me know. thanks.


Aspose.Slides.JasperReports.jar
aspose.words.jasperreports.jar



Regards,
Muhammad Bilal

Thanks you!
but if jasperreports are the
returning the problematic images. kindly tell me why its working with
your current version that i am using? i am herby attaching the jar
files that i am currently using and are in a stable mode working fine.
please also tell me what is the release version for these jars… its
not been uploaded but i am typing the name of the jars i have… or if
any other information is required regarding the current version that i
am using please let me know. thanks.


Aspose.Slides.JasperReports.jar
aspose.words.jasperreports.jar

please help. now i am at the stage to buy the product …



Regards,
Muhammad Bilal