Jump to content

muttou

Members
  • Posts

    50
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by muttou

  1. hi i m using the Jasper server for Jasper Analysis and i developed the Custom Dashboard which shows the different schema a analysis. can some body explains that what would be its performance and response time. thanks for the technical support .......... Nasir
  2. hi i m using the Jasper server for my Analysis and found it well but i need to know that how Time dimension works and i have a TimeStamp data type in my table tell how i can map or make the time series on this columns for e.g

    '01-JAN-07 10:23:00 am' make it levels like year = 2007 , and next level month = January etc... i used to format my field like to_char(Myfield, 'YYYY') for Year Level and to_char(Myfield, 'MM') for my Month level.. but give me the error message.....i need the urgent solution with the example shows the date data type columns and then makes the Time Dimension on that field or another way ,,,,, Thanks thanks a lot.

  3. Hi i m making the cube useing the Work bench Analysis using the Monderian Scheema help on Foodmart database.

    <Schema>

    <Cube name="Sales">

    <Table name="sales_fact_1997"/>

    <Dimension name="Gender" foreignKey="customer_id">

    - 18 -

    <Hierarchy hasAll="true" allMemberName="All Genders" primaryKey="customer_id">

    <Table name="customer"/>

    <Level name="Gender" column="gender" uniqueMembers="true"/>

    </Hierarchy>

    </Dimension>

    <Dimension name="Time" foreignKey="time_id">

    <Hierarchy hasAll="false" primaryKey="time_id">

    <Table name="time_by_day"/>

    <Level name="Year" column="the_year" type="Numeric" uniqueMembers="true"/>

    <Level name="Quarter" column="quarter" uniqueMembers="false"/>

    <Level name="Month" column="month_of_year" type="Numeric" uniqueMembers="false"/>

    </Hierarchy>

    </Dimension>

    <Measure name="Unit Sales" column="unit_sales" aggregator="sum"

    formatString="#,###"/>

    <Measure name="Store Sales" column="store_sales" aggregator="sum"

    formatString="#,###.##"/>

    <CalculatedMember name="Profit" dimension="Measures" formula="[Measures].

    [store Sales]-[Measures].[store Cost]">

    <CalculatedMemberProperty name="FORMAT_STRING" value="$#,##0.00"/>

    </CalculatedMember>

    </Cube>

    </Schema>

    and after write the query into the MDX Query in Work bench it gives me the error message like

     

    Mondrian Error:Failed to parse query 'SELECT {[Measures].[unit Sales], [Measures].[store Sales]} ON COLUMNS,

    {[Time].[1997].[Q1].descendants} ON ROWS

    FROM [sales]

    WHERE [Gender].[F]'

     

    Mondrian Error:Error while parsing MDX statement 'SELECT {[Measures].[unit Sales], [Measures].[store Sales]} ON COLUMNS,

    {[Time].[1997].[Q1].descendants} ON ROWS

    FROM [sales]

    WHERE [Gender].[F]'

     

    Mondrian Error:MDX object '[Time].[1997].[Q1].[descendants]' not found in cube 'Sales'

     

    thanks for solving my porblem and give me proper solution to aviod write MDX query and Schema ... more when add another database using ODBC it doesnt shows the Tables in Workbench and Penthao Cube Designer as well..... Thanks for the Support......Hope for the positive reply.......

    Post edited by: muttou, at: 2007/09/19 13:06

  4. Exie wrote:

    Dear Sebastian thanks for ur resourceful reply..actually i need to know that is there any way to draw the results without writing or understanding the syntax of MDX Query(Design the business Logic via Wizards) and can we make the whole schema and MDX through Wizards.....and then deploy to the Jasper Server... thanks again to solve my problem... i will wait for ur positive reply again.....Thanks...

     

    ... Have you tried the JasperAnalysis Workbench ? I found it was a good start to building your cube definiition. It's all GUI based and you can simply select your dimensions and whip up an OLAP schema really easily.

     

    I cant help you with the MDX queries though, I just built mine manually.

    Dear thanks for ur reply. i need to know more that hows Jasper works on Swing JFrame Applicaions and on Web portal is Jasper Analysis & Server can Handle the larger Enterprise Level Data. actually i m interested in Star layer Cashe hows its handle all the computed data and at first it will take long delay to pick up the transactional data based on time dimension etc.. thanks again for your positive reply... Nasir

  5. csbac wrote:

    no you can't.
    ETL is for Export, Transform, Loading of data, not OLAP.
    Seb.

     

    dear thanks for ur reply about ETL working, could you please define 1 more thing that whats Loading of Data and where to use that feature. i mean to say that in Jasper Server Analysis reports is it export to PDF, Excel exports? and where to use the loading of data feature, thanks again for ur reply....hope for the positive reply. MUTTOU

    Post edited by: muttou, at: 2007/09/14 10:57

  6. Hi im new to Jasper ETL now does any body know that whats main functionality of Jasper ETL and can we draw the MDX and logical Schema model of our business system using jasper ETL.. I need the professional and summarized reply apart from the ETL documentation.... thanks for the reply and resource ful information.....

    Post edited by: muttou, at: 2007/09/14 06:19

  7. csbac wrote:

    Hi!
    The MDX query is not difficult to construct by hand, if you have the cube definition already.

    To start, it is usually easiest to create a simle query only and work on it with the JPivot controls, e.g.,
    Code:

    select
    {[Measures].[A Measure]}
    ON COLUMNS,
    {([Dimension1].[All], [Dimension2].[All])}
    ON ROWS
    from [Cube]

    when you have

    - a cube called Cube

    - a measure called "A Measure"

    - two dimensions Dimension1 and Dimension2 with "All" as allMemberName.

     

    The far more difficult stuff is to create the cube definition ... if this is your real problem, and you just put the wrong question, have a look at the Jasper Analysis Workbench.

    Also, you should get the written documentation of JasperAnalysis, as this stuff is a bit too complicated to explain in a forum ...

     

    Hope this helps,

    Sebastian

     

    Dear Sebastian thanks for ur resourceful reply..actually i need to know that is there any way to draw the results without writing or understanding the syntax of MDX Query(Design the business Logic via Wizards) and can we make the whole schema and MDX through Wizards.....and then deploy to the Jasper Server... thanks again to solve my problem... i will wait for ur positive reply again.....Thanks...

  8. Dear Sebastian thanks for ur resourceful reply..actually i need to know that is there any way to draw the results without writing or understanding the syntax of MDX Query(Design the business Logic via Wizards) and can we make the whole schema and MDX through Wizards.....and then deploy to the Jasper Server... thanks again to solve my problem... i will wait for ur positive reply again.....Thanks...
  9. Dear sir thanks for ur guide.........Sir i hav done all the efforts in this code but still there is exception... which is

    /////////////////////////////////////////////

    10 [main] ERROR digester.Digester - Digester.getParser:

     

    org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/dynamic

     

    at gnu.xml.aelfred2.JAXPFactory.setFeature(JAXPFactory.java:102)

     

    at org.apache.commons.digester.parser.XercesParser.configureXerces(XercesParser.java:185)

     

    at org.apache.commons.digester.parser.XercesParser.newSAXParser(XercesParser.java:138)

     

    at org.apache.commons.digester.ParserFeatureSetterFactory.newSAXParser(ParserFeatureSetterFactory.java:71)

     

    at org.apache.commons.digester.Digester.getParser(Digester.java:692)

     

    at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)

     

    at org.apache.commons.digester.Digester.parse(Digester.java:1647)

     

    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)

     

    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)

     

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)

     

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)

     

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)

     

    at awan.ReportDriver.runReport(ReportDriver.java:86)

     

    at awan.ReportDriver.main(ReportDriver.java:112)

     

    Could not create the report null

     

    ////////////////////////////////////////////////

    i dont know y i m getting this exception..sir plz i think problem is in this statement..

    JasperDesign jasperDesign = JRXmlLoader.load("D:/Nasir.jrxml");

    /////////////////////////////////

    also i hav studied the JRXmlLoader.load() class and its methods.....but still no solution..

    i need the solution on urgent basis.. more can u run the same code correctly on ur machine.........

    sir my OS is WinXP and JDK version is 1.6.0.......now plz help me out this.......thanks thanks................Nasir

  10. dear thanks for ur code sample i copy paste the same sample code into my project i m using the Borland Jbuilder2005 and installed all the jars but i m getting this exception after running ur code samplee plz help me out this...........

    /////////////////////////////////

    0 [main] ERROR digester.Digester - Digester.getParser:

    org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/dynamic

    at gnu.xml.aelfred2.JAXPFactory.setFeature(JAXPFactory.java:102)

    at org.apache.commons.digester.parser.XercesParser.configureXerces(XercesParser.java:185)

    at org.apache.commons.digester.parser.XercesParser.newSAXParser(XercesParser.java:138)

    at org.apache.commons.digester.ParserFeatureSetterFactory.newSAXParser(ParserFeatureSetterFactory.java:71)

    at org.apache.commons.digester.Digester.getParser(Digester.java:692)

    at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)

    at org.apache.commons.digester.Digester.parse(Digester.java:1647)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)

    at awan.ReportDriver.runReport(ReportDriver.java:87)

    at awan.ReportDriver.main(ReportDriver.java:136)

    Could not create the report null

    ///////////////////////////////////////////////

    again thanks for solving my problem..................

    hope for the positive response from u/.

  11. hi dear through Forum i learned much more about jasper reports..but actually whn i try to run the same code (on my PC, JDK-1.6.0) i got the following error messges....more i have configured all the jars into my Classpath..............any help to get escape from this Exception i would be so thank ful to u..

    Exception is ???????????????????????/

    10 [main] ERROR digester.Digester - Digester.getParser:

    org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/dynamic

    at gnu.xml.aelfred2.JAXPFactory.setFeature(JAXPFactory.java:102)

    at org.apache.commons.digester.parser.XercesParser.configureXerces(XercesParser.java:185)

    at org.apache.commons.digester.parser.XercesParser.newSAXParser(XercesParser.java:138)

    at org.apache.commons.digester.ParserFeatureSetterFactory.newSAXParser(ParserFeatureSetterFactory.java: 71)

    at org.apache.commons.digester.Digester.getParser(Digester.java:692)

    at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)

    at org.apache.commons.digester.Digester.parse(Digester.java:1647)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)

    at awan.ReportDriver.runReport(ReportDriver.java:79)

    at awan.ReportDriver.main(ReportDriver.java:133)

    Could not create the report null

    //////////////////////////////////////////////////////////

    thanks for ur support for this ....................

    Nasir (Sr, J2SE & J2EE Application Developer)

  12. hi dear through ur comeplete discussion i learned much more about jasper reports..Dear actually whn i try to run the same code of u over here.(on my PC) i got the following error messges....more i have configured all the jars into my Classpath..............any help to get escape from this Exception i would be so thank ful to u..

    Exception is ???????????????????????/

    10 [main] ERROR digester.Digester - Digester.getParser:

    org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/dynamic

    at gnu.xml.aelfred2.JAXPFactory.setFeature(JAXPFactory.java:102)

    at org.apache.commons.digester.parser.XercesParser.configureXerces(XercesParser.java:185)

    at org.apache.commons.digester.parser.XercesParser.newSAXParser(XercesParser.java:138)

    at org.apache.commons.digester.ParserFeatureSetterFactory.newSAXParser(ParserFeatureSetterFactory.java:71)

    at org.apache.commons.digester.Digester.getParser(Digester.java:692)

    at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)

    at org.apache.commons.digester.Digester.parse(Digester.java:1647)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)

    at awan.ReportDriver.runReport(ReportDriver.java:79)

    at awan.ReportDriver.main(ReportDriver.java:133)

    Could not create the report null

    //////////////////////////////////////////////////////////

    thanks for ur support for this ....................

    Nasir (Sr, J2SE & J2EE Application Developer)

  13. Dear sir Thanks for ur reply........yah i m using all these files into my Classpath............but still problem is same...more my Jasper Report code is as below.......i m unable to run this Report even its running well in iReports1.3.0...........again aditional support will be highly appreciated.........my Report code is as belew...........

    ///////////////////////////////////////////////////

    <?xml version="1.0" encoding="UTF-8" ?>

    <!-- Created with iReport - A designer for JasperReports -->

    <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

    <jasperReport

    name="Nasir"

    columnCount="1"

    printOrder="Vertical"

    orientation="Portrait"

    pageWidth="595"

    pageHeight="842"

    columnWidth="535"

    columnSpacing="0"

    leftMargin="30"

    rightMargin="30"

    topMargin="20"

    bottomMargin="20"

    whenNoDataType="NoPages"

    isTitleNewPage="false"

    isSummaryNewPage="false">

    <property name="ireport.scriptlethandling" value="0" />

    <property name="ireport.encoding" value="UTF-8" />

    <import value="java.util.*" />

    <import value="net.sf.jasperreports.engine.*" />

    <import value="net.sf.jasperreports.engine.data.*" />

     

    <queryString><![CDATA[select * from Advance order by CUID]]></queryString>

     

    <field name="ID" class="java.lang.Integer"/>

    <field name="Payment" class="java.lang.Double"/>

    <field name="Sale" class="java.lang.Double"/>

    <field name="Status" class="java.lang.String"/>

    <field name="PDate" class="java.sql.Timestamp"/>

    <field name="Description" class="java.lang.String"/>

    <field name="CUID" class="java.lang.Integer"/>

    <field name="TransactionNo" class="java.lang.String"/>

     

     

    <group name="Customer" >

    <groupExpression><![CDATA[$F{CUID}]]></groupExpression>

    <groupHeader>

    <band height="34" isSplitAllowed="true" >

    <textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

    <reportElement

    x="65"

    y="0"

    width="21"

    height="15"

    key="textField"/>

    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

    <textElement textAlignment="Right">

    <font size="10" isBold="true"/>

    </textElement>

    <textFieldExpression class="java.lang.Integer"><![CDATA[$F{CUID}]]></textFieldExpression>

    </textField>

    <staticText>

    <reportElement

    x="2"

    y="0"

    width="63"

    height="15"

    key="staticText-3"/>

    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

    <textElement>

    <font isBold="true"/>

    </textElement>

    <text><![CDATA[Customer ID:]]></text>

    </staticText>

    <rectangle radius="2" >

    <reportElement

    x="0"

    y="12"

    width="535"

    height="20"

    backcolor="#6666FF"

    key="rectangle-1"/>

    <graphicElement stretchType="NoStretch" pen="Thin"/>

    </rectangle>

    <staticText>

    <reportElement

    x="0"

    y="16"

    width="535"

    height="13"

    forecolor="#FFFFFF"

    key="staticText-4"/>

    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

    <textElement>

    <font size="9" isBold="true"/>

    </textElement>

    <text><![CDATA[ ID Payments Sales Status Date T-No Description]]></text>

    </staticText>

    </band>

    </groupHeader>

    <groupFooter>

    <band height="0" isSplitAllowed="true" >

    </band>

    </groupFooter>

    </group>

    <background>

    <band height="0" isSplitAllowed="true" >

    </band>

    </background>

    <title>

    <band height="0" isSplitAllowed="false" >

    </band>

    </title>

    <pageHeader>

    <band height="28" isSplitAllowed="true" >

    <staticText>

    <reportElement

    x="98"

    y="0"

    width="297"

    height="28"

    key="staticText-2"/>

    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

    <textElement textAlignment="Center">

    <font size="18" isBold="true"/>

    </textElement>

    <text><![CDATA[Hello Nasir Sales Report]]></text>

    </staticText>

    <textField isStretchWithOverflow="false" pattern="MMMMM dd, yyyy" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None" hyperlinkTarget="Self" >

    <reportElement

    x="453"

    y="7"

    width="82"

    height="12"

    key="textField"/>

    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

    <textElement>

    <font size="8"/>

    </textElement>

    <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>

    </textField>

    </band>

    </pageHeader>

    <columnHeader>

    <band height="0" isSplitAllowed="true" >

    </band>

    </columnHeader>

    <detail>

    <band height="11" isSplitAllowed="false" >

    <textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

    <reportElement

    x="0"

    y="0"

    width="34"

    height="11"

    key="textField"/>

    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

    <textElement textAlignment="Right">

    <font size="8"/>

    </textElement>

    <textFieldExpression class="java.lang.Integer"><![CDATA[$F{ID}]]></textFieldExpression>

    </textField>

    <textField isStretchWithOverflow="false" pattern="#,##0.0" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

    <reportElement

    x="34"

    y="0"

    width="55"

    height="11"

    key="textField"/>

    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

    <textElement textAlignment="Right">

    <font size="8"/>

    </textElement>

    <textFieldExpression class="java.lang.Double"><![CDATA[$F{Payment}]]></textFieldExpression>

    </textField>

    <textField isStretchWithOverflow="false" pattern="#,##0.0" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

    <reportElement

    x="89"

    y="0"

    width="39"

    height="11"

    key="textField"/>

    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

    <textElement textAlignment="Right">

    <font size="8"/>

    </textElement>

    <textFieldExpression class="java.lang.Double"><![CDATA[$F{Sale}]]></textFieldExpression>

    </textField>

    <textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

    <reportElement

    x="135"

    y="0"

    width="32"

    height="11"

    key="textField"/>

    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

    <textElement textAlignment="Left">

    <font size="8"/>

    </textElement>

    <textFieldExpression class="java.lang.String"><![CDATA[$F{Status}]]></textFieldExpression>

    </textField>

    <textField isStretchWithOverflow="false" pattern="dd-MMM-yy" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

    <reportElement

    x="167"

    y="0"

    width="43"

    height="11"

    key="textField"/>

    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

    <textElement textAlignment="Left">

    <font size="8"/>

    </textElement>

    <textFieldExpression class="java.sql.Timestamp"><![CDATA[$F{PDate}]]></textFieldExpression>

    </textField>

    <textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

    <reportElement

    x="214"

    y="0"

    width="42"

    height="11"

    key="textField"/>

    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

    <textElement textAlignment="Center">

    <font size="8"/>

    </textElement>

    <textFieldExpression class="java.lang.String"><![CDATA[$F{TransactionNo}]]></textFieldExpression>

    </textField>

    <textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

    <reportElement

    x="257"

    y="0"

    width="277"

    height="11"

    key="textField"/>

    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

    <textElement>

    <font size="8"/>

    </textElement>

    <textFieldExpression class="java.lang.String"><![CDATA[$F{Description}]]></textFieldExpression>

    </textField>

    <line direction="TopDown">

    <reportElement

    x="0"

    y="10"

    width="535"

    height="0"

    forecolor="#CCCCCC"

    key="line-1"/>

    <graphicElement stretchType="NoStretch" pen="Thin"/>

    </line>

    </band>

    </detail>

    <columnFooter>

    <band height="0" isSplitAllowed="true" >

    </band>

    </columnFooter>

    <pageFooter>

    <band height="13" isSplitAllowed="true" >

    <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >

    <reportElement

    x="170"

    y="0"

    width="100"

    height="13"

    key="textField"/>

    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

    <textElement textAlignment="Right">

    <font size="8" isBold="true"/>

    </textElement>

    <textFieldExpression class="java.lang.String"><![CDATA["Page " + $V{PAGE_NUMBER} + " of "]]></textFieldExpression>

    </textField>

    <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None" hyperlinkTarget="Self" >

    <reportElement

    x="270"

    y="0"

    width="100"

    height="13"

    key="textField"/>

    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

    <textElement>

    <font size="8" isBold="true"/>

    </textElement>

    <textFieldExpression class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER} + ""]]></textFieldExpression>

    </textField>

    </band>

    </pageFooter>

    <summary>

    <band height="0" isSplitAllowed="true" >

    </band>

    </summary>

    </jasperReport>

    ////////////////////////////////////////

    thnaks for ur positive respone..................Nasir.

    Sr. Application Developer (J2SE, J2EE) ANK soft, Ltd

    [file name=Nasir.jrxml size=11495]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/Nasir.jrxml[/file]

  14. Thanks for ur reply.. i have downloded the Project files. but when i run samples files i get the follwing exception from the Compiler.. My Code is

     

    code is /////////////////// JasperDesign jasperDesign = JRXmlLoader.load("D:/Nasir.jrxml");

    JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);

    Map parameters = new HashMap();

    parameters.put("", "Basic JasperReport");

    parameters.put("", new Double(25000.00));

    Connection jdbcConnection = connectDB(databaseName, userName, password);

    JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, jdbcConnection);

    // JasperManager.printReportToPdfFile(jasperPrint, "BasicReport.pdf");

    JasperViewer.viewReport(jasperPrint,true);

     

    /////////////////////////////////////////

    after compiling this code i Got the follwing Error Message which is below

     

    Exception is ///////////////////

    10 [main] ERROR digester.Digester - Digester.getParser:

     

    org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/dynamic

     

    at gnu.xml.aelfred2.JAXPFactory.setFeature(JAXPFactory.java:102)

     

    at org.apache.commons.digester.parser.XercesParser.configureXerces(XercesParser.java:185)

     

    at org.apache.commons.digester.parser.XercesParser.newSAXParser(XercesParser.java:138)

     

    at org.apache.commons.digester.ParserFeatureSetterFactory.newSAXParser(ParserFeatureSetterFactory.java:71)

     

    at org.apache.commons.digester.Digester.getParser(Digester.java:692)

     

    at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)

     

    at org.apache.commons.digester.Digester.parse(Digester.java:1647)

     

    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:238)

     

    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)

     

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:213)

     

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)

     

    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:151)

     

    at awan.ReportDriver.runReport(ReportDriver.java:79)

     

    at awan.ReportDriver.main(ReportDriver.java:133)

     

    Could not create the report null

     

    i m using the jdk1.6.0 on Windows XP service pack2.. any urgent help required. Thanks for this solution..

×
×
  • Create New...