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

pankajnain87

Members
  • Posts

    4
  • 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 pankajnain87

  1. Hi Team, I am designing a report for which I need output to pdf and sometime send to printer. i have designed the report in Landscape mode. Now when the output is PDF I am getting the pdf in landscape mode but when I send the report to printer it is printed in Potrait mode with some of the details cut due to width issues of the potrait page. I am using .net code to sen report to printer. Thanks in advance for the help. Regards
  2. Yes this is happening for all the reports where XML has considerable amount of data.
  3. Server has 16 GB RAM and is 2.60 GHz. It doesnt seems like server issue.
  4. I am creating a report in Jasper Studio. I am using XML datasource to fill the report. It takes 22 secs to fill the report using JasperStudio report preview feature but it takes 4 minutes to create pdf file on the server. I am using .Net to fill report. Below is the code sample which is used to fill report and export pdf. pars.put(JRXPathQueryExecuterFactory.PARAMETER_XML_DATA_DOCUMENT, document); pars.put(JRXPathQueryExecuterFactory.XML_DATE_PATTERN, "yyyy-MM-dd"); pars.put(JRXPathQueryExecuterFactory.XML_NUMBER_PATTERN, "#,##0.##"); pars.put(JRXPathQueryExecuterFactory.XML_LOCALE, Locale.ENGLISH); DefaultJasperReportsContext context = DefaultJasperReportsContext.getInstance(); JRPropertiesUtil.getInstance(context).setProperty("net.sf.jasperreports.xpath.executer.factory", "net.sf.jasperreports.engine.util.xml.JaxenXPathExecuterFactory"); JasperFillManager jasperFillManager = JasperFillManager.getInstance(context); JasperPrint jasperPrint = jasperFillManager.fill(report_path + template, pars); JasperExportManager.exportReportToPdfFile(jasperPrint, saveLocation);
×
×
  • Create New...