Esaú Castillo Contreras | 11 Feb 2009 15:59
Picon

HEP: I don't see the image!!

Hi!!

I generated a file jrxml using the iReport 3.0.0 and when I try to print the report in a servlet the html doesn't show the images of a 3D Chart,

This is the code in my servlet

         JasperReport jasperReport = JasperCompileManager.compileReport(jrxmlPath);
         JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, getConnection());
         JRHtmlExporter exporter = new JRHtmlExporter();
         request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint);
         exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
         exporter.setParameter(JRExporterParameter.OUTPUT_WRITER, out);
         exporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR,Boolean.FALSE);
         exporter.exportReport();


My project uses the library 3.1.3

Thanks

Esau

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@...
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
murat migdisoglu | 11 Feb 2009 16:14
Picon

Re: HEP: I don't see the image!!

I'm sending you a part of my code:

my web.xml contains:
 <servlet>
                <servlet-name>ImageServlet</servlet-name>
                <servlet-class>
                        net.sf.jasperreports.j2ee.servlets.ImageServlet
                </servlet-class>
        </servlet>
<servlet-mapping>
                <servlet-name>ImageServlet</servlet-name>
                <url-pattern>/reportImage</url-pattern>
        </servlet-mapping>
-----------------------------------
and my code is as following:
JasperReport jasperReport = getCompiledReport(reportPath);
                        JasperPrint jPrint = JasperFillManager.fillReport(jasperReport, getGraphParameters(), ds);
                        request.getSession()
                                        .setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jPrint);
                        ByteArrayOutputStream out = new ByteArrayOutputStream();
                        String imgExtension = String.valueOf(randomImageExtensionGenerator.nextInt());
                        exporter = new JRHtmlExporter();
                        exporter.setParameter(JRExporterParameter.JASPER_PRINT, jPrint);
                        exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, out);
                        exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, request.getContextPath()
                                        + "/reportImage?rnd=" + imgExtension + "&image=");
                        exporter.exportReport();

i add random parameters to the end of the image path in order to renew the browser cache for every request.
I hope this helps.

Regards


On Wed, Feb 11, 2009 at 3:59 PM, Esaú Castillo Contreras <esaucastilloc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi!!

I generated a file jrxml using the iReport 3.0.0 and when I try to print the report in a servlet the html doesn't show the images of a 3D Chart,

This is the code in my servlet

         JasperReport jasperReport = JasperCompileManager.compileReport(jrxmlPath);
         JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, getConnection());
         JRHtmlExporter exporter = new JRHtmlExporter();
         request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE, jasperPrint);
         exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
         exporter.setParameter(JRExporterParameter.OUTPUT_WRITER, out);
         exporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR,Boolean.FALSE);
         exporter.exportReport();


My project uses the library 3.1.3

Thanks

Esau


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@...
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
psentosa | 26 Feb 2009 16:22
Picon
Favicon

Defining one style for different fields, how should the constraint look like?


Hi all,

I just started using JR for an application, and I'd like to define one style
for different fields, that contains constraints.
As far as I know, I have to write down the field name as part of the
constraint; 
e.g new Boolean($F{h4p1}.equals("I"))  --> than use background colour green

but that means, if I'd like to use the same style for all fields, I have to
create style for each field, with constraints that vary basically only in
the name of field using as constraint, and I have a lot of this fields
Is it possible to use kind of wildcards in the constraint?

Many thanks in advance for any help

--

-- 
View this message in context: http://www.nabble.com/Defining-one-style-for-different-fields%2C-how-should-the-constraint-look-like--tp22226378p22226378.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
jasper_newbie | 22 Feb 2009 20:12
Picon

Re: Custom xml Creation ??


Hi,

Did you try the option of using "XML DataSource" via IReport ?
I think you would need to use "XML DataSource".
Need to use XPath to identify your dataset ie XPath expression for the nodes
selection.
The XPath specifics are available at the web page
http://www.w3.org/TR/xpath.

/newbie

Loganathan wrote:
> 
> Hi Subrata,
>  I am also facing the same problem, please share with me if you have the
> solution.
> 
> Regards,
> Loganathan
> 
> 
> Subrata1208 wrote:
>> 
>> How can i make my output xml(Custom xml) generated by Jasper Report like
>> this. e.g
>> 
>> <customer>
>> <fn>Subrata</fn>
>> <ln>Saha</ln>
>> </customer>
>> 
>> While Jasper Report create with JasperPrint tag and lot of un neessary
>> stuff which my application can't understand. 
>> 
> 
> 

--

-- 
View this message in context: http://www.nabble.com/Custom-xml-Creation-----tp20536638p22150326.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
jasper_Q | 24 Feb 2009 12:58
Picon

The last entry in The PDF format is not getting dispalyed properly.


In my Jasper Report I have the cloumn property set at stretch key and I am
dispalying some key value in that.

The problem I am facing is the last entry in the coloumn in an page
overflows to the next page evn though there is space in the current page for
the value to be dispalyed.

eg.. This value   1234566789900 

for other entries in the page it is getting  displayed as 1234566789900 
for the last entry in the page is getting displayed as 12345667899  
.......Current page
                                                                       00                
....... Next page

--

-- 
View this message in context: http://www.nabble.com/The-last-entry-in-The-PDF-format-is-not-getting-dispalyed-properly.-tp22180361p22180361.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
AnilaBhargavi.Vankamamidi | 3 Mar 2009 11:55
Favicon

jasper reports performance issue

Hi,

            When huge data is to be filled into the jasper report, it is taking much time for the report generation.

(It took 19mins to generate one of my report.)

Please help me with a solution where I can optimize this filling process of the jasper report, so that reports can be generated quickly? 

Please provide with any source code if available.

 

 

Regards,

V. Anila Bhargavi|172793

Cognizant Technology Solutions| Hyderabad

Mobile: 9849908536

 

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@...
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
mctpursuer | 2 Mar 2009 11:33
Picon
Favicon

How to dynamically set the background color of a field? Thanks.


Hi, I need to dynamically set the background color of a field in the report,
e.g. a field called first-level manager, second-level manager, if the
first-level manager.isCurrentManager == true, then I want to give the
first-level manager a particular background color, how can I archieve this
in JasperReport? Thanks a lot.
--

-- 
View this message in context: http://www.nabble.com/How-to-dynamically-set-the-background-color-of-a-field--Thanks.-tp22285675p22285675.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

Gmane