declare a parameter "exportType" not EXPORT_TYPE if u are using the
openreports admin application.



helena21 wrote:
> 
> Thanks for ur help.
> 
> i tried using the printwhenexpression.. without error but $P{EXPORT_TYPE}
> is not built in parameter and it should be set somewhere before the
> template is compiled. and there is no way that i can set this parameter
> according to the user's input(pdf or html). and i tried to see whether
> JRExporterParameter or JRHtmlExporterParameter  classes help me..but i
> can't get any method that helps me to hide the group header....
> 
> thanks,
> 
> Helen 
> 
> 
> anjay wrote:
>> 
>> 
>> got the problem. U where using character constant as the .equals()
>> argument not a String .  ie 'ht' . Use the string "ht" instead. 
>> 
>> 
>> 
>> 
>> anjay wrote:
>>> 
>>> 
>>> Can u please put this instead of ur expression,
>>>        new Boolean($P{EXPORT_TYPE}.equals("ht"))
>>> also can u please print the EXPORT_TYPE parameter in a textfield to
>>> ensure that it is the right export type code ur using inside the
>>> expression.
>>> 
>>> regards,
>>> anjay
>>> 
>>> 
>>> Thanks for your response. Can u elaborate more your answer pls? you know
>>> when i tried like
>>> this..<printWhenExpression>$P{EXPORT_TYPE}.equals('ht') ? Boolean.FALSE
>>> : Boolean.TRUE</printWhenExpression>
>>> 
>>> it raises an error message "Invalid character constant"  i tried ht with
>>> html,hr... but i can't get the correct constant and i can't get
>>> documentation too.
>>> 
>>>  Thanks for ur help
>>> 
>>> Helen
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-remove-the-group-header-in-html-format-but-not-in-pdf-format-tp21015167p21050574.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to