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

vijaypr.chak

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

vijaypr.chak's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi, In JasperStudio, i have installed a TTF font called PSLxText (Windwows - Preferences - JasperStudio - Add font..). The font is successfully installed. When i create a brand new jrxml, the font is available for applying to elements and the font is appearing in the generated PDF report. But when i apply the same font to already developed jrxml in ireports (i migrated the jrxml from Ireports designer 5.6.0 to studio and PDF report generated successfully), the changed font is not taking effect in the generated PDF. Please help me here. Regards Vijay
  2. Hi, I'm using Ireports designer 5.6.0 for designing jrxml and generating PDF from a CSV datasource via java. Below is the code: JasperExportManager .exportReportToPdfFile(printFileName,"D:/Jasper/REPORT.pdf" ); I need, to make PDF password protected (the passcode, i obtain from CSV file).Is there any simple way to do this in java or can i make it password protected via jasper tool itself.
  3. Hi, We have a requirement, wherein the customer will supply a disclaimer page PDF, which always should be displayed as the second page or inserted just as is at Page 2, irrespective of the number of pages in the PDF which we are generating via jasper tool. I'm using Ireports 5.6.0 to design the jrxml amd via java i'm generating the PDF from a CSV datasource. Depending on the volume of data, we may end up in generating 3 to 4 page PDF. After page 1, disclaimer page should come and from page 3, the rest of the data should follow. Is there a way to acheive the same. - Vijay
  4. i checked the document properties and right font is embedded in PDF. Is there any way to change the font width. I guess there is an option to change the font size, but for our case, the displayed font width needs to be 80%. Regards Vijay
  5. Hi, I'm installing a customer supplied TTF Thai font called "PSLText" in IReport designer (installed via Tool - Options) and generating a PDF file by embedding the font. The font is getting displayed in PDF but with the slight different look and feel, against the one supplied by the customer. I m not able understand why is it so and what steps to look for to sort out the issue. Please help me here. Regards Vijay
  6. Hi, I m using IReports Designer 5.6.0 and trying to generate a PDF file by embedding a SVG image file. Have given the following line as image expression in jrxml: <imageExpression><![CDATA[net.sf.jasperreports.renderers.BatikRenderer.getInstance(new java.io.File("D:\Newimage.svg"))]]></imageExpression> But the PDF generated is not embedding the image. I have tried various options with the above expression. Please help me out. Regards Vijay
  7. Hi, I'm creating a table structure with static column headers and some values fields, the field values are getting populated from CSV datasource contating Thai characters. When i preview the PDF, the static Thai chars in the column headers appears fine, but which is getting rendered via datasource (i created a dataadapter from CSV) is not appearing and some junk chars are appearing. I'm using IReports designer 5.6.0. And i'm setting the font name as "Arial Unicode MS" with encoding "Identity-H". The static chars that are hard coded in the designer is appearing fine, but the fields values that are getting displayed from the CSV file is not rendered. Should i set some specific encoding for the dataadapter. Kindly let me know. Regards Vijay
  8. Hi, I modified the font name to Arial Unicode MS at the studio, (TextField -> Show Properties) and Modified my code as below: JRPdfExporter exporter = new JRPdfExporter();exporter.setExporterInput(SimpleExporterInput.getInstance(jasperPrintList));exporter.setExporterOutput(new SimpleOutputStreamExporterOutput("C:\Users\11111\Desktop\reports\test\"+file+".pdf"));SimplePdfExporterConfiguration configuration = new SimplePdfExporterConfiguration();configuration.setCreatingBatchModeBookmarks(true); JasperReportsContext jrContext=DefaultJasperReportsContext.getInstance(); JRPropertiesUtil.getInstance(jrContext).setProperty("net.sf.jasperreports.default.font.name","Arial Unicode MS");JRPropertiesUtil.getInstance(jrContext).setProperty("net.sf.jasperreports.default.pdf.font.name","C:\Users\vi258263\Desktop\reports\arialuni.ttf");JRPropertiesUtil.getInstance(jrContext).setProperty("net.sf.jasperreports.default.pdf.encoding", "Identity-H"); I'm having the ttf, fonts.xml and jasperreports_extension.properties at the level as my class file used for generating PDF. The Pdf exported via Studio now appears fine, by when exported via java code still thai characters are appearing like, ขà¸à¹€à¸Šà¸´à¸à¸›à¸£à¸°à¸Šà¸¸à¸¡. Kindly Help.
  9. Hi, I'm using a java program to dynamically display a report containing thai characters which is getting mapped from comma seperated txt file containing thai chars as the datasource. I have added arialuni.ttf as a font.jar in to the classpath. The PDF generated is containing charactes like "ขà¸à¹€à¸Šà¸´à¸à¸›à¸£à¸°à¸Šà¸¸à¸¡" instead of Thai characters. Kindly help. I have designed the template using jaspersoftstudio 6.1.1 and when i preview the thai charaters are appearing fine. Below is my code: public static void main(String[] args) {try { new TestJasper1().test("8299999","C:\Users\11111\Desktop\reports\test\8299999.txt");} catch (Exception e) {e.printStackTrace();} //@Overridepublic void test(String file,String fill) throws JRException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {try {fill(fill);} catch (FileNotFoundException e) {e.printStackTrace();}pdf(file); }public void fill(String fill) throws JRException, FileNotFoundException{File file = new File(fill);JasperFillManager.fillReportToFile("Blank_A12.jasper",null, new JRCsvDataSource(file)); }public void pdf(String file) throws JRException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException{ List<JasperPrint> jasperPrintList = new ArrayList<JasperPrint>();jasperPrintList.add((JasperPrint)JRLoader.loadObjectFromFile("Blank_A12.jrprint")); JRPdfExporter exporter = new JRPdfExporter();exporter.setExporterInput(SimpleExporterInput.getInstance(jasperPrintList));exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(file+".pdf"));SimplePdfExporterConfiguration configuration = new SimplePdfExporterConfiguration();configuration.setCreatingBatchModeBookmarks(true); JasperReportsContext jrContext=DefaultJasperReportsContext.getInstance();JRPropertiesUtil.getInstance(jrContext).setProperty("net.sf.jasperreports.default.pdf.font.name","C:\Users\11111\Desktop\reports\arialuni.ttf");JRPropertiesUtil.getInstance(jrContext).setProperty("net.sf.jasperreports.default.pdf.encoding", "Identity-H"); exporter.setConfiguration(configuration); exporter.exportReport(); }
×
×
  • Create New...