satishmhiremath
Members-
Posts
17 -
Joined
-
Last visited
satishmhiremath's Achievements
-
Jasper reports and Right-to-left text - how does it work?
satishmhiremath replied to adobrush's topic in Products
After all workarounds, i am able to fix this issue in Jasper ireport as follows In Text Properties of jrxml: Font Name : Arial Pdf Font Name : ../arial.ttf Pdf Embedded : true Pdf Encoding : Identity-H ------------------------------------------------------- In your Project META-INF folder Create and Add reports folder containing arial.ttf files and font.xml Outside META-INF folder, add jasper-extensions.properties file So finally, jasper-extensions.properties --- Uses --- fonts.xml --- Uses --- true type font files jasper-extensions.properties file --> fonts.xml ---> arial.ttf The syntactical contents of Font.xml: <?xml version="1.0" encoding="UTF-8"?> <fontFamilies> <fontFamily name="Arial"> <normal><![CDATA[META-INF/reports/fonts/arial.ttf]]></normal> <bold><![CDATA[META-INF/reports/fonts/arialbd.ttf]]></bold> <italic><![CDATA[META-INF/reports/fonts/ariali.ttf]]></italic> <boldItalic><![CDATA[META-INF/reports/fonts/arialbi.ttf]]></boldItalic> <pdfEmbedded><![CDATA[true]]></pdfEmbedded> </fontFamily> </fontFamilies> jasper-extensions.properties : net.sf.jasperreports.extension.registry.factory.fonts=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory net.sf.jasperreports.extension.simple.font.families.myfamily=META-INF/fonts.xml Regards, Satish M Hiremath -
Image relative path is not working when exporting
satishmhiremath replied to aditya_gupta's topic in Products
Use the below expression in the image Expression of jasper report IDE on image properties of the jrxml and the relative image path getClass().getResource("META-INF/resources/webjars/EquityBankTools/themes/default/images/Logo.png").openStream() Satish M Hiremath satishmhiremath@gmail.com -
How to set Relative Path for an Image with Ireport
satishmhiremath replied to 6sic6's topic in Products
Use the below expression in the image Expression of jasper report IDE on image properties of the jrxml and the relative image path getClass().getResource("META-INF/resources/webjars/EquityBankTools/themes/default/images/Logo.png").openStream() Satish M Hiremath satishmhiremath@gmail.com -
After all workarounds, i am able to fix this issue in Jasper ireport as follows In Text Properties of jrxml: Font Name : Arial Pdf Font Name : ../arial.ttf Pdf Embedded : true Pdf Encoding : Identity-H ------------------------------------------------------- In your Project META-INF folder Create and Add reports folder containing arial.ttf files and font.xml Outside META-INF folder, add jasper-extensions.properties file So finally, jasper-extensions.properties --- Uses --- fonts.xml --- Uses --- true type font files jasper-extensions.properties file --> fonts.xml ---> arial.ttf The syntactical contents of Font.xml: <?xml version="1.0" encoding="UTF-8"?> <fontFamilies> <fontFamily name="Arial"> <normal><![CDATA[META-INF/reports/fonts/arial.ttf]]></normal> <bold><![CDATA[META-INF/reports/fonts/arialbd.ttf]]></bold> <italic><![CDATA[META-INF/reports/fonts/ariali.ttf]]></italic> <boldItalic><![CDATA[META-INF/reports/fonts/arialbi.ttf]]></boldItalic> <pdfEmbedded><![CDATA[true]]></pdfEmbedded> </fontFamily> </fontFamilies> jasper-extensions.properties : net.sf.jasperreports.extension.registry.factory.fonts=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory net.sf.jasperreports.extension.simple.font.families.myfamily=META-INF/fonts.xml Regards, Satish M Hiremath
-
After all workarounds, i am able to fix this issue in Jasper ireport as follows In Text Properties of jrxml: Font Name : Arial Pdf Font Name : ../arial.ttf Pdf Embedded : true Pdf Encoding : Identity-H ------------------------------------------------------- In your Project META-INF folder Create and Add reports folder containing arial.ttf files and font.xml Outside META-INF folder, add jasper-extensions.properties file So finally, jasper-extensions.properties --- Uses --- fonts.xml --- Uses --- true type font files jasper-extensions.properties file --> fonts.xml ---> arial.ttf The syntactical contents of Font.xml: <?xml version="1.0" encoding="UTF-8"?> <fontFamilies> <fontFamily name="Arial"> <normal><![CDATA[META-INF/reports/fonts/arial.ttf]]></normal> <bold><![CDATA[META-INF/reports/fonts/arialbd.ttf]]></bold> <italic><![CDATA[META-INF/reports/fonts/ariali.ttf]]></italic> <boldItalic><![CDATA[META-INF/reports/fonts/arialbi.ttf]]></boldItalic> <pdfEmbedded><![CDATA[true]]></pdfEmbedded> </fontFamily> </fontFamilies> jasper-extensions.properties : net.sf.jasperreports.extension.registry.factory.fonts=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory net.sf.jasperreports.extension.simple.font.families.myfamily=META-INF/fonts.xml Regards, Satish M Hiremath
-
Error 500: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is net.sf.jasperreports.engine.JRException: Byte data not found at : ..//reports//images//xyz.gif The above error is fixed by using the imageExpression getClass().getResource("META-INF/resources/......../themes/default/images/xyz.png").openStream()
-
net.sf.jasperreports.engine.JRException: Byte data not found at:
satishmhiremath replied to swvajanyatek's topic in Products
Error 500: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is net.sf.jasperreports.engine.JRException: Byte data not found at : ..//reports//images//xyz.gif The above error is fixed by using the imageExpression getClass().getResource("META-INF/resources/......../themes/default/images/xyz.png").openStream() -
Byte data not found at location : ../../Images/log
satishmhiremath replied to anupp's topic in Products
Error 500: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is net.sf.jasperreports.engine.JRException: Byte data not found at : ..//reports//images//adib-logo.gif The above error is fixed by using the imageExpression getClass().getResource("META-INF/resources/webjars/RBLTools/themes/default/images/RBL-LOGO.png").openStream() -
After all workarounds, i am able to fix this issue in Jasper ireport as follows In Text Properties : Font Name : Arial Pdf Font Name : ../arialbd.ttf (ARIAL BOLD) Pdf Embedded : true Pdf Encoding : Identity-H ------------------------------------------------------- In your Project META-INF folder Create and Add reports folder containing arialbd.ttf(BOLD) files and fonts.xml Outside META-INF folder, add jasper-extensions.properties file So finally, jasper-extensions.properties --- Uses --- fonts.xml --- Uses --- true type font files jasper-extensions.properties file --> fonts.xml ---> arial.ttf Regards, Satish M Hiremath Bangalore, Karnataka, India satishmhiremath@gmail.com
-
IReport Arabic Characters Problem in PDF Format
satishmhiremath replied to benprogrammer's topic in Products
After all workarounds, i am able to fix this issue in Jasper ireport as follows In Text Properties : Font Name : Arial Pdf Font Name : ../arial.ttf Pdf Embedded : true Pdf Encoding : Identity-H ------------------------------------------------------- In your Project META-INF folder Create and Add reports folder containing arial.ttf files and font.xml Outside META-INF folder, add jasper-extensions.properties file So finally, jasper-extensions.properties --- Uses --- fonts.xml --- Uses --- true type font files jasper-extensions.properties file --> fonts.xml ---> arial.ttf Regards, Satish M Hiremath Bangalore, Karnataka, India satishmhiremath@gmail.com -
After all workarounds, i am able to fix this issue in Jasper ireport as follows In Text Properties : Font Name : Arial Pdf Font Name : ../arial.ttf Pdf Embedded : true Pdf Encoding : Identity-H ------------------------------------------------------- In your Project META-INF folder Create and Add reports folder containing arial.ttf files and font.xml Outside META-INF folder, add jasper-extensions.properties file So finally, jasper-extensions.properties --- Uses --- fonts.xml --- Uses --- true type font files jasper-extensions.properties file --> fonts.xml ---> arial.ttf Regards, Satish M Hiremath Bangalore, Karnataka, India satishmhiremath@gmail.com
-
After all workarounds, i am able to fix this issue in Jasper ireport as follows In Text Properties : Font Name : Arial Pdf Font Name : ../arial.ttf Pdf Embedded : true Pdf Encoding : Identity-H ------------------------------------------------------- In your Project META-INF folder Create and Add reports folder containing arial.ttf files and font.xml Outside META-INF folder, add jasper-extensions.properties file So finally, jasper-extensions.properties --- Uses --- fonts.xml --- Uses --- true type font files jasper-extensions.properties file --> fonts.xml ---> arial.ttf Regards, Satish M Hiremath Bangalore, Karnataka, India satishmhiremath@gmail.com
-
After all workarounds, i am able to fix this issue in Jasper ireport as follows In Text Properties of jrxml: Font Name : Arial Pdf Font Name : ../arial.ttf Pdf Embedded : true Pdf Encoding : Identity-H ------------------------------------------------------- In your Project META-INF folder Create and Add reports folder containing arial.ttf files and font.xml Outside META-INF folder, add jasper-extensions.properties file So finally, jasper-extensions.properties --- Uses --- fonts.xml --- Uses --- true type font files jasper-extensions.properties file --> fonts.xml ---> arial.ttf The syntactical contents of Font.xml: <?xml version="1.0" encoding="UTF-8"?> <fontFamilies><fontFamily name="Arial"> <normal><![CDATA[META-INF/reports/fonts/arial.ttf]]></normal> <bold><![CDATA[META-INF/reports/fonts/arialbd.ttf]]></bold> <italic><![CDATA[META-INF/reports/fonts/ariali.ttf]]></italic> <boldItalic><![CDATA[META-INF/reports/fonts/arialbi.ttf]]></boldItalic> <pdfEmbedded><![CDATA[true]]></pdfEmbedded> </fontFamily></fontFamilies>jasper-extensions.properties : net.sf.jasperreports.extension.registry.factory.fonts=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactorynet.sf.jasperreports.extension.simple.font.families.myfamily=META-INF/fonts.xml Regards, Satish M Hiremath
-
Hi Team, As I tried using unicode with properties as UTF-8, Font Name DejaVu Sans, pdfEmbedded=true, pdf encoding=cp1256(Arabic) , installing Dejavu Sans.ttf file as below for displaying Arabic text in Jasper tool as text field expression ($F{state.locale}.equalsIgnoreCase("AR") || $F{state.locale}.equalsIgnoreCase("ar-EG")) ? "\u0627\u0633\u0645 \u0627\u0644\u0645\u0646\u062A\u062C" :"Product Name" But the result in pdf is not displaying in arabic. It displays the same Hadcoded Unicode \u0627\u0633\u0645 \u0627\u0644\u0645\u0646\u062A\u062C or ????????? Kindly do the needfull to display Arabic text fonts ASAP. Regards, Satish M Hiremath