« first day    last day (177 days later) » 

5:56 PM
@PetterFriberg HI
I was modifying your codes for generating my own subreports
I mean I have created 2 subreports testingObject and appSupport. and modified the main jrxml
But I am not getting the new pages embedded inside the main
I thought there are some issues with size of the main and subreports so I removed my subreports
Now I have just modified the contents(static contents) and all your code are same except the static content but It gives me the old data(static text)
I tried cleaning the project
deleted the existing the .jasper files
re compiled the jrxml files
restarted the tibco jaspersoft
but still I get the same old data
I have been struggling for it through the day but no success yet
 
 
2 hours later…
8:30 PM
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports jasperreports.sourceforge.net/…" name="report5_subreport1" pageWidth="555" pageHeight="802" whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="759f84fe-674e-453d-8861-dcfeed4e7a05">
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="testingObject" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="0605d959-3942-4ef5-929c-558c50745b2a">
 
are you talking about the location? @PetterFriberg
 
pageWidth (margins) and most important whenNoDataType!
 
how did you know this is the mistake related to page width so that next time I will not make mistake
 
The pageWidht is not the main problem but you are including it within your margins, hence you should respect the width of the inclusion
in main you have this
<subreport>
<reportElement x="0" y="0" width="555" height="43" uuid="b23ae105-35d8-4b8e-adec-e2e1fa6b11d5"/>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "testingObject.jasper"]]></subreportExpression>
</subreport>
as you see you (or I : ), set width 555 so the subreport should be 555 (and I used no margins since main already have)
 
so you mean to say that subreports width should be exactly same as that of main report?
 
8:39 PM
they should be the size of the inclusion.... but this is not main problem the main problem is whenNoDataType="AllSectionsNoDetail"
you are not passing a datasource so you need this otherwise it will not be displayed.
yesterday, by Petter Friberg
whenNoDataType="AllSectionsNoDetail"
 
yes I remeber it you said yesterday but I thought its there in main so subReport is not needed
 
THat decide how the report shall display if no data, subreport works as a any other report
Often for example you like to only display subreport if you have data for it, that why
 
The examples you gave, when I click preview i used to see 4 pages
 
I did not get to answer the question : (, I was almost happy to answer a jasper-report question again
 
but my code gives 3 pages
 
8:45 PM
have you changed to whenNoDataType="AllSectionsNoDetail"
and in general try to be precis with width and height if you like nice reports.
 
calculate'em, what is my pageHeight, what is my margins, how much space do I have, how much space do I need.
 
@PetterFriberg I want to ask some basic questions
 
You still have margins in subreport why?
 
@PetterFriberg you said here, right main problem is whenNoDataType="AllSectionsNoDetail"
 
8:50 PM
YEah that's the problem, re-compile and test, but you better set all right
 
I have some basic questions,
 
I get 4 pages also with wrong settings in subreport on margins, but I would do all with logic
@SpringLearner Yes when this problem is solved?, is all ok now?
 
1. if subreport is attached to the title band in main report and if in the subreport i keep a static text in detail band, will it work?
2. Main Report is having only title band. I want to show the disclaimer staments in all the pages except in the first page
@PetterFriberg yes solved. Please answer in Stackoverflow so that I can accept it
 
meeh accept the duplicate that's better, you can vote on some other answer by me ; )
I would just answer as duplicate, hence better for SO to point to that old answer
 
so I have included in the page header and footer but again the page did not appear
 
8:56 PM
@SpringLearner in what sense
 
@PetterFriberg The examples you gave me yesterday is all having title band. I wanted to have disclaimer statements like this chat.stackoverflow.com/transcript/message/34131769#34131769
 
but again what are the heights of all your different bands?
 
so I have created another jasper report , removed all the bands except page header,detail and page footer but this page did not appear when I preview. So my doubt is if the main is having title then will the subreport should title?
 
your page height is only 842 then you have top and bottom margin 20+20 so 802 is the hieght you need to respect (+ it depends where in main report you included it)
 
@PetterFriberg sorry heights I did not remeber because since morning 7 am till now (3 am) I am doing hit and trial, so exactly all the datas I dont remeber
 
9:00 PM
@SpringLearner no there is no relation, main can have detail and subreport pageHeader...
if not displaying and you are not sending any data it is?
yesterday, by Petter Friberg
whenNoDataType="AllSectionsNoDetail"
 
it should be there because I created a new jasper report , then I have copied the all your codes and pasted in the xml of the new file. Then i went to design and undelete the page header ,page footer and detail band. SO I assume whenNoDataType="AllSectionsNoDetail" but again I am sorry as I did not look into it
 
That's a key issue, and then always check the size issues... width/height,margins, positions etc
 
@PetterFriberg I will not take much of your time now, I came to know from drew that you have 2 kids and your daughter wants to play with you.
 
np, don't worry, I switch off the computer :D
 
I will do some learning about it and if I get any problems then I will ping you here. If possible and when ever you get free time please come in this chat. I have pinged you about the issue chat.stackoverflow.com/transcript/message/34146803#34146803
I thought this is a problem in japsersoft so I have downloaded now ireport and working in it
 
9:33 PM
@SpringLearner Sorry did not see it... if I don't reply you can ping me in SOBotics if you see me there.
 

« first day    last day (177 days later) »