last day (178 days later) » 

7:12 AM
@PetterFriberg Thanks for coming to new room
I read your post
 
No problem whats up?
 
For studio you do not need do download anything else... for your application this is latest maven mvnrepository.com/artifact/net.sf.jasperreports/jasperreports/…
 
@PetterFriberg for studio you do not need do download anything else... sorry I did not understand. Do you mean its not required at all?
I mean the software that I download from chat.stackoverflow.com/transcript/message/34119791#34119791
 
I mean you do not need maven for studio... the libs are already included
You need maven when you do your own application.
 
7:18 AM
@PetterFriberg ohh yes ,
Please dont mind if I ask silly question. I will search in google first for my doubts and the I will ask you but my questions may be silly for you. So please do not get angry. Hope you understand me
 
I never get angry, but I have hard to follow multiple rooms, you can also ask in Sobtics if you like..
 
@PetterFriberg I created a separate room because what ever I discuss, can be kept in this room. So in future if I again I need anything then I can directly come to this room. If we discuss in the sobotics then it will be hard for me to search again. I can pin the important points here but If I do in that room,others may not find it useful. Anyway I will follow what ever is convinient for you
Please suggest
 
Ok, but you need to ping me, I will close the tab for now
 
7:35 AM
@PetterFriberg ok
you can close the tab but please do not leave from this room
if you do leave from this room, then you can not get noitified in sobotics chat. Hope you know this
 
yeah, anyway I will get notified, through SE even if I leave :D
 
@PetterFriberg ok what ever is convinient for you. Any way if I need to ask anything urgent then I ca ping you in sobotics
 
8:42 AM
sure
 
9:00 AM
4 messages moved to Trash can
Please ignore the previous messages
 
9:25 AM
:D
 
9:41 AM
@PetterFriberg I need one help
I need to show the following content
The information contained in this document and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure.

If the reader of this document is not the intended recipient, or an employee or agent responsible for delivering this document to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately at johm@gmail.com and delete all copies and backups
All the above content should be having a border but The information contained in this document and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure.
should be bold
I tried creating a static text
and on clicking the border , I can create a border but I am not able to make the first paragraph as bold
can you guide me please?
 
are you using studio?
 
@PetterFriberg yes
 
click on the static field, then check the properties tab, there you have a tab borders.
it's normally under the palette
 
@PetterFriberg if you mean static text, i do not have properties tab
 
in Studio you have a properties tab normally to the right...
when you click on an element, you can see and set it's properties
 
9:47 AM
@PetterFriberg ohhh yes for me its always open
 
you need to select the static field, then it show and you can change the properties of this static field
 
yes I did that way and I am able to generate the border
but for the first paragraph I need to show in bold
the content marked with red circle, I want in bold
I got it
 
you need to style text, "Static text tab", Markup: for example html, then you use html...
or styled and use jasper report style.
 
@PetterFriberg I created 2 static texts
 
8
Q: how to put bold for certain word in textfield?

Naim NscoI have for writing essay in the report. I just want to bold some text in my verse. I have put <b></b> tag in text, but it does not work. An example of what I want is "My first name is Jason and my last name is Michael". Anybody know about this?

 
10:00 AM
one text for bold texts and one static text for normal one
then I embbed the second static text inside the first one
 
you do as you like, anyway watch out that was a simple google search.. "jasper bold text" ; )
 
and then I added border to first static text
 
hmm that's not a good way to do it...
if you like to something like that use the frame component.
and move the fields withinh the frame and put border on frame
 
if you think its not a good way then I will remove it
 
you should not put text on text...
 
10:02 AM
Today is first day in jasper report so I may not know everything,
 
search search the web.. :D, you can use a frame component from palette if you like to do something like that... but I would have used html
 
ok then I will use html
If I want to make a dynamic text and if the texts are coming from DB, then I should go for text pallete instead of static text. Am I correct?
 
 
2 hours later…
11:56 AM
@PetterFriberg I need to have 5 pages for the pdf
so to create separate pages, I drag the break pallete on to the band title
In this way I am not getting enough space to design for the pages
could you give some suggestions?
 
You have studied all the different band types?
These pages that your are doing are fixed?
Yes you should textField... coming from datasource
 
@PetterFriberg When I mouse hover, I see the band title.
 
Yeah but first you need to figure out layout of report...
which bands to use and how.
How many fix pages do you have?
 
