Can i add JPanel to Jasper Report

I have a panel on which I have drawn some graphics and now I want this panel to be added on report, is this possible?
Can we add Jpanel to Jasper report, if anybody has any thoughts and ideas please share with me?
Thanks & regards,
- Prashant

Don't know exactly what you mean but this is how I add a JPanel to a JScrollPane.
public class Scroll extends JFrame{
JScrollPane jsp;
JPanel panel;
public Scroll(){
jsp = new JScrollPane();
panel = new JPanel();
jsp.getViewPort().add(panel);
getContentPane().add(jsp, BorderLayout.CENTER)
}

Similar Messages

  • Add Image to Jasper Report with Struts 2 and Hibernate

    Hi I want to add image to jasper report[pdf] in the environment of Struts 2 framework and hibernate. I am trying
    this for last couple of days, but i am unable to get the work done. if any body know the steps to add image to
    jasper reports, please help me or if u have any tutorials please let me know. I am using iReport-nb-3.5.0 to generate jasper files.
    Thanks in advance

    Finally i found a way to add image to jasper report. It is pretty simple, just give the exact image location to the image expression. In your web application, the image location may vary so, dynamically set the image location from your model class. Also, make sure that your lib folder contains itext-1.3.1.jar. If your lib folder contains itext-1.3.1.jar and iText-2.1.3.jar u will get like: java.lang.NoSuchMethodError: com.lowagie.text.Image.plainWidth()F
    So remove the iText-2.1.3.jar and keep only itext-1.3.1.jar, try this will work

  • Add parameter in jasper report query string

