8 thoughts on “forum

  1. I have a bug to report. Using the latest version 5.0.7.

    AustText is not working properly. I have the following code for footer from the examples

    drb.addAutoText(“Profile Report”, AutoText.POSITION_FOOTER, AutoText.ALIGNMENT_LEFT, 200);
    – The above is working
    ;drb.addAutoText(AutoText.AUTOTEXT_PAGE_X_OF_Y, AutoText.POSITION_FOOTER, AutoText.ALIGNMENT_CENTER, 30, 30);
    – The above is not working. Displaying ‘autote 19’ (19 is no of pages)
    ;drb.addAutoText(AutoText.AUTOTEXT_CREATED_ON, AutoText.POSITION_FOOTER, AutoText.ALIGNMENT_RIGHT, AutoText.PATTERN_DATE_DATE_TIME);
    – The above not working. Displaying ‘autoteext’

    Appreciate any help.

  2. Hayrol Reyes says:

    I have problems with addAutoText. It is not working at all… it produce a IndexOutOfBound exception with the message of “0”.

    I am just adding couple of auto texts to the footer:

    drb.addAutoText(AutoText.AUTOTEXT_PAGE_X_OF_Y, AutoText.POSITION_FOOTER, AutoText.ALIGNMENT_RIGHT, 30, 30, atStyle1);
    drb.addAutoText(AutoText.AUTOTEXT_CREATED_ON, AutoText.POSITION_FOOTER, AutoText.ALIGNMENT_LEFT, AutoText.PATTERN_DATE_DATE_TIME);

    An my previous report definition is quite simple:

    DynamicReportBuilder drb = new DynamicReportBuilder();
    drb.setTitle(tab.getTitle())
    .setSubtitle("Autogenerated Report by TagControl ERC")
    .setDetailHeight(15)
    .setMargins(30, 20, 30, 15)
    .setDefaultStyles(titleStyle, subtitleStyle, headerStyle, detailStyle)
    .addStyle(subtitleStyleParent) //register the parent style
    .setPrintBackgroundOnOddRows(true);
    ...
    drb.setUseFullPageWidth(true);
    drb.setPageSizeAndOrientation(Page.Page_Letter_Landscape());
    ...

    So, if I remove the couple autoTexts the report is created and generated without problems!.. what should I do in order to add couple of lines as page footer (for Page X of Y and creation DateTime)?

    Regards,

  3. I must say you have high quality articles here.

    Your website should go viral. You need initial traffic only.
    How to get it? Search for; Etorofer’s strategies

  4. Hi,

    I am using iReport 3.0 for report development and I’m new in JasperReports.

    I have a report which generate a csv file, but i need to remove the Extra separator at the end of both the header and footer lines:

    H;201905;file;
    D;toto;titi;tata
    D;tyty;tutu;tete
    T;2;;

    Where :
    •H..is the header line
    •D is the detail
    •And T is the footer line

    So please advise how can I remove the last semicoolon (Or whatever separator) from the lines:
    1-H;201905;file
    And
    2-T;2

    The result expected should be then:

    H;201905;file
    D;toto;titi;tata
    D;tyty;tutu;tete
    T;2

    Thanks !

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.