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

mana_singh01

Members
  • Posts

    7
  • Joined

  • Last visited

mana_singh01's Achievements

Rookie

Rookie (2/14)

  • First Post Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. hi all, Pdf reports in my app are displayed with a different zoom. One report would open at 60% zoom, another at 80% & another at 100%. I want all the reports to open at 100% zoom. With itext this can be done by specifying PdfWriter.setOpenAction(). Set the action to the first page with zoom 1. Would anybody please help me as to how can i achieve this with Jasper Reports. Do, I have to set something in my response.setheader or in my jrxml or elsewhere???????????? Thanks & Regards, MS.
  2. Hi Teodor, I apologise for causing any inconvenience, if any. However, I didn't intend that. I just thought may be you will see the new post for sure as I was desparately looking for a solution & I still am. Talking about the fontmap thing that u suggested. I can for sure create a fontmap & put it as an exporter parameter. However, my problem of conditionally specifying a font in the jrxml remains as is. I don't see any such thing in the fonts or any other samples provided in JR. You have always helped Teodor & I hope the same this time also. Thanks & Regards, MS.
  3. Hi Teodord, Thanks a lot for your reply. May be you haven't seen my reply yet. So, m posting it as a new post. I will explain my requirement a bit more. I know I can set the pdffontname etc for a text field. In my application there are two locales. one is english & the other is japaneese. So, when the locale is english the reports come up fine with verdana as font.(I have downloaded verdana.ttf as my pdffont.) However, this font does not show japaneese characters when the locale is japan & report reads the japaneese property file. For that if I make my pdf font as MSMincho or MsGothic...the report displays in both english & japaneese(as per the locale). However, my client does not want the font to be MSMincho for english reports. He wants the font to be vardana if the locale is english & MSMnicho when the locale is Japan. Would u suggest me a way to solve this problem? Please help Teodor. Thanks & Regards, MS.
  4. Hi Teodord, Thanks a lot for your reply. I will explain my requirement a bit more. I know I can set the pdffontname etc for a text field. In my application there are two locales. one is english & the other is japaneese. So, when the locale is english the reports come up fine with verdana as font.(I have downloaded verdana.ttf as my pdffont.) However, this font does not show japaneese characters when the locale is japan & report reads the japaneese property file. For that if I make my pdf font as MSMincho or MsGothic...the report displays in both english & japaneese(as per the locale). However, my client does not want the font to be MSMincho for english reports. He wants the font to be vardana if the locale is english & MSMnicho when the locale is Japan. Would u suggest me a way to solve this problem? Please help Teodor. Thanks & Regards, MS.
  5. Hi all, I have a requirement for i18n. My reports have to be in english & japaneese both & they are exported in pdf & xls. For a text field I want to have a different font for the different locale. I am trying to do something like this in text field expression: ($P{REPORT_LOCALE}.toString().equals(Locale.JAPANESE.toString())?($R{part.la bel}.setPdfFontName("msmincho.ttc"))$R{part.label}.setPdfFontName("Verdana .ttf"))) However, This thing does not work as partlabel string does not have a method like setpdffontname. I have also tried doing this in my pdf servlet: on the condition of checking locale. if locale is english then use the below style with font as verdana else if the locale is japan then use the font as msmincho.ttc. JRStyle style = jasperReport.getStyles()[0]; style.setPdfFontName("Verdana.ttf"); style.setPdfEncoding("IDENTITY_H"); style.setPdfEmbedded(false); style.setFontSize(10); jasperPrint.setDefaultStyle(style); However, it only changes the font properties for the font which is specified in jrxml & does not do anything with regard to the Font. does not change the font depending upon locale. what do i do now? :(:( Please help me, it's very urgent. I have been trying for long for this to happen. Thanks & Regards, MS.
  6. hi all, I have also tried doing this in my pdf servlet: on the condition of checking locale. if locale is english then use the below style with font as verdana else if the locale is japan then use the font as msmincho.ttc. JRStyle style = jasperReport.getStyles()[0]; style.setPdfFontName("Verdana.ttf"); style.setPdfEncoding("IDENTITY_H"); style.setPdfEmbedded(false); style.setFontSize(10); jasperPrint.setDefaultStyle(style); However, it does not do anything.
  7. Hi all, I have a requirement for i18n. My reports have to be in english & japaneese both & they are exported in pdf & xls. For a text field I want to have a different font for the different locale. I am trying to do something like this in text field expression: ($P{REPORT_LOCALE}.toString().equals(Locale.JAPANESE.toString())?($R{part.la bel}.setPdfFontName("msmincho.ttc")):($R{part.label}.setPdfFontName("Verdana .ttf"))) However, This thing does not work as partlabel string does not have a method like setpdffontname. Please help me, it's very urgent. I have been trying for long for this to happen. Thanks & Regards, MS.
×
×
  • Create New...