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

hq4ever

Members
  • Posts

    34
  • 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

Everything posted by hq4ever

  1. Hello Forum, May I have please an example of "conditional styles" OR "styled text" usage example ? I have a ${P} that can be null, I would like to gray out a TextField element if it is. From the FAQ I see that today Jasper has 3 solutions to the problem: conditional styles styled text switching between two different text fields place one on top of the other using the <printWhenExpression>I would go for either one, prefering onditional styles / styled text (what is the difference between them?) I wasn't able to find any example usage of either one, could you please provide one? Thank you, Maxim.
  2. Hello list, I'm using JRHtmlExporterParameter.HTML_HEADER to add custom <meta http-equiv> tags to make IE 7 not cache graph's (A bug of it's own). The thing is that before I used JRHtmlExporterParameter.HTML_HEADER the start of my html page looked like this : Code:<html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <style type="text/css"> a {text-decoration: none} </style> </head> <body text="#000000" link="#000000" alink="#000000" vlink="#000000"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr><td width="50%"> </td><td align="center"> <a name="JR_PAGE_ANCHOR_0_1"/> <table style="width: 791px" cellpadding="0" cellspacing="0" border="0" bgcolor="white"> <tr> ... Now, after I added Code:[code] exporter.setParameter(JRHtmlExporterParameter.HTML_HEADER, "n" + "<meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate">" + "n"«»); I'm getting: Code:[code] <meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"> <a name="JR_PAGE_ANCHOR_0_1"/> <table style="width: 791px" cellpadding="0" cellspacing="0" border="0" bgcolor="white"> <tr> I would expect Jasper to do: Code:[code]<html> <head> <title></title> <meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <style type="text/css"> a {text-decoration: none} </style> </head> <body text="#000000" link="#000000" alink="#000000" vlink="#000000"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr><td width="50%"> </td><td align="center"> <a name="JR_PAGE_ANCHOR_0_1"/> <table style="width: 791px" cellpadding="0" cellspacing="0" border="0" bgcolor="white"> <tr> ... Is this a bug or a by design decision?
  3. Hello forum, Please help. I'm trying to design a report. I'm using a static text object and a frame containing some parameters. The static text is placed to overlay the frame border creating a "header" for like so: *------|Static Text|----------* Issue is, no matter what I try. If the static text overlays the frame object, both the frame and the objects inside it won't get rendered by jasper in the output... If I delete the static text the frame will render just fine. Please help :ohmy: Thank you, Maxim. Post edited by: hq4ever, at: 2007/10/15 07:51
  4. Hello lucianc, Thank you for you replay. I would like to "extend" my question a little bit - You see, the "whenNoDataType" flag actually did solved my problem for simple "static text" and parameters with default values. I then tried to take it one step further and added frames to my reports (mainly as a design consideration to allow borders around related data). I've found out that when the <frame> object is used, whenNoDataType flag has no effect and indeed if no data will be supplied to the subreport that objects contained inside the frame will not be displayed. p.s. (1) : I think it's confusing to have the report display differently if called directly or as a subreport (in a direct request the report displays like it should). p.s. (2) : Is there a mailing list to jasper reports? I can't say I'm felling comfortable with mambo's lame excuse to a forum :P Thank you for helping me. Good weekend, Maxim.
  5. Hello guys, I'm having a strange issue with a subreport coming out "blank" when there's allegedly "no data" in it. Let me explain: I've created a small title report, which I use to include in other reports. This report holds the logo and the design of my title. When I view it using jasper's html export facility (online via jsp) I get the report fine. When I try to include this subreport in one of my template reports I get a blank field in the size of the <subreport isUsingCache="true"> field. If I add a simple querystring, something like <queryString><![CDATA[sELECT 1 as name from dual]]></queryString> in the subreport jrxml everything works fine. Is there some flag or something I can turn on to tell jasper to display the form, even if it thinks that it's empty ? Thank you, Maxim. Post edited by: hq4ever, at: 2007/10/02 16:56
  6. Hello guys, I'm having a strange issue with a subreport come out "blank" when there's allegedly "no data" in it. Let me explain: I've created a small title report, which I use to include in other reports. This report holds the logo and the design of my title. When I view it using jasper's html export facility (online via jsp) I get the report fine. When I try to include this subreport in one of my template reports I get a blank field in the size of the <subreport isUsingCache="true"> field. If I add a simple querystring, something like <queryString><![CDATA[sELECT 1 as name from dual]]></queryString> in the subreport jrxml everything works fine. Is there some flag or something I can turn on to tell jasper to display the form, even if it thinks that it's empty ? Thank you, Maxim.
  7. Hello, I'm using iReport to compose my first report. I would like to add date field to my report so that each time the report is generated I get the date updated. I've went into variables and added a new type variables of the type java.util.Date; what do I need to write in "variable expression" to make it work ? Also, as a side note question: what are the calculations in the variable dialog are for? How to make it calculate the whole data?
  8. Hello I'm new to jasper and java as a whole. I would like to know how I can get access to the jasperreport object from within the jrxml file? I would like to print the name I'm giving to the report. Thank's for your help guys, happy reporting to us all.
  9. rathina04 wrote: go to the properties of image in ireport and In image expression give the image path like "/images/pdf-icon.gif" and the check the "Is Lazy" checkbox given at end of the image tab in ireport. and add this to exporter exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "image?image="); Would you mind explaining these fields? I'm about to face a similar issue and would like to understand what I'm doing ;)
×
×
  • Create New...