@PetterFriberg I want to 5 pages
 
You want 5 fixed pages?
 
12:04 PM
In the pdf I need to have a table and rows are generated dynamically. So the number pf pages may change
 
Yeah ok, but how many fixed pages that will always be there?
 
@PetterFriberg 5
 
ok, you better use subreports for every fix paged...
 
For every fixed page, do a subreport (5 subreport), then you included the different pages where you like...
If only 2 fixed you can use title and summery band, but if 5 you better use subreport.
 
12:07 PM
@PetterFriberg I have deleted all the bands.
 
Doing fix pages means that you normally use title and summary, 1 before and 1 after... if you need more use subreport for every subreport you get 2 fix pages... but I would do 1 sub report for every page, then you included the subreport, where you like that fixed page
 
@PetterFriberg ok thanks
 
 
1 hour later…
1:20 PM
@PetterFriberg Hi
For my testing purpose I have created 1 main report and 2 subreports
then I went inside main report
dragged the subreport pallete
and then selected the workspace mode(an element inside the workspace)
then clicked finish
But when i preview then I am not able to see the subreport
 
 
2 hours later…
3:04 PM
@PetterFriberg are you online?
 
Yeah, was on lunch but back
You need absoulte path to subreport... and then also since you are not passing datasrouce
you will need
whenNoDataType="AllSectionsNoDetail"
hence otherwise it's empty...
click the report node on the subreport and set "AllSectionsNoDetail"
 
3:28 PM
@PetterFriberg Is this the link for all your docs?
@PetterFriberg I am not passing now because I will use it later when I will integrate in spring /hibernate
 
Now I want to design only the static pages. I mean only static contents
@PetterFriberg when you are free please ping me
 
3:58 PM
@SpringLearner I'm here tell me
 
@PetterFriberg I did as you suggested
 
even I read this
16
A: jasperReport/iReport subreport shows blank (not displayed)

Gopinagh.R Place your sub-report field in the any other band other than detail band and add whenNoDataType="AllSectionsNoDetail" to your xml file. Add it among the other report properties in <JasperReport> tag. You can also add using the GUI Designer. Open your sub report and in the properties editor, a...

but I am not able to see the page 2
when i click on the preview
However If I click on the subreport pallete(that I have dragged into main report) then I can see the subreport page
@PetterFriberg
 
hmm in main report you have included the 2 subreports in title band?
includ'em with little height, they will auto stretch...
pass here main report jrxml
 
4:13 PM
@PetterFriberg Please forgive my foolishness, I really do not know if I can achieve with jasper report. I understand you have said many times that jasper report can do anything. But the more I read different articles, the more I get confused. My pdf looks similar to this type image. As you can see there are headers which says Jaspersoft Studio User Guide. Footer which says TIBCO Software Inc. , there are different pages, images, tables, bullets.
I am sorry again
when I read this answer stackoverflow.com/a/22413933/2664200
I got confused again
here he says he used subreport but I do not see second page
I did not get proper example online too
 
pass your main report jrxml in chat
You should just have some subreport included correct
 
@SpringLearner Your not using absolute path...
1 hour ago, by Petter Friberg
You need absoulte path to subreport... and then also since you are not passing datasrouce
You should put every page in report in a sub report for your 5 pages I expect something like this...
and you should also point to the compiled sub_report file .jasper not to jrxml...
I will give you an example
 
@PetterFriberg I am sorry again. As I try different answers so I missed that.
@PetterFriberg yes please that will make me understand more
 
<?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="report5" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="13cf76d3-2344-4525-a698-6b44121b6e46">
<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
set the paramater name SUBREPORT_DIR correctly absolute path
Do you your subreport with title band almost same height as page with name 1,2,3,4 etc, set whenNoDataType="AllSectionsNoDetail", compile'em and the run main report
sorry use this I had groovy turned on
<?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="report5" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="13cf76d3-2344-4525-a698-6b44121b6e46">
This is an example of 1 sub report
<?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="report5_subreport1" pageWidth="555" pageHeight="802" whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="759f84fe-674e-453d-8861-dcfeed4e7a05">
 
4:33 PM
@PetterFriberg I dont think so
 
I have passed example of main report and 1 sub report.. rename it to 2,3,4,5 and you will be ok...
 
@PetterFriberg Thanks Petter. I really appriciate your help
 

  last day (178 days later) »