khare.siddharth28
-
Posts
2 -
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 khare.siddharth28
-
-
I am using FastReportBuilder, DJCrosstab, CrosstabBuilder and similar classes to build my dynamic jasper report. I want to have a crosstabheader cell with multiple text fields using dynamic jasper, I am getting the required report format by manually changing the JRXML. Can this be done by dynamic jasper? Here is what I need in JRXML.
<crosstabHeaderCell><cellContents backcolor="#D0F2DC" mode="Opaque"><textField isStretchWithOverflow="true"><reportElement x="0" y="0" width="375" height="70"/><box><topPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/><leftPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/><bottomPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/><rightPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/></box><textElement/><textFieldExpression><![CDATA["Val1, Val2 vs.nVal3, Val4"]]></textFieldExpression></textField><textField isStretchWithOverflow="true"><reportElement x="0" y="35" width="300" height="35"/><box><topPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/><leftPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/><bottomPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/><rightPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/></box><textElement/><textFieldExpression><![CDATA["Val3"]]></textFieldExpression></textField><textField isStretchWithOverflow="true"><reportElement x="300" y="35" width="74" height="35"/><box><topPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/><leftPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/><bottomPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/><rightPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/></box><textElement/><textFieldExpression><![CDATA["Val4"]]></textFieldExpression></textField></cellContents></crosstabHeaderCell>
when am trying to get pdf i got empty pdf. anyone can help me
in Products
Posted
have you compiled your jrxml file into jasper object.
secondly why are u using this implementation of JasperRunManager.runReportToPdf when your Connection object is null, instead use a JREmptyDataSource.(possibly JasperEngine is trying to use Connection object to open a connection and getting a null pointer exception)