arunvishvin Posted October 20, 2006 Share Posted October 20, 2006 Hi,I am trying to export my report to plain text format using the JRTextExporter...one thing I did not understand is that the page width of the text does not change to landscape even I specified a value more than the portrait size in the PAGE_WIDTH parameter of the exporter. why is this or am I going wrong somewhere.... this is my export logic: String fileName = new String("FEDFileFormat" + lDateTimeFormatter.format(new Date()) + ".txt"); JRTextExporter jrtxt = new JRTextExporter(); File destFile = new File(fileName); jrtxt.setParameter(JRExporterParameter.JASPER_PRINT, jrPrint); jrtxt.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString()); jrtxt.setParameter(JRTextExporterParameter.CHARACTER_WIDTH, new Integer(10)); jrtxt.setParameter(JRTextExporterParameter.CHARACTER_HEIGHT, new Integer(10)); jrtxt.setParameter(JRTextExporterParameter.PAGE_WIDTH, new Integer(845)); jrtxt.exportReport(); Link to comment Share on other sites More sharing options...
arunvishvin Posted October 20, 2006 Author Share Posted October 20, 2006 and also I am exporting my fields in a single line but I am getting in two different line why is it so?? Link to comment Share on other sites More sharing options...
arunvishvin Posted October 28, 2006 Author Share Posted October 28, 2006 problem solved...I experimented with the page widht and height to get the the desired page size and the elements are coming in a single line 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