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

vitsin

Members
  • Posts

    6
  • 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 vitsin

  1. hi, while using JRHtmlExporter() with Text Fields where Markup=html, the embedded HTML tags into text (for parameter $P{header_1}), are completely ignored by JasperReport API v4.1.2/v4.1.3. Template: <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement isPrintRepeatedValues="false" x="0" y="45" width="835" height="208" isPrintWhenDetailOverflows="true" backcolor="#FFFFFF"/> <textElement textAlignment="Justified" markup="html"> <font fontName="Arial" size="17"/> <paragraph lineSpacing="Single"/> </textElement> <textFieldExpression><![CDATA[$P{header_1}]]></textFieldExpression> </textField> $P{header_1} example: <p>This is a test</p> Java called from Ruby: baos = Java::java.io.StringWriter.new() exporter = Java::net.sf.jasperreports.engine.export.JRHtmlExporter.new() exporter.setParameter(Java::net.sf.jasperreports.engine.export.JRHtmlExporterParameter::HTML_HEADER, " ") exporter.setParameter(Java::net.sf.jasperreports.engine.export.JRHtmlExporterParameter::HTML_FOOTER, " ") exporter.setParameter(Java::net.sf.jasperreports.engine.JRExporterParameter::JASPER_PRINT, jasper_print) exporter.setParameter(Java::net.sf.jasperreports.engine.JRExporterParameter::OUTPUT_WRITER, baos) images_map = Java::java.util.HashMap.new() if (java_request != nil) java_request.getSession().setAttribute(Java::net.sf.jasperreports.j2ee.servlets.ImageServlet::DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE,jasper_print) java_request.getSession().setAttribute("IMAGES_MAP", images_map) end exporter.setParameter(Java::net.sf.jasperreports.engine.export.JRHtmlExporterParameter::IMAGES_MAP, images_map) exporter.setParameter(Java::net.sf.jasperreports.engine.export.JRHtmlExporterParameter::IMAGES_URI,get_image_url_path()) exporter.exportReport() return baos.toString() apppreciate any help, --vs
  2. Does not work for me too in API3.7.6. But indeed works fine in 4.0.2.
  3. JasperReports Guys! Can you please bring a light on it? thanks.
  4. hi, when defining Table inside Subreport with sub dataset that actually is a Parameter (JRDataSource), following exactly as in the samples\table\reports\TableReport.jrxml instead of Table I got single solid horizontal line. ??!! All compiles great, but in final PDF either Preview - just a single solid horizontal line ... While using the same Parameter (same JRDataSource) with List - all data populated fine and looks completely OK in both, preview and PDF. Runnig on JasperReports API v4.0.2, iReport v4.0.2 in both cases: table and list. Am I missing something in definitions or is this a table bug? Not a bug? so why it works for List and not for Table? Appreciate any help on this one please. --vs
  5. hi, "font extensions"(followinf "uliss3" explanations) does not really work for me too. I'm using font files from c:\windows\fonts\, for example Calibri: creating jar, placing at classpath, recompile, etc. In the final PDF file I see only Helvetica font, even thought in the iReport PDF Preview all fonts looks great(Calibri). So may be the issue with exportReportToPdfStream() ? Appreciate the help! --Vitaly.
  6. jasperreports-4.0.2.jar jasperreports-chart-themes-4.0.2.jar jasperreports-extensions-3.5.3.jar jasperreports-fonts-4.0.2.jar spring.jar (2.0.8) spring-core.jar spring-beans.jar my_test.jar - font jar file created with iReport v4.0.2 using "Install Font" + "Export as expression" taking some existing Fonts family from c:\windows\fonts\, for example CALIBRI.TTF When running the previous setup, getting the following exception. Any tips please? ERROR DefaultExtensionsRegistry: - Error instantiating extensions registry for fonts java.lang.NullPointerException at net.sf.jasperreports.engine.fonts.SimpleFontFace.<init>(SimpleFontFace.java:83) at net.sf.jasperreports.engine.fonts.SimpleFontFamily.createFontFace(SimpleFontFamily.java:316) at net.sf.jasperreports.engine.fonts.SimpleFontFamily.setNormal(SimpleFontFamily.java:85) at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamily(SimpleFontExtensionHelper.java:23 3) at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamilies(SimpleFontExtensionHelper.java: 204) at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:1 73) at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:1 42) at net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory.createRegistry(SimpleFontExtensionsRegi stryFactory.java:63) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java: 238) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:213) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:162) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistries(DefaultExtensionsRegistry.java:132) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:104) at net.sf.jasperreports.engine.util.JRStyledTextParser.<clinit>(JRStyledTextParser.java:81) at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:182) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:87) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:57) at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:78) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:540) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:484) at org.jruby.javasupport.JavaMethod.invokeStaticDirect(JavaMethod.java:366) at org.jruby.java.invokers.StaticMethodInvoker.call(StaticMethodInvoker.java:70) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:350) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:229) at org.jruby.ast.CallThreeArgNode.interpret(CallThreeArgNode.java:61) at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:173) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:169) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149) at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36) at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109) at C_3a_.dev.mysentry.tools.test_internet_report_pdf.__file__(test_internet_report_pdf.rb:27) at C_3a_.dev.mysentry.tools.test_internet_report_pdf.load(test_internet_report_pdf.rb) at org.jruby.Ruby.runScript(Ruby.java:628) at org.jruby.Ruby.runNormally(Ruby.java:550) at org.jruby.Ruby.runFromMain(Ruby.java:396) at org.jruby.Main.run(Main.java:272) at org.jruby.Main.run(Main.java:117) at org.jruby.Main.main(Main.java:97)
×
×
  • Create New...