• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Problem while generating PDF report from Servlet

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
we are generating PDF report from the Servlet if the client enters data through their forms.But if client enters any data except & and < characters the report is generating fine.but if the client enters & or < characters then the report is not generated.also if the client enters space between then paragrapgh if client entered the data as paragraph then in report the space will be collapsed and the report is showing as single paragrapgh text.
Can you please tell me what is the problem here or how can i solve the problem?
Thanks,
Kumaran.S
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you using a tool to generate the PDF report? Or is this home grown code?
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Try parsing & and < to & and <
Reg. space bet. paragraphs: You need to take care of splitting the line in your program by using proper line breaks.
Suresh Selvaraj
 
Suresh Selvaraj
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry about my previous post:
Try parsing & and < to "&" and "<".
Are you using com.lowagie API or XSL-FO?
Suresh Selvaraj
 
Kumaran Sowrirajan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Suresh
Can you explain me detail regarding how to manage the space between the paragraphs?
we are using XSL-FOP.
Thanks,
Kumaran.S
 
Suresh Selvaraj
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Based on your application/reporting needs, you need to decide on how many words to be allowed in a single line.
Use as many rows( <fo:column-cell...<fo:block) as possible.

Suresh Selvaraj
 
Kumaran Sowrirajan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Suresh
Regarding the blank page in PDF reports , We found that if the data is copied ad pasted to "note window" in application, the data is
converted with some special character as "". Even though this character is allowed to save in database, the XML/XSL has the limitation to display this character which is not even in the list of key board buttons.
Can you please tell me why this is happened and what is the solution for this?
Thanks,
Kumaran.S
 
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic