Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7975695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:42:49+00:00 2026-06-04T08:42:49+00:00

I am working with iReport 4.5.0 , Spring 3.0.5 Release . I am using

  • 0

I am working with iReport 4.5.0, Spring 3.0.5 Release. I am using this link as the sample to my project because it matches to my requirement exactly.

Flow of my code is exactly same as this. But the problem is when I am displaying the pdf report it is giving the download prompt and there it is giving as opening pdf but instead of that pdf i want the report name.

How can I get it? I have the same situation for csv files.

Thanks In Advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:42:51+00:00Added an answer on June 4, 2026 at 8:42 am

    If you modify the response object, you will get: Corrupted Content Error.
    You have to set the value in jasper-view.xml, like this:

    <bean id="pdfReport"
          class="org.springframework.web.servlet.view.jasperreports.JasperReportsPdfView"
          p:url="classpath:chathuranga-sample-report.jrxml"
          p:reportDataKey="datasource"> 
    
          <property name="headers">
            <props>
                <prop key="Content-Disposition">
                     attachment; filename=pdffilename.pdf
                </prop>
            </props>
      </property>
    </bean>
    

    Hope this help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with iReport 3.5.0, and I'm using a subreport inside my main report.
Working on an old Kohana 2 project and I want to link two models.
Working sample using one Table SELECT t.* FROM ( SELECT TITLE.name, (TITLE.value-TITLE.msp) AS Lower,
Working with Json, how can I NSlog only the title in this code: NSDictionary
I'm working on a project that needs Jasper reporting, I have used the code
working on an old translation sample code for windows phone 7. Recently, I have
Working Example: This is almost identical to code I use in another places on
Working with spring, below, the code of applicationContext-service.xml: <bean id=mediaObjectService class=path.MediaObjectServiceImpl> <property name=mediaObjectDao >
I have this code: Control ctrl = Page.LoadControl(~/UserControls/ReportControl.ascx); IReport rpt = (IReport)ctrl; rpt.LoadData(); Panel.Controls.Add(ctrl);
Working on a website that has Employee and Branch entities, using a database table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.