    Dear Experts,
    i developed a pdf report using jasperreports . in this reports i used a query string where dont have any parameter, now i want to add a parameter between querystring. how can i do this?? (i know another solution and that is using jrDatasource) in this context i dont want to do this beacuse then i have to do it again from begining.
    here is my XML FILE
    i just want to add a parameter in querysting
    like
    <queryString><![CDATA[SELECT   CH_RECORD_ID,FH_PRODUCT_ID,
    CH_SEQUENCE_NO FROM TABLE_NAE WHERE ID='<![CDATA[$P{CH_FULL_NAME}]]>'can i do this or how can i do this
    <?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="Statement"
               columnCount="1"
               printOrder="Vertical"
               orientation="Portrait"
               pageWidth="612"
               pageHeight="864"
               columnWidth="612"
               columnSpacing="0"
               leftMargin="0"
               rightMargin="0"
               topMargin="0"
               bottomMargin="0"
               whenNoDataType="BlankPage"
               isTitleNewPage="true"
               isSummaryNewPage="false">
         <queryString><![CDATA[SELECT   CH_RECORD_ID,FH_PRODUCT_ID,
    CH_SEQUENCE_NO,
    CH_CUSTOMER_NO,
    CH_FULL_NAME,
    CH_COMPANY_NAME,
    CH_ADDR1 as ADD1,
    CH_ADDR2 as ADD2,
    CH_CITY,
    CH_STATE,
    CH_CNTRY,
    CH_POSTCODE,
    CH_STMT_DATE,
    CH_STMT_END_DATE,
    CH_PAYDUE_DATE,
    CH_COMBINE_LIMIT,
    CH_BARCODED_COMBINE_LIMIT,
    AH_RECORD_ID,
    AH_SEQUENCE_NO,
    AH_CARDHOLDER_NO,
    AH_CARD_DESC,
    AH_CARD_DESC2,
    AH_BILLING_CURR_CD,
    AH_OUTSTD_BAL,
    AH_OUTSTD_BAL_S,
    AH_MIN_PMT,
    AH_BPON_OPEN,
    AH_BPNT_EARN,
    AH_BPNT_EARN_S,
    AH_BPNT_MGM,
    AH_BPNT_MGM_S,
    AH_BPNT_REDEEM,
    AH_BPNT_REDEEM_S,
    AH_BPNT_EXPIRY_MTH,
    AH_BPNT_EXPIRY_MTH_S,
    AH_BPNT_CLOSE,
    AH_BPNT_EXPIRY,
    AH_BPNT_EXP_DATE,
    AH_REWARDS_IND,
    AH_LINE_LIMIT,
    AH_AVAIL_LIMIT,
    AH_AVAIL_LIMIT_S,
    AH_AVAIL_CASH_LIMIT,
    AH_AVAIL_CASH_LIMIT_S,
    TD_RECORD_ID,
    TD_RECORD_TAG,
    TD_CARDHOLDER_NO,
    TD_CARDHOLDER_NAME,
    TD_BILLING_CURR_CD,
    TD_BAS_SUPP_IND,
    if(TD_TRXN_DATE="00000000",'        ',TD_TRXN_DATE) as TD_TRXN_DATE,
    if(TD_POST_DATE="00000000",'        ',TD_POST_DATE) as TD_POST_DATE ,
    TD_DESCRIPTION,
    TD_AMOUNT,
    TD_AMOUNT_S,
    TD_CARD_LIMIT FROM CUSTOMER_HEADER,
    ACCOUNT_HEADER, TRANSACTION_DETAIL,FILE_HEADER
    WHERE
    CH_RECORD_ID = AH_RECORD_ID AND
    AH_RECORD_ID = TD_RECORD_ID AND
    AH_BILLING_CURR_CD = TD_BILLING_CURR_CD AND
    TD_DESCRIPTION!='SUB TOTAL'
    ORDER BY CH_RECORD_ID,
    AH_BILLING_CURR_CD,
    TD_BILLING_CURR_CD,
    TD_RECORD_TAG, TD_POST_DATE]]></queryString>
         <field name="ADD1" class="java.lang.String"/>
         <field name="ADD2" class="java.lang.String"/>
         <field name="AH_AVAIL_CASH_LIMIT" class="java.lang.String"/>
         <field name="AH_AVAIL_CASH_LIMIT_S" class="java.lang.String"/>
         <field name="AH_AVAIL_LIMIT" class="java.lang.String"/>
         <field name="AH_AVAIL_LIMIT_S" class="java.lang.String"/>
         <field name="AH_BILLING_CURR_CD" class="java.lang.String"/>
         <field name="AH_BPNT_CLOSE" class="java.lang.String"/>
         <field name="AH_BPNT_EARN" class="java.lang.String"/>
         <field name="AH_BPNT_EARN_S" class="java.lang.String"/>
         <field name="AH_BPNT_EXPIRY" class="java.lang.String"/>
         <field name="AH_BPNT_EXPIRY_MTH" class="java.lang.String"/>
         <field name="AH_BPNT_EXPIRY_MTH_S" class="java.lang.String"/>
         <field name="AH_BPNT_EXP_DATE" class="java.lang.String"/>
         <field name="AH_BPNT_MGM" class="java.lang.String"/>
         <field name="AH_BPNT_MGM_S" class="java.lang.String"/>
         <field name="AH_BPNT_REDEEM" class="java.lang.String"/>
         <field name="AH_BPNT_REDEEM_S" class="java.lang.String"/>
         <field name="AH_BPON_OPEN" class="java.lang.String"/>
         <field name="AH_CARDHOLDER_NO" class="java.lang.String"/>
         <field name="AH_CARD_DESC" class="java.lang.String"/>
         <field name="AH_CARD_DESC2" class="java.lang.String"/>
         <field name="AH_LINE_LIMIT" class="java.lang.String"/>
         <field name="AH_MIN_PMT" class="java.lang.String"/>
         <field name="AH_OUTSTD_BAL" class="java.lang.String"/>
         <field name="AH_OUTSTD_BAL_S" class="java.lang.String"/>
         <field name="AH_RECORD_ID" class="java.lang.String"/>
         <field name="AH_REWARDS_IND" class="java.lang.String"/>
         <field name="AH_SEQUENCE_NO" class="java.lang.String"/>
         <field name="CH_BARCODED_COMBINE_LIMIT" class="java.lang.String"/>
         <field name="CH_CITY" class="java.lang.String"/>
         <field name="CH_CNTRY" class="java.lang.String"/>
         <field name="CH_COMBINE_LIMIT" class="java.lang.String"/>
         <field name="CH_COMPANY_NAME" class="java.lang.String"/>
         <field name="CH_CUSTOMER_NO" class="java.lang.String"/>
         <field name="CH_FULL_NAME" class="java.lang.String"/>
         <field name="CH_PAYDUE_DATE" class="java.lang.String"/>
         <field name="CH_POSTCODE" class="java.lang.String"/>
         <field name="CH_RECORD_ID" class="java.lang.String"/>
         <field name="CH_SEQUENCE_NO" class="java.lang.String"/>
         <field name="CH_STATE" class="java.lang.String"/>
         <field name="CH_STMT_DATE" class="java.lang.String"/>
         <field name="CH_STMT_END_DATE" class="java.lang.String"/>
         <field name="FH_PRODUCT_ID" class="java.lang.String"/>
         <field name="TD_AMOUNT" class="java.lang.String"/>
         <field name="TD_AMOUNT_S" class="java.lang.String"/>
         <field name="TD_BAS_SUPP_IND" class="java.lang.String"/>
         <field name="TD_BILLING_CURR_CD" class="java.lang.String"/>
         <field name="TD_CARDHOLDER_NAME" class="java.lang.String"/>
         <field name="TD_CARDHOLDER_NO" class="java.lang.String"/>
         <field name="TD_CARD_LIMIT" class="java.lang.String"/>
         <field name="TD_DESCRIPTION" class="java.lang.String"/>
         <field name="TD_POST_DATE" class="java.lang.String"/>
         <field name="TD_RECORD_ID" class="java.lang.String"/>
         <field name="TD_RECORD_TAG" class="java.lang.String"/>
         <field name="TD_TRXN_DATE" class="java.lang.String"/>
              <group  name="Customer_header" isStartNewColumn="false" isStartNewPage="true" isResetPageNumber="true" isReprintHeaderOnEachPage="true" minHeightToStartNewPage="0" >
                   <groupExpression><![CDATA[$F{CH_RECORD_ID}]]></groupExpression>
                   <groupHeader>
                   <band height="208"  isSplitAllowed="true" >
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="168"
                                  y="84"
                                  width="274"
                                  height="16"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_FULL_NAME}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="168"
                                  y="116"
                                  width="281"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{ADD1}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="168"
                                  y="100"
                                  width="179"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_COMPANY_NAME}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="239"
                                  y="148"
                                  width="119"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_CITY}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="168"
                                  y="148"
                                  width="70"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_POSTCODE}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="168"
                                  y="164"
                                  width="201"
                                  height="13"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_CNTRY}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="29"
                                  y="130"
                                  width="90"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_STMT_DATE}.substring(6,8)+"."+$F{CH_STMT_DATE}.substring(4,6)+"."+$F{CH_STMT_DATE}.substring(0,4)]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="470"
                                  y="130"
                                  width="81"
                                  height="13"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_PAYDUE_DATE}.substring(6,8)+"."+$F{CH_PAYDUE_DATE}.substring(4,6)+"."+$F{CH_PAYDUE_DATE}.substring(0,4)]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="476"
                                  y="67"
                                  width="46"
                                  height="13"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{FH_PRODUCT_ID}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="168"
                                  y="132"
                                  width="236"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{ADD2}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="529"
                                  y="67"
                                  width="28"
                                  height="13"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_RECORD_ID}]]></textFieldExpression>
                        </textField>
                   </band>
                   </groupHeader>
                   <groupFooter>
                   <band height="0"  isSplitAllowed="true" >
                   </band>
                   </groupFooter>
              </group>
              <group  name="Account_Header" isStartNewColumn="false" isStartNewPage="false" isResetPageNumber="true" isReprintHeaderOnEachPage="true" minHeightToStartNewPage="0" >
                   <groupExpression><![CDATA[$F{AH_BILLING_CURR_CD}]]></groupExpression>
                   <groupHeader>
                   <band height="175"  isSplitAllowed="true" >
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="12"
                                  y="16"
                                  width="156"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_CARDHOLDER_NO}.substring(0,4)+" "+$F{AH_CARDHOLDER_NO}.substring(4,8)+" "+$F{AH_CARDHOLDER_NO}.substring(8,12)+" "+$F{AH_CARDHOLDER_NO}.substring(12,16)]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="226"
                                  y="16"
                                  width="84"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Right" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_OUTSTD_BAL}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="417"
                                  y="16"
                                  width="90"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Right" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_MIN_PMT}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="0"
                                  y="95"
                                  width="128"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_CARDHOLDER_NO}.substring(0,4)+" "+$F{AH_CARDHOLDER_NO}.substring(4,8)+" "+$F{AH_CARDHOLDER_NO}.substring(8,12)+" "+$F{AH_CARDHOLDER_NO}.substring(12,16)]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="191"
                                  y="95"
                                  width="216"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_FULL_NAME}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="517"
                                  y="95"
                                  width="35"
                                  height="14"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="9"
                                  y="134"
                                  width="72"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_STMT_DATE}.substring(6,8)+"."+$F{CH_STMT_DATE}.substring(4,6)+"."+$F{CH_STMT_DATE}.substring(0,4)]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="123"
                                  y="135"
                                  width="69"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{CH_PAYDUE_DATE}.substring(6,8)+"."+$F{CH_PAYDUE_DATE}.substring(4,6)+"."+$F{CH_PAYDUE_DATE}.substring(0,4)]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="201"
                                  y="135"
                                  width="82"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Right" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_LINE_LIMIT}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="332"
                                  y="135"
                                  width="88"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Right" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_AVAIL_LIMIT}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="461"
                                  y="136"
                                  width="79"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Right" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_AVAIL_CASH_LIMIT}]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="284"
                                  y="135"
                                  width="44"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA["("+$F{AH_BILLING_CURR_CD}+")"]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="421"
                                  y="135"
                                  width="30"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_AVAIL_LIMIT_S}.equals("-")?"CR":""]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="541"
                                  y="136"
                                  width="22"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_AVAIL_CASH_LIMIT_S}.equals("-")?"CR":""]]></textFieldExpression>
                        </textField>
                        <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" >                         <reportElement
                                  mode="Opaque"
                                  x="337"
                                  y="16"
                                  width="19"
                                  height="15"
                                  forecolor="#000000"
                                  backcolor="#FFFFFF"
                                  positionType="Float"
                                  isPrintRepeatedValues="true"
                                  isRemoveLineWhenBlank="false"
                                  isPrintInFirstWholeBand="false"
                                  isPrintWhenDetailOverflows="false"/>
                             <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">
                                  <font fontName="Arial" pdfFontName="Helvetica" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="CP1252" isStrikeThrough="false" />
                             </textElement>
                        <textFieldExpression   class="java.lang.String"><![CDATA[$F{AH_OUTSTD_BAL_S}.equals("-")?"CR":""]]></textFieldExpression>
                        </textField>
                   </band>
                   </groupHeader>
                   <groupFooter>
                   <band height="0"  isSplitAllowed="true" >
                   </band>
                   </groupFooter>
              </group>
              <background>
                   <band height="0"  isSplitAllowed="true" >
                   </band>
              </background>
              <                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    HI.
    Try using Ireport for pass the parameters and edit the query easier.

  • How can i add servername to my report for all cataloged database

    1) Im using following sql statement to find the backup type,status and their timings and i would also like to see the databasename with it's corresonding servername.
    select
    DB_NAME,DB_KEY,
    input_type "Backup Object",
    output_device_type "Target Device",
    status "Status",
    output_bytes_display "Backup Size",
    time_taken_display "Time Taken",
    start_time "Backup Begin",
    end_time "Backup End"
    from rman.rc_rman_backup_job_details
    where start_time > sysdate - 1
    and input_type in ('DB INCR','DB FULL','ARCHIVELOG','BACKUPSET')
    order by DB_NAME,DB_KEY
    /

    The only information that will be available will be from one of the RC_* views. For a list of the views see the index in the Database Backup and Recovery Reference
    http://docs.oracle.com/cd/B28359_01/backup.111/b28273/index.htm#R
    The database name is available as the NAME column of the RC_DATABASE view. You will need to join this view to others at least on DB_KEY.
    http://docs.oracle.com/cd/B28359_01/backup.111/b28273/rcviews027.htm#sthref2607
    I'm not aware of any view that would have the server name. You will need to map the database name or id to your own table of server locations.

  • How can I add a 3D-GRAPH in a Report in Labview 5.1?

    I want to Create a form with text, Data, Header text and a 3D-Graph. I tryed to create a Report but I dont know how to inculde my 3D-Graph.
    Please Help.
    Thanks,
    PH!L

    Hi,
    The idea is to follow these steps:
    1. Right click on the 3D graph reference and select Create->Invoke Node from pop up menu.
    2. The invoke node will appear. Now right click on it and select Methods->Get Image.
    3. Now you have to save this image to your harddrive. To do it you have to use for example "Functions->Picture&Sound->Graphics Format->Write JPEG File.vi". You have to connect all the outputs of Invoke node.GetImage with corresponding inputs of this VI and also you have to specify the path of the file the image to be saved.
    4. Now you have a JPG file on you harddrive and you can easily add it to your report with "Functions->Report Generation->Append Image to Report.vi"
    I use LV6.0 and tried to create an example for you and save it to LV
    5.0. But without success.
    So here is an example in LV6.
    Good luck.
    Oleg Chutko.
    Attachments:
    Report.vi ‏42 KB

  • Add fields in delivery report (ROIGSD01) in TD.

    Dear Expert,
    Anyone knows how can i add fields in the report ROIGSD01? the one which I use to get the deliverys in TD
    I already added the fields in the ROIGSD01_ITEM_ALV structure, but I could not find the user-exit to fill this fields.
    anyone made it before?.
    I would realy appreciate you help.
    Best regards.

    Hi
    Madhu is right. Please, see the coding in include V50R_USEREXITS
    * 1. Add field to list-display
    * Userexits for additional fields on list display
    * use append-structure in DDIC at structure SHP_VL10_ITEM
    * and ad field value in one of these routines
    *INCLUDE LV50R_VIEWG02.       "POS_ITEM_FILL_USER:       SD/MM-orders
    *INCLUDE LV50R_VIEWG03.       "POSTAB_VEPVG_FILL_USER    SD-Index
    *INCLUDE LV50R_VIEWG06.       "POSTAB_VETVG_FILL_USER    MM-Index
    *INCLUDE LV50R_VIEWG07.       "POSTAB_DELIVERY_FILL_USER Delivery item
    Do double click and see the coding. If you are in ECC 6.0, do an implicit. If not, go to SCCR.
    I hope this helps you
    Regards
    Eduardo

  • Jasper Report closing application also what to do

    Hello friends,
    i can able to open the jasper report in jasper viewer
    from my application(developed in Swings).
    But when i am closing the jasper report itz also closing my application window .
    Please give your valuable advise
    thanking you in advance
    regards
    shashi

    I think yor preview window is using "EXIT_ON_CLOSE".
    I have te same exact problem and I remember I saw the solution on a forum when i was starting with jasper. However i dont remember where. When i find it i'll reply again

  • Struts & Jasper Report

    i wanna use jasperreport in my web application to print a report.i am using struts framework in my app.pls help me.how will i do it that reporting in my web app?
    my sample code is working in only server side. What should i do to work in client side for printing a report?
    ----My Codes--------
    public class denemeaction extends Action {
    private JasperReport jasperReport;
    private JasperPrint jasperPrint;
    private Object out;
    public denemeaction() {
    public ActionForward execute(ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws Exception{
    denemeform dform=(denemeform)form;
         File reportFile = new File("C:/omer.jasper");
    if (!reportFile.exists())
         throw new JRRuntimeException("File x.jasper not found. The report design must be compiled first.");
         JasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile.getPath());
         JasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, new HashMap(),new JREmptyDataSource());
         JasperPrintManager.printReport(jasperPrint,false);
    return mapping.getInputForward();
    Thanks ..

    Finally i found a way to add image to jasper report. It is pretty simple, just give the exact image location to the image expression. In your web application, the image location may vary so, dynamically set the image location from your model class. Also, make sure that your lib folder contains itext-1.3.1.jar. If your lib folder contains itext-1.3.1.jar and iText-2.1.3.jar u will get like: java.lang.NoSuchMethodError: com.lowagie.text.Image.plainWidth()F
    So remove the iText-2.1.3.jar and keep only itext-1.3.1.jar, try this will work

  • Can we add different pages in the jasper report

    Dear friends,
    Can anyone help out ,how to add different pages in the jasper report and also can i increase or decrease the textfield size dynamically,
    Thanks in advance
    Urgent

    http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=showcat&catid=8

  • How can I add a field to a Repeating Frame in the body of a 9i Report

    How can I add a field to a Repeating Frame in the body of an Oracle 9i Report whose source is in a higher group?
    I want to change an Oracle 9i report. The report has no header or trailer but only a body. The body has the parent frame fields & a repeating frame with four fields, A, B, C & D. They all seem to be in one group. I want to add another field E to the repeating frame whose source is from the 'header'.
    I added the field & created a boiler plate & then added the new field, E to the original group A, B, C & D. In the Property Inspector for the field, I pointed the source to the source column in the main query. However, when I run the report, I receive the error "Invalid body size". Some notes on Metalink indicate that this could be due to margins being out of the printable area.
    Moreover, after making the changes & after having unsuccessfully run the report, when I try to open the Page Layout for the report, I get no details.
    Thanks,

    Hi,
    i also got same query can u pls tell me elaborately, if u can can u pls send some code.
    Thanks & Regards
    Jagadeeshwar.B

  • Jasper report issue report row 65535 but can't generated correctly

    Hi All ,
    We are trying to create report with jasper report . The issue is sometime generated report can be open.
    Below is test case and result .
    1.     when dummy all the returned field of procedure to ‘1’ and 20000 rows are to printed in report. The file size is 7564K. The excel can be open after several minutes waiting.
    2.     When dummy the procedure only return 5000 rows with actual data, the field type may be char, number. The file size is 2010K. The excel can be open quickly.
    3.     When dummy the procedure only return10000 rows with actual data. The file size is 3999K. The excel cannot be open.
    What the issue may be?
    Below is our code.
         * Generate the the report, currently generate excel report.
         * @param results - data set return from procedure execution
         * @param parameters - input parameters for Jasper Report design
         * @param procName - Jasper file name
         * @param outputFile - used as report file name
         * @throws JRException - Jasper exception
    private void ReportGenerator(List<ScriptParameterObject> results,HashMap<String, Object> parameters, String procName,String outputFile) throws JRException, Exception
    logger.info("Creating report: " + outputFile + ".xls");
    //URL en = ClassLoader.getSystemResource("jasper"+java.io.File.separator+procName + ".jasper");
              URL en = ClassLoader.getSystemResource(procName + ".jasper");
    if(en==null)
    throw new Exception("Can't find jasper file: " + procName + ".jasper");
    logger.debug("Loading jasper file: " + en.getPath());
    //InputStream isJasper = ClassLoader.getSystemResourceAsStream("jasper"+java.io.File.separator+procName + ".jasper");
    InputStream isJasper = ClassLoader.getSystemResourceAsStream(procName + ".jasper");
    JasperReport relatorio = (JasperReport) JRLoader.loadObject(isJasper);
              SapiData sapiData = new SapiData(results);
              logger.debug("Filling report file ..." + results.size());
    JasperPrint impressao=null;
    try{
              impressao = JasperFillManager.fillReport(relatorio,parameters, sapiData);
    catch(Exception ex){
    System.out.println(ex); ---never catch error. but not know why the .xls can't open
    if (impressao == null) {
    logger.debug("impressao == nul.");
    logger.debug("Filled report file successfully.");
              impressao.setLocaleCode(Locale.getDefault().getCountry());
              JRAbstractExporter saida = null;
              saida = new JRXlsExporter();
              saida.setParameter(JRExporterParameter.JASPER_PRINT, impressao);
              saida.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, outputFile     + ".xls");
              saida.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET,Boolean.FALSE);
              saida.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND,Boolean.TRUE);
              saida.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS,Boolean.TRUE);
              saida.setParameter(JRXlsExporterParameter.IS_COLLAPSE_ROW_SPAN,Boolean.TRUE);
              saida.setParameter(JRXlsExporterParameter.MAXIMUM_ROWS_PER_SHEET, Integer.decode("5000"));
    logger.debug("Exporting excel report file ...");
              saida.exportReport();
              logger.debug("Generated excel report file successfully: "+outputFile + ".xls");
              /* - used for generate html report
              JRAbstractExporter htmlExp = new JRHtmlExporter();
              htmlExp.setParameter(JRExporterParameter.JASPER_PRINT, impressao);
              htmlExp.setParameter(JRHtmlExporterParameter.OUTPUT_FILE_NAME,outputFile + ".html");
              htmlExp.setParameter(JRHtmlExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS,Boolean.TRUE);
              htmlExp.setParameter(JRHtmlExporterParameter.IS_WRAP_BREAK_WORD,Boolean.TRUE);
              htmlExp.exportReport();
         }

    I hava the same problem.Hava you solved it?

  • How can I add a custom title to multiple ALV reports selected by layout?

    Greetings and good day, everyone!
    Within the past week or so, I posted a question asking the best way to create a program that would generate multiple ALV reports.  I got some great ideas, and I've actually coded up a few simple demos based on your feedback -- thank you!
    Here's the issue I'm running into:  Many of you suggested that I put all report records into one table, and create a field that I could use to filter on later to determine which fields I want to display for the report.  For example, if I have 3 different reports, I put all the fields for all 3 reports into a table.  I then add a "report key" field.  As I put records into the report table for report 1, I code "01" into the "report key" field.  I do the same for reports 2 and 3, assigning each a "report key" of "02" and "03", respectively.
    I then set up layouts in the ALV for each of the three reports, using the filter option to only pull records with the "report key" value for that particular report.  This all works wonderfully!  However, I seem to have lost the ability to show a custom title for each layout.  I can create a generic TITLEBAR (like "Reporting Center") but I don't know how to reset the grid's title when a layout is selected.  I was hoping that SAP might use the layout description as the title on each page, but it doesn't -- it uses the TITLEBAR text.
    Any ideas?  I think this might be the best way to program multiple ALV reports, but if I can't display the right report title for a particular layout, I'll probably have to go back to my other alternative of putting each report in its own container/screen, and having a button to access each report from the application toolbar.
    Thanks,

    Srikanth,
    I don't have any Selection Screen radio buttons for the user to select a particular report; in my case, they specify some needed criteria by the program in the Selection Screen, the program goes off and does a fair bit of processing/updating, and then displays the ALV reports when finished.  They don't want to choose one particular report to view ahead of time; they want to have all 3 (in my case) there to see what processed correctly, what was eligible to process but kicked out with errors, and what failed some matching checks done up front (this layout includes additional fields from the input file so they can see what didn't match up against R/3).
    So, while I do like the code example you presented, I don't think it's going to help me in my case.

  • How can I add the number of columns/row starting with the build in "Text Report" example in the LabVIEW

    Hi All,
    I am wondering how can I add the numbers of row and column from the existing build-in "text report"
    VI ? If possible, would you mind showing me step-by-step because I am a new user and I am not familiar with the labview software.
    Thanks

    Hi,
    Easy text Report is for saving to a file. Do you mean you just want to add the totals of two arrays and write that? In that case I would just append the totals before writing to file.
    Jeff | LabVIEW Software Engineer

  • Can we add links to perform editing, modify properties in KM Report output?

    Hello,
    I have created KM report which provides list of XML forms which satisfy specific conditions. Now I want to add links on report output so that user can click on that link and can directly start editing documents if needed. Also I want to provide direct link which can open properties of document.
    Also can we add images/ icons on a particular row like traffic lights icons: Green, Yellow, Red.
    Thank you,
    Nitesh Shelar

    I have another question related to following class may be that can put more light on my base requirement. I am creating Result item object based on details I found on various KM articles for KM reports. I wonder what is that List executedCommands, object.
    public static ResultItem getInstance(RID rid,
                                         Map properties,
                                         List executedCommands,
                                         boolean hadError,
                                         String statusDescription)
    Can any one tell me about this List executedCommands and what exactly I should pass there and how it is going to affect my output?

  • Report folder permission can not add group

    after upgrade to 11.1.1.2.0 ,when set report folder's permission, in the group list ,can only see "Administors", no other groups created by myself.
    how can i add other groups to this list?

    You are upgrading from which version to 11.1.1.2.0? Have you ensured that these groups are present in your LDAP?

Maybe you are looking for