pedro.riky
Members-
Posts
106 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Downloads
Everything posted by pedro.riky
-
Hi all i have a problem with xpath. I have a master report with xml data : <pagamenti> <pagamento id="7941" desc="ABC"> <dettaglio-pagamento> <importo-pagamento>2.799,47 </importo-pagamento> <tipo-pagamento>4</tipo-pagamento> <tipo-partita>2</tipo-partita> </dettaglio-pagamento> </pagamento> </pagamenti> i call the subreport and it use the query <![CDATA[/pagamenti/pagamento[@id=$P{id}]/dettaglio-pagamento]]> how i can get the desc attribute. i read some xpath reference and i find that .. get me the parent node then i try ..@desc but i receive a compiling error, how i can get the desc attribute?
-
Hi all my problem is how to show or not to show a subreport header. I have a xml datasource and in the master report i call a subreport. The subreport have a xpath expression like goofy[@id = $P{id}] then in the master im not able to say if the subreport will have or not detail data. I want to say if in subreport is possible to get if the xpath expression have or not result to decide if the header can be displayed. Thanks!!
-
Hi all i want to make a reports that show my data before and after some operation. I want to design a report with the page divided in two part the before and the after. I try to do this with subreport,in a groupheader i call the same subreport 2 times with different x axis but the second call design my data in a y axis like the height of the first subreport. Any idea? Thanks!
-
Solved i use Document document = JRXmlUtils.parse(arrayInputStream); params.put(JRXPathQueryExecuterFactory.PARAMETER_XML_DATA_DOCUMENT,document); instead of JRXmlDataSource dataSource = new JRXmlDataSource(arrayInputStream,"partite") Thanks for our works!!
-
Hi Lucian, i know but i try some solution but i can't do the works. I have an xml like that importo-debito="1.741,67 " num-partita="188178" tipo-partita="3"> 0,00 20,00 1.741,67 1.741,67 0,00 20,00 1.741,67 1.741,67 i create tha xmldatasource JRXmlDataSource dataSource = new JRXmlDataSource(arrayInputStream,"partite"); and the the xsl (The last edition) partite/partita @descrizione i try some solution but i get or null or blank value and i get print only 1 detail like the engine can't find the other tags. Any idea?
-
Hi all i have a xml like this: <root> <a attributeA="1"> <b> <c/> </b> <b> </c> </b> </a> </root> i want that detail are a tags and i set the xpath properly but i want to make group on attributeA of a tag but i don't undertstand how i can declare it on the field session. <field name="attributeA" class="java.lang.String"> <fieldDescription><![CDATA[a[atttributeA]]]></fieldDescription> ????????? </field> Thanks!
-
Hi all i have a master report with ResultSetDataSource and a group. I have also an hashmap that i fill with some value ,when group change i call a subreport that have JRXmlDataSource that i built by a custom method that convert my hashmap in xml this is the result <?xml version="1.0" ?> <saldi> <saldo> <prodotto>790</prodotto> <magazzino>1</magazzino> <importo>1,00 </importo> </saldo> <saldo> <prodotto>790</prodotto> <magazzino>0</magazzino> <importo>1,00-</importo> </saldo> </saldi> my subreport have a xpathquery = <queryString language="xPath"><![CDATA[/saldi/saldo/]]></queryString> a field <field name="prodotto"> <fieldDescription><![CDATA[prodotto]]></fieldDescription> </field> but when i fill the print i see that subreport is called but there is non one row of my xml. Where i'm in wrong?
-
Thank Lucian!Thank you very much for your work!
-
Hi all i search but i don't found a solution. I want to return the value REPORT_COUNT variable to my java code or simply get the number of rows of my detail section. Any solution? Thanks!!!!!
-
Hi all i have a group with multiple subreport. My proble is that the first subreport text is overlapped by the follow subreport,i try positionType =Float but it not works for me ,i read in the forum the topic for the Dummy Group but is not that i want Code: <group name="ProdGroup" isStartNewColumn="false" isStartNewPage="false" isReprintHeaderOnEachPage="true"> <groupExpression> <![CDATA[$F{codice}]]></groupExpression> <groupHeader> <band height="2"> <line > <reportElement x="0" y="0" width="802" height="1" > </reportElement> <graphicElement pen="Thin"/> </line> </band> </groupHeader> <groupFooter> <band height="20" isSplitAllowed="false"> <rectangle> <reportElement x="450" y="4" width="100" height="12" backcolor="#CCCCCC"/> <graphicElement stretchType="NoStretch" pen="None"/> </rectangle> <!-- <line > <reportElement x="0" y="0" width="802" height="1"></reportElement> </line> --> <textField isBlankWhenNull="true" isStretchWithOverflow="true" pattern="#,##0.00"> <reportElement positionType="Float" x="450" y="3" width="100" height="12" style="Arial_Bold"/> <textElement textAlignment="Right"/> <textFieldExpression class="java.math.BigDecimal"> <![CDATA[$V{totgiac}]]> </textFieldExpression> </textField> <rectangle> <reportElement x="650" y="0" width="150" height="14" backcolor="#CCCCCC"/> <graphicElement stretchType="NoStretch" pen="None"/> </rectangle> <textField isBlankWhenNull="true" isStretchWithOverflow="true" pattern="#,##0.00"> <reportElement positionType="Float" x="650" y="3" width="150" height="12" style="Arial_Bold"/> <textElement textAlignment="Right"/> <textFieldExpression class="java.math.BigDecimal"> <![CDATA[$V{totprezzo}]]> </textFieldExpression> </textField> <subreport> <reportElement isPrintRepeatedValues="false" x="0" y="0" width="450" height="10" isRemoveLineWhenBlank="true" backcolor="#ffcc99" positionType="Float"> </reportElement> <subreportParameter name="dataDa"> <subreportParameterExpression><![CDATA[$P{dataDa}]]></subreportParameterExpression> </subreportParameter> <subreportParameter name="dataA"> <subreportParameterExpression><![CDATA[$P{dataA}]]></subreportParameterExpression> </subreportParameter> <subreportParameter name="cpro"> <subreportParameterExpression><![CDATA[$F{codice}]]></subreportParameterExpression> </subreportParameter> <connectionExpression><![CDATA[$P{connection}]]></connectionExpression> <subreportExpression class="net.sf.jasperreports.engine.JasperReport"><![CDATA[$P{subreporttot}]]></subreportExpression> </subreport> <!-- STAMPA I DETTAGLI PER I CARICHI --> <subreport> <reportElement isPrintRepeatedValues="false" x="0" y="0" width="802" height="14" isRemoveLineWhenBlank="true" backcolor="#ffcc99" positionType="Float"> <printWhenExpression> <![CDATA[new Boolean($F{isDettaglio} .equals("true"«») && $P{isDettagliato})]]> </printWhenExpression> </reportElement> <subreportParameter name="dataDa"> <subreportParameterExpression><![CDATA[$P{dataDa}]]></subreportParameterExpression> </subreportParameter> <subreportParameter name="dataA"> <subreportParameterExpression><![CDATA[$P{dataA}]]></subreportParameterExpression> </subreportParameter> <subreportParameter name="cpro"> <subreportParameterExpression><![CDATA[$F{codice}]]></subreportParameterExpression> </subreportParameter> <connectionExpression><![CDATA[$P{connection}]]></connectionExpression> <subreportExpression class="net.sf.jasperreports.engine.JasperReport"><![CDATA[$P{subreport}]]></subreportExpression> </subreport> <!-- STAMPA I DETTAGLI PER I SCARICHI --> </band> </groupFooter> </group> Am i in fault? There is a workaround? Thanks!!!!
-
Hi all i have a question? i want to set a background to a textfield and i st the attribute background and the mode opaque and works fine but i want a more advanced behaviour! I have a textfield large 200 but the data that contains fill only 100 is possible to paint background only for 100? Thanks!!
-
Hello i'm testing Barbecue and i'm searching for gurus. I print EAN13 and Code128 it works fine but i can't resizing the image : Code: <image scaleImage="RetainShape" onErrorType="Icon" isLazy="true"> <reportElement x="0" y="200" width="150" height="30"/> <imageExpression class="net.sf.jasperreports.engine.JRRenderable "> <![CDATA[ new net.sf.jasperreports.renderers.BarbecueRenderer(BarcodeFactory.createCode128($P{matricola1})) ]]> </imageExpression> </image> I try all the scale but my image is truncated. I think is because is a rendereable but not a image????? Any solution? Another question interleaved 2 of 5 :how i can make the end and beginning characters? Thank!!!
-
Hi all i have a problem to decode code39 i try barbecue classes and it works fine but when i add the beginning end the ending character that are * i get an exception Illegal character - try using extended mode if you need to encode the full ASCII character set how i can implements the extended mode? Thanks
-
Hi all i want to print barcodes 3 of 9. I try the Barbecue example i implemented my class to renderer barcode and i call its from jrxml Code:public void render(Graphics2D g2d, Rectangle2D rect2d) throws JRException { if (this.barcode == null) { return; } Rectangle r = this.barcode.getBounds(); AffineTransform oldTF = g2d.getTransform(); try { this.barcode .draw(g2d, (int) (rect2d.getX()), (int) (rect2d.getY())); } catch (OutputException e) { // TODO Auto-generated catch block e.printStackTrace(); } //g2d.setTransform(oldTF); } i can print barcodes but they are unredeable by the scanner Can you help me?
-
Ok i solve it.It's my error in classpath. Thanks
-
The error is caused by javac -classpath myjar.jar c:nameofclass.java ???
-
Hi all i have a error : jasperreports error compiling report java source file If i try to print on my computer thre is no problem,than i install the application on a customer pc and i get this error!What is the problem?The enviroment? Thanks
-
Hi all i have a big report with about 750 pages. I use a JRResultSetDataSource,the db takes about 30 seconds to return the result set but the filling operation of the pdf file takes about 15 min!Is too for me! I try to use virtualizer but the performance aren't improve ,where i'm in fault? Code:JRSwapFile swapFile = new JRSwapFile("c:\",1024, 1024); JRSwapFileVirtualizer swapFileVirtualizer = new JRSwapFileVirtualizer(2,swapFile,true); hashMap.put(JRParameter.REPORT_VIRTUALIZER, swapFileVirtualizer); jasperPrint = JasperFillManager.fillReport( compileJasper(byteArrayOutputStream.toByteArray()), hashMap, dataSource); swapFileVirtualizer.setReadOnly(true); Any suggestion to improve the speed are accepted! Thanks!
-
I try to explain better. if i have the same tag with different id attribute what can i get the tag with a specific id <tag id = "1"><desc>desctag 1</desc></tag> <tag id = "2"><desc>desctag 2</desc></tag> if i declare a field <field name="description" class="java.lang.String"> <fieldDescription><![CDATA[/root/tag[id=1]]]></fieldDescription> </field> Is wrong?
-
Hi all i have a xml datasource and i have the same tag that is identified by a id.I want to declare a field that rappresenting this data by i obtain only a null value. Where i fall? XML <address id="invoiced"><last-name>Pincopallo</last-name></address> <address id="incoterm"><last-name>Ciccio</last-name></address> i declare the fields <field name="delivery-address-name" class="java.lang.String"> <fieldDescription><![CDATA[/delivery-otes/delivery- note/address[id=invoiced]/first-name]] ></fieldDescription> </field> but return NULL..... Thanks!
-
Thank you this is the solution!
-
Can i draw a table like that in the included file behind detail page area? I could draw a series of rectangles, but i don't know how to do this? Is it possible? Best regards size=226]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/PREFICATO.PNG Post edited by: pedro.riky, at: 2007/05/21 15:09
-
Can i draw a table like that in the included file behind detail page area? I could draw a series of rectangles, but i don't know how to do this? Is it possible? Best regards
-
Can i draw a table like that in the included file behind detail page area? I could draw a series of rectangles, but i don't know how to do this? Is it possible? Best regards
-
Hi all i want to change the value of isStartNewPage attribute by a external parameter.The user choose if want to break or not the page.Is possible to change it on the fly? thanks