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

kumarjasper

Members
  • Posts

    15
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by kumarjasper

  1. Here i am attaching the sample XML code of the jasperPrint object.When printing this pdf , Quality indicator-insufficient cellularity. is actually missing. Any ideas why only that part of the text is missing. everyting else is printing fine.

     

     

     

    <text textAlignment="Right" verticalAlignment="Bottom" textHeight="11.499023" isStyledText="true" lineSpacingFactor="1.1499023" leadingOffset="-1.9555664">

     

    <reportElement style="BoldText" mode="Transparent" x="25" y="336" width="136" height="12" forecolor="#000000"/>

     

    <font isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1252" isPdfEmbedded="true"/>

     

    <textContent><![CDATA[iNTERPRETATION:]]></textContent>

     

    </text>

     

    <text textAlignment="Left" verticalAlignment="Bottom" textHeight="94.29199" isStyledText="true" lineSpacingFactor="1.1499023" leadingOffset="-2.3466797">

     

    <reportElement style="Text" mode="Transparent" x="168" y="336" width="420" height="94" forecolor="#000000"/>

     

    <textContent><![CDATA[<style isBold="true" size="12" pdfFontName="Helvetica-Bold">Unsatisfactory for Evaluation. See Comment.

     

     

     

    Comment: Specimen is processed and examined, but is unsatisfactory for evaluation of epithelial abnormalities because of one or more of the following quality indicators:

     

    </style>

     

    <style isBold="true" size="12" pdfFontName="Helvetica-Bold">Quality indicator-insufficient cellularity.</style>]]></textContent>

     

    </text>

  2. Hi,

    I have subreport in title band. In that sub report i have many text fileds one below the other.when the first text field streches more than one line it does not display the next lines...instead its displaying the blank lines...

    i am attaching my subreport.

    in the subreport, if the patientFullName name streches more than one line the it shows blank lines after first line..i am also attaching screenshot of the problem scenario.

     

    any idea? reply is greatly appreciated.

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

  3. PDF size is too big after adding image.

     

    i have pdf with out image = 106KB.

    i added 500KB image to the report, the pdf size is increased to 1.7MB.

     

    after adding image PDF size inreased enormously.Any solution to the above problem. Quick reply is appreciated.

     

    Thanks

    Kumar.

  4. i tried it but still it overlaps the Text. Here i am attaching the sample picture of it.

     

    Here is the code i used it for in the background band.

     

    <background>

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

    <rectangle>

    <reportElement key="rectangle" positionType="Float" x="0" y="0" width="572" height="731"/>

    <graphicElement/>

    </rectangle>

    <staticText>

    <reportElement x="56" y="163" width="452" height="60" mode="Transparent">

    <printWhenExpression><![CDATA[new Boolean($F{previewOnly}.equals("PREIVIEW"))]]></printWhenExpression>

    </reportElement>

    <textElement textAlignment="Center">

    <font fontName="Book Antiqua" isBold="false" isItalic="true" size="48"/>

    </textElement>

    <text><![CDATA[PREVIEW ONLY]]></text>

    </staticText>

    </band>

    </background>

    Post edited by: kumarjasper, at: 2006/10/05 19:07

  5. Streching works excellent in detail section but it doesn't work in groupHeader.

     

    i tried my application by placing two subreports in a seperate bands instead of same band. but still doesn't work. Is there anything which i am missing in the above posted XML.

     

    let me know if anyone knows the solution.

     

    Thanks

    Kumar

  6. Hi

    i am trying to get the waternark on my pdf. But the water mark overlaps the Text on PDF.But i want the water mark to be translucent. i m using the below code to get watermark on PDF.

     

    public byte[] addWatermark(byte[] bytes) {

    ByteArrayOutputStream bos = new ByteArrayOutputStream();

    try {

    PdfReader reader = new PdfReader(bytes);

    int n = reader.getNumberOfPages();

    PdfStamper stamp = new PdfStamper(reader, bos);

    int i = 0;

    PdfContentByte under;

    BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA,BaseFont.WINANSI, BaseFont.EMBEDDED);

    while (i < n) {

    i++;

    under = stamp.getUnderContent(i);

    under.setGrayFill(0.9f);

    under.beginText();

    under.setFontAndSize(bf, 40);

    under.showTextAligned(PdfContentByte.ALIGN_CENTER, "PREVIEW ONLY",300, 500, 0);

    under.endText();

    }

    stamp.close();

    } catch (Throwable de) {

    de.printStackTrace();

    }

    return

     

    if anyone knows about how to make watermark transparetn so that the text will be visisble to users.

     

    Thanks

    Kumar

  7. Hi,

    I am calling subreport from group header. I have text field in subreport. The text field in subreport doesn't strech when the content overflows the height of Textfield.

     

    Here is the scenario:

     

    The group definition is

     

    <group name="Group_1">

    <groupExpression><![CDATA[null]]></groupExpression>

    <groupHeader>

    <band height="85">

    <subreport>

    <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="3" y="43" width="566" height="40" isRemoveLineWhenBlank="true">

    <printWhenExpression><![CDATA[new Boolean($F{clinicalHistory}.size() > 0)]]></printWhenExpression>

    </reportElement>

    <dataSourceExpression><![CDATA[new JRBeanCollectionDataSource((Collection) $F{clinicalHistory})]]></dataSourceExpression>

    <subreportExpression class="java.lang.String"><![CDATA[$P{TEMPLATE_DIR}+"ClinicalInfo.jasper"]]></subreportExpression>

    </subreport>

    <subreport>

    <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="3" y="2" width="566" height="40" isRemoveLineWhenBlank="true">

    <printWhenExpression><![CDATA[new Boolean($F{amendments}.size() > 0)]]></printWhenExpression>

    </reportElement>

    <dataSourceExpression><![CDATA[new JRBeanCollectionDataSource((Collection) $F{amendments})]]></dataSourceExpression>

    <subreportExpression class="java.lang.String"><![CDATA[$P{TEMPLATE_DIR}+"Amendments.jasper"]]></subreportExpression>

    </subreport>

    </band>

    </groupHeader>

    <groupFooter>

    <band/>

    </groupFooter>

    </group>

     

     

    SUBREPORT'S DETAIL SECTION IS:

     

    <detail>

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

    <textField isStretchWithOverflow="true" isBlankWhenNull="true">

    <reportElement key="textField" style="Text" positionType="Float" x="1" y="0" width="560" height="15" isRemoveLineWhenBlank="true" stretchType="RelativeToTallestObject" isPrintWhenDetailOverflows="true">

    <printWhenExpression><![CDATA[new Boolean($F{content} != null)]]></printWhenExpression>

    </reportElement>

    <textElement isStyledText="true"/>

    <textFieldExpression class="java.lang.String"><![CDATA[$F{content}.toString()]]></textFieldExpression>

    </textField>

    </band>

    </detail>

     

    Please let me know if anybody knows the solution

     

    Thanks

    Kumar

×
×
  • Create New...