Jump to content
We've recently updated our Privacy Statement, available here ×

c1247847

Members
  • Posts

    8
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by c1247847

  1. I have problem with fonts extension JAR that is not recognized in OSGI platform RCP application. JasperReports are used as part of OSGI application (run either from eclipse or standalone). Font extension JAR was created as in demo/fonts example, with addition to make visible whole content to OSGI platform (it is marked as bundle in pom file). Part of POM file so that all is exported: <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> <instructions> <Export-Package> * </Export-Package> </instructions> </configuration> </plugin>[/code]JAR created in this way is visible in target platform, and in OSGI console I can see when app is started that bundle is resolved and can be manually started. JAR font extension created with JasperStudio is not visible to OSGI target platform. But when JasperReports engine performs load of fonts extensions, only one font extension is loaded from jasper reports library net.sf.jasperreports.jasperreports_6.3.0.jar: 2016-10-10 16:29:31,358 [main] DEBUG net.sf.jasperreports.engine.util.JRLoader - Found resource jasperreports_extension.properties at bundleresource://191.fwk8244259/jasperreports_extension.properties in classloader org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@1c83495[net.sf.jasperreports.engine:6.3.0(id=191)] 2016-10-10 16:29:31,365 [main] DEBUG net.sf.jasperreports.extensions.DefaultExtensionsRegistry - Loading JasperReports extension properties resource bundleresource://191.fwk8244259/jasperreports_extension.properties When using same font bundle in plain Java application, and that JAR font is added to “Build path” then everything works OK and multiple font extensions are loaded. Can jasper engine load font extensions when used as part of application that uses spring and OSGI ? If it is possible what is necessary to do in order for font bundle to be processed by jasper engine. Is it maybe problem in Manifest.mf file: Manifest-Version: 1.0Export-Package:fonts.MicrosoftSansSerif,fonts.Calibri,target.classes,target.classes.fonts.Arial,target.classes.fonts.MicrosoftSansSerif,target.classes.fonts.Calibri,fonts.Arial,fonts,target.classes.fontsPrivate-Package: .Built-By: xxTool: Bnd-0.0.311Bundle-Name: JasperReports Font Extension TestAppCreated-By: Apache Maven Bundle PluginBuild-Jdk: 1.7.0_45Bundle-Version: 1.0.0Bnd-LastModified: 1476101394455Bundle-ManifestVersion: 2Bundle-Description: JasperReports Library Font Extension for TestAppBundle-SymbolicName: jasperreports-fonts-testappImport-Package: fonts,fonts.Arial,fonts.Calibri,fonts.MicrosoftSansSerif,target.classes,target.classes.fonts,target.classes.fonts.Arial,target.classes.fonts.Calibri,target.classes.fonts.MicrosoftSansSerif[/code]I also tried to add content of font extension JAR to plain java app and that works OK (removed font extension JAR from build path and project), just as if font extension was used. But when same files from font extension were copied and used in my OSGI JAR bundle then Jasper doesn’t recognize them, it doesn’t process nothing from: jasperreports.properties or jasperreports_extension.properties For testing purpose I changed some default properties values in jasperreports.properties and that doesn’t work in OSGI bundle (work OK in plain Java app run from Eclipse). It seems that jasper engine doesnt recognize properties files in osgi bundle.
  2. I've hosted a jasper server, and I get the required PDF by hitting the URL above. At the jasperserver's front, I want to get the IP address of the client which requests the PDF, so I can print it in the PDF and also use data-source hosted on the client's address. Is there a way I can pull this out from the headers or any other method jasperserver provides?
  3. Hi! I am trying to define a style which is similar to the Zebra style, but if consecutive rows have all the same value in a specific field the background should not change. It should look like this: value1value2value2value2value3value4value5value6 I found this wiki article: http://community.jaspersoft.com/wiki/compare-previous-row-and-change-color But the proposed solution does not work. I tried it with Jaspersoft Studio 5.6.1 Thanks a lot!
  4. Hi! I am using the JasperReports Library (not JasperReports Server) to integrate Reports in my web application. The reports use SQL queries to get the data from an Oracle database. Point in times in the database tables are stored using the column type TIMESTAMP WITH TIMEZONE. The reports are created using Jaspersoft Studio, but this should not matter. I have a report where the user can set a date range (from and to). So these values must be parameters in the SQL of the report. What is the best practice to pass this information using parameters. I found several possibilities: 1. Use a parameter of type java.sql.date 2. Use a parameter of type java.sql.timestamp 3. Use a parameter of type java.util.date All of them do not contain the Timezone information, so what exactly happens if I do something like this in the SQL query: creation_date - dateFrom, whereas creation_date is of type TIMESTAMP WITH TIMEZONE and dateFrom is the parameter from outside. The dateFrom parameter needs to be interpreted using a TimeZone for the calculation or am I wrong? Which TimeZone is used then? Furthermore the dateFrom parameter must somehow respect the TimeZone of the user which creates the report. Another 4. possibility is to pass the dateFrom as a String including the TimeZone information and to parse it in the SQL query to a TIMESTAMP WITH TIMEZONE. This would nicely solve any timezone issues, but is it recommended? If I want to display the dates which have the column type TIMESTAMP WITH TIMEZONE in the report in the TimeZone of the current user can I do this in the .jrxml file or do I have to prepare this in the SQL query itself? Does JasperReports Library support the type TIMESTAMP WITH TIMEZONE?
  5. Hello: We just finished upgrading Jasperserver to version 5.2 and the URL output parameter doesn't work. If we add &output=pdf to the end of the url, the user gets a blank report. In Jasper Server 3.7 it works fine. ¿Is there any workaround? Sorry about my english and thank you for all!!!
×
×
  • Create New...