Re: [jasperreports-questions] HTML tags support in PDF ... feature request

2006-01-12 Thread Teodor Danciu


Hi,

We only support a few HTML tags in styled-text. I don't think we are 
going to support all the standard HTML tags, at least not very soon.


Thanks,
Teodor


Kalpesh Chordia wrote:

Are there any chances of supporting all standard HTML tags in PDF 
Exporter and support of HTML in text field in near future ?






---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] Error MEssage printing using JasperPrint Object

2006-01-12 Thread Henrique Oliveira

Hi, (sorry for my English, it's terrible)

If you try do this, maybe solve you problem:

 JasperPrint jPrint = 
JasperFillManager.fillReport(reportFile.getPath(),parameters,con);


if(jPrint.getPages().size()  0)
{
  //JasperExportManager.exportReportToPdf(jPrint);
//or
   JRPdfExporter exporter = new JRPdfExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT jPrint);

   ByteArrayOutputStream baos = new ByteArrayOutputStream();
   exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
   exporter.exportReport();
  
   byte[] bytes = baos.toByteArray();

.

 }
else
{
   //empty report handler
}

[]'s


Meenakshi Singh wrote:



Anybody...PLEASE HELP me solve this problem.



Hi all,

I am using  JasperPrint.getPages().size() to determine if the report has
data in it or not.

Depending on the result I m forwarding it to an error page if it doesn't
have data.

It works fine with html and excel format. However, if I am unable to use it
in my pdf report as in my pdf report it doesn't return a jasper print object
, it returns bytes.
Below is the code for my pdf servlet.

Would anybody please help me as to how can I determine if teh report has any
data or not in my pdf format.

Thanks  Regards,
Meenakshi.

bytes =
JasperRunManager.runReportToPdf(
reportFile.getPath(),
parameters,
con);



response.setContentType(application/pdf);
response.setContentLength(bytes.length);
ServletOutputStream ouputStream = 
response.getOutputStream();
ouputStream.write(bytes, 0, bytes.length);
ouputStream.flush();
ouputStream.close();


}



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


 




--
Henrique Rogerio de Oliveira
Desenvolvedor de Software
W3S Solutions www.w3s.com.br
+55 11 4052-9376 Ramal: 302
+55 11 2626-7181 Ramal: 302
+55 16 3331-2125 Ramal: 302
+55 16 9777-7495
[EMAIL PROTECTED]



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


[jasperreports-questions] RE: Web Application using Jasper Report on Oracle AS running on Redhat linux3.0 Enterprise Server

2006-01-12 Thread Kummetha, Ragu









 
  
  
  
 
 
  Hi, I have a web-application using JasperReport I'm having the same problem with my images in the sense the pdf versionis ok without any problems, but the html version of my report isdisplayed without images and bands. The web- application is developedusing Jdeveloper, on Jdeveloper when executed using OC4J it the pdf isfine but the html is without the images, but when deployed on OracleAS running on Redhat Linux3.0 Enetrprise Server nothing works. Does anyone have a soution for this?  Thanks and Regards,Ragunatha Reddy Kummetha.
 











RE: [jasperreports-questions] Empty image map value

2006-01-12 Thread Kjetil Hoem
Hi Teodor,

JFreeChart is used for the chart generation if that is what you mean. I
have not written any custom JRRenderable, and I thought it should be
fairly straightforward. Here is a little snippet from my prototype
report servlet, also showing how the map content was printed:

--snip
JasperCompileManager.compileReportToFile(jrxmlFile, jasperFile);
JasperPrint jasperPrint = JasperFillManager.fillReport(
jasperFile, new HashMap(), dbConnection);
JRExporter exporter = new JRHtmlExporter();
StringBuffer htmlBuffer = new StringBuffer();
Map imagesMap = new HashMap();
request.getSession().setAttribute(IMAGES_MAP, imagesMap);
exporter.setParameter(
JRHtmlExporterParameter.IMAGES_MAP, imagesMap);
exporter.setParameter(
JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(
JRExporterParameter.OUTPUT_STRING_BUFFER,htmlBuffer);
exporter.setParameter(
JRHtmlExporterParameter.IMAGES_URI,
/imageservlet?image=);
exporter.exportReport();
   
for(Object key : imagesMap.keySet()) 
System.out.println(
map entry: key=+key+, value=+imagesMap.get(key));
--snip

I'm running it on Tomcat5.5/JDK1.5.0_06/WinXP, if that could provide any
further answers. The jrxml file was generated with iReport. What makes
it really strange is, as I said, storing the chart image on disk is no
problem.

Regards,
Kjetil


 -Original Message-
 From: Teodor Danciu [mailto:[EMAIL PROTECTED]
 Sent: 12. januar 2006 19:50
 To: Kjetil Hoem
 Cc: jasperreports-questions@lists.sourceforge.net
 Subject: Re: [jasperreports-questions] Empty image map value
 
 
 Hi,
 
 Are you using our chart component or is something custom-made?
 I'm interested in the JRRenderable implementation behind the scenes.
 
 Thanks,
 Teodor
 
 
 Kjetil Hoem wrote:
 
 Hi all,
 
 I have a problem that I have been unable to find any information on
 either in the manual, faqs, forums and this list's archives:
 
 The image map (JRHtmlExporterParameter.IMAGE_MAP) populated by the
html
 exporter contains null for what was supposed to be my chart image. A
 printout of all the items contained in this map looks like this:
 
 map entry: key=px, [EMAIL PROTECTED]
 map entry: key=img_0_0_1, value=null
 
 As you can see, the px entry contains an object, and I can confirm
 that it is the correct image data object, which works fine. The
 img_0_0_1 entry, on the other hand, contains nothing even though
the
 KEY obviously is present. When I tell the exporter to store the
images
 on disk, everything seems to be fine, and the chart is plotted
 wonderfully correct.
 
 But I don't want to store the images on disk. Does anyone have any
idea
 what may cause this strange behavior?
 
 Regards,
 Kjetil Hoem
 
 
 
 
 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through
log
 files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
 http://ads.osdn.com/?ad_idv37alloc_id865op=click
 ___
 jasperreports-questions mailing list
 jasperreports-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
 
 
 
 




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions