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

sudheer

Members
  • Posts

    26
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by sudheer

  1. very thank you, that worked very well.

    i am already using single frame, but i placed all properties line by line...

    now as u said i placed them overlapped.one upon other.and set the "print qwhen expression".

    so at any time my frame will show only property that matches the expression result.

    thanks once again.

     

    (There's no bounds..so think out of limits..i never ever ,just for testing purpose also ..have not tried with over lapping fields).

    it's a lession for me..we are softwre builders so we never dont need to bother about what if it fails..you can implement and try it for several times ..but other engineers ..say for example civil engineers  they can build n test ...

     

  2. hi all,

    i think i should  use the word form or frame kind...instead template.

    i have a list of items, if item type is "A" then i want to use first template/form/frame and if item type is "B" then use second template/form/frame...

    how can i achieve this.

     

    thanks,

    Sudheer.



    Post Edited by sudheer at 07/14/2011 06:38
  3. hey thanks for the reply..

    text is getting wrapped and everything is working fine..except..

    if my text is

    "some lengthy text .....  (15)Other non-relatuion (specify)"

    then its not displaying the end line properly in docx file. it is displaying horizantal upper part of the string..ref to attached image file

    if i change text to

    "some lengthy text +  some more string"

    then it is working fine.

    i am not getting whats the problem.

    thanks,

    Sudheer

  4. i added a text field and it is not showing full text..it is showing only upto the length of which i set in designer.

    in real time i will get very lengthy(several lines some times) text's how can i set ..so that all text is displayed ..also needed to go to next line

  5. <?xml version="1.0" encoding="UTF-8"?>
    <root>
        <furniture>
            <chair>
              <cost> 1111 </cost>
            </chair>
            <chair>
              <cost> 2222 </cost>
            </chair>
            <table>
                <cost> 3333 </cost>
                <make>00#123</make>
            </table>
        <furniture>
    </root>

     

     

    how can i show a list of furniture  using xml as data source...and setting xpath.

    if i need to display them in same order as in xml file.

    i can display list of chars and list of tables but not both.

    please suggest....

  6. hi all i am trying to put data source as jdbc connection.

    in ireport -- services --drivers i could see org.h2.Driver driver.

    even i connected to data base and executed some quries.

    but the org.h2.Driver driver is not visible in the drop down  of JDBC Driver in Data Base JDBC Connection window.

     

  7. JasperFillManager.fillReportToFile("C:/test/templates/CustomersReport.jasper", params);

    how can i solve this problem.

    calling this is giving me the exception.when i searched in net that i need to set dependencies.

    but i am using a simple java program in eclise..not runnning thru ant task how to set dependencies.

     

    i am adding the code snippet also.

    i just added the jars  which are given in jasperreports-4.0.2-project.

    thanks,

     

    Sudheer

     

     

    Code:
    import java.io.File;import java.util.HashMap;import java.util.Locale;import java.util.Map;import net.sf.jasperreports.engine.JRExporterParameter;import net.sf.jasperreports.engine.JRParameter;import net.sf.jasperreports.engine.JasperFillManager;import net.sf.jasperreports.engine.JasperPrint;import net.sf.jasperreports.engine.export.ooxml.JRDocxExporter;import net.sf.jasperreports.engine.query.JRXPathQueryExecuterFactory;import net.sf.jasperreports.engine.util.JRLoader;import net.sf.jasperreports.engine.util.JRXmlUtils;import org.w3c.dom.Document;public class JXLReport {	public static void main(String[] args) {		try {			fill();			docx();		} catch (Exception e) {			e.printStackTrace();		}	}		public static void docx() throws Exception{				File sourceFile = new File("C:/test/templates/CustomersReport.jrprint");		JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);		File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".docx");		JRDocxExporter exporter = new JRDocxExporter();		exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);		exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());		exporter.exportReport();			}		@SuppressWarnings("unchecked")	public static void fill() throws Exception{				//map data		Map params = new HashMap();		Document document = JRXmlUtils.parse(JRLoader.getLocationInputStream("C:/test/data/northwind.xml"));		params.put(JRXPathQueryExecuterFactory.PARAMETER_XML_DATA_DOCUMENT, document);		params.put(JRXPathQueryExecuterFactory.XML_DATE_PATTERN, "yyyy-MM-dd");		params.put(JRXPathQueryExecuterFactory.XML_NUMBER_PATTERN, "#,##0.##");		params.put(JRXPathQueryExecuterFactory.XML_LOCALE, Locale.ENGLISH);		params.put(JRParameter.REPORT_LOCALE, Locale.US);		try{			JasperFillManager.fillReportToFile("C:/test/templates/CustomersReport.jasper", params);		}catch (Exception e){			System.out.println("----------------");			e.printStackTrace();		}			}}

    Post Edited by sudheer at 06/20/2011 11:02
×
×
  • Create New...