2005 IR Help Posted August 26, 2006 Share Posted August 26, 2006 By: enjoyingjava - enjoyingjava jasperreport0.5.2 not surpport gb2312? 2004-04-28 20:28 jasperreport0.5.2 not surpport gb2312? in jasperreport0.4.6 at the first of the design xml can use the <?xml version="1.0" encoding="gb2312"?> but in the jasperreport0.5.2 ,it throws the Exception : org.xml.sax.SAXParseException: <Line 3, Column 1>: XML-0192: (Fatal Error) Unexpected text in DTD. if i remove the encoding="gb2312" it throws the Exception : java.io.UTFDataFormatException: Invalid UTF8 encoding. at oracle.xml.parser.v2.XMLUTF8Reader.checkUTF8Byte Â…Â… dori.jasper.engine.JRException: Illegal change of encoding: from gb2312 to UTF-8. at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:395) at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:371) Â…Â… If it can ,how can i do? thanks for your help! By: enjoyingjava - enjoyingjava How can do this ! 2004-04-26 19:23 I want to create pdf format as follow: title no name account $ no name account $ 1 tom1 1001 10.0 2 tom2 1002 1 3 tom3 1003 20.0 4 tom4 1004 3 5 By: enjoyingjava - enjoyingjava RE: How can do this ! 2004-04-26 19:24 Any help would appreciated By: enjoyingjava - enjoyingjava RE: How can do this ! 2004-04-27 20:05 Thank you very much Teodor, I have tried this, but the result is that the report always fills the left side first . like this: no name account $ no name account $ 1 tom1 1001 10.0 4 tom4 1004 30.0 2 tom2 1002 20.0 3 tom3 1003 1.0 Is there any attribute to set? By: Teodor Danciu - teodord RE: How can do this ! 2004-04-27 05:33 Hi, Use printOrder="Horizontal" and columnCount="2". Note however that in such case the text fields do not stretch anymore. I hope this helps. Teodor By: Teodor Danciu - teodord RE: How can do this ! 2004-04-27 23:52 Hi, What version of JasperReports are you using? Are you sure you have printOrder="Horizontal"? Note that this feature is working only since 0.5.0. Thank you, Teodor By: enjoyingjava - enjoyingjava RE: How can do this ! 2004-04-28 04:24 Thanks Teodor ! My version is 0.4.6,Sorry! But I encounter another problem ,It throw the exception : java.io.UTFDataFormatException: Invalid UTF8 encoding. at oracle.xml.parser.v2.XMLUTF8Reader.checkUTF8Byte(XMLUTF8Reader.java:160) at oracle.xml.parser.v2.XMLUTF8Reader.readUTF8Char(XMLUTF8Reader.java:175) at oracle.xml.parser.v2.XMLUTF8Reader.fillBuffer(XMLUTF8Reader.java:120) at oracle.xml.parser.v2.XMLByteReader.saveBuffer(XMLByteReader.java:448) at oracle.xml.parser.v2.XMLReader.fillBuffer(XMLReader.java:2030) at oracle.xml.parser.v2.XMLReader.skipWhiteSpace(XMLReader.java:1808) can any one help ,,thank a lot! By: enjoyingjava - enjoyingjava RE: How can do this ! 2004-04-28 19:02 jasperreport0.5.2 not surpport gb2312? in jasperreport0.4.6 at the first of the design xml can use the <?xml version="1.0" encoding="gb2312"?> but in the jasperreport0.5.2 ,it throws the Exception : org.xml.sax.SAXParseException: <Line 3, Column 1>: XML-0192: (Fatal Error) Unexpected text in DTD. if i remove the encoding="gb2312" it throws the Exception : java.io.UTFDataFormatException: Invalid UTF8 encoding. at oracle.xml.parser.v2.XMLUTF8Reader.checkUTF8Byte Â…Â… dori.jasper.engine.JRException: Illegal change of encoding: from gb2312 to UTF-8. at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:395) at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:371) Â…Â… If it can ,how can i do? thanks for your help! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now