Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 23rd, 2005, 02:25 AM
Registered User
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pratap

I am using the following code to export my jasper reports to PDF
the code is working fine if the report has only english or alphanumeric data. In my case I have some English and arabic texts mingled together. In this case while exported to pdf the english fonts are displayed properly but the arabic fonts are overlapped and some times not displayed.Can any one help me in this matter.

JRBeanArrayDataSource rptDS = (JRBeanArrayDataSource)session.getValue("BEAN_DATA SOURCE");
    String reportrealPath = (session.getValue("JASPER_NAME")).toString();

    Map parameters = (HashMap)session.getValue("PARAM_MAP");

    File reportFile = new File(application.getRealPath(reportrealPath));

    byte[] bytes =JasperRunManager.runReportToPdf(reportFile.getPat h(),parameters,rptDS);

    response.setHeader("content-disposition", "attachment;filename=report.pdf");
    ServletOutputStream ouputStream = response.getOutputStream();
    ouputStream.write(bytes, 0, bytes.length);


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal report font display error in PDF bht742000 BOOK: Professional Crystal Reports for VS.NET 0 January 12th, 2007 10:22 AM
Exporting To PDF Ardvisoor Reporting Services 0 May 28th, 2006 07:06 AM
arabic font in crystal viewer areejan2000 Crystal Reports 1 November 7th, 2005 03:01 AM
arabic font in crystal viewer areejan2000 Crystal Reports 0 November 6th, 2005 10:20 AM
Arabic Font mateenmohd Classic ASP Basics 0 September 12th, 2005 09:10 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.