Re: [jasperreports-questions] how to remove the group header in html format but not in pdf format
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..$P{EXPORT_TYPE}.equals('ht') ? Boolean.FALSE >>> : Boolean.TRUE >>> >>> 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
Re: [jasperreports-questions] how to remove the group header in html format but not in pdf format
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..$P{EXPORT_TYPE}.equals('ht') > ? Boolean.FALSE : Boolean.TRUE > > 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-tp21015167p21047217.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
Re: [jasperreports-questions] how to remove the group header in html format but not in pdf format
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..$P{EXPORT_TYPE}.equals('ht') ? Boolean.FALSE : Boolean.TRUE 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-tp21015167p21047137.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
Re: [jasperreports-questions] how to remove the group header in html format but not in pdf format
hello helena, Please use the printwhenexpression feature witht hr exporttype parameter to get the desired result. What is preventing you from using this ? anjay helena21 wrote: > > Dear Members, > > I have faced a problem where i want to display the group headers on each > page in the pdf format of my report > > and i want to hide the headers on each page but only want to show on the > first page. > > Can this be possible on jasper report? > > i don't think it is possible but my boss don't want to believe or accept > this thing is impossible? > > please give me your idea. > > thanks a lot > > Helen > > -- > 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 > > -- View this message in context: http://www.nabble.com/how-to-remove-the-group-header-in-html-format-but-not-in-pdf-format-tp21015167p21032701.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