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

  • Home
  • SEARCH
  • 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 6838477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:36:07+00:00 2026-05-26T23:36:07+00:00

When I send the jasper report to print, the printer shows the document name

  • 0

When I send the jasper report to print, the printer shows the document name as “jasper report-report name” (When there is a printing que, document name is also “jasper report” ). How can I change it to another name?

  • 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-05-26T23:36:07+00:00Added an answer on May 26, 2026 at 11:36 pm
    • Using JasperReports API

      If you are using JasperReports API you should set report name with help of JasperPrint.setName(java.lang.String name) method.

    The sample:

        JasperReport jasperReport = JasperCompileManager.compileReport(reportSource);
    
        JasperPrint jrPrint = JasperFillManager.fillReport(jasperReport, params, getDataSource());
        if (reportName != null && reportName.length() > 0) {
            jrPrint.setName(reportName);
        }
    
        PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet();
        printRequestAttributeSet.add(MediaSizeName.ISO_A4);
    
        PrintServiceAttributeSet printServiceAttributeSet = new HashPrintServiceAttributeSet();
        printServiceAttributeSet.add(new PrinterName("PDFCreator", null));
    
        JRPrintServiceExporter exporter = new JRPrintServiceExporter();
    
        exporter.setParameter(JRExporterParameter.JASPER_PRINT, jrPrint);
        exporter.setParameter(JRPrintServiceExporterParameter.PRINT_REQUEST_ATTRIBUTE_SET, printRequestAttributeSet);
        exporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE_ATTRIBUTE_SET, printServiceAttributeSet);
        exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, Boolean.TRUE);
        exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, Boolean.TRUE);
    
        exporter.exportReport();
    
    • Using iReport (editing report template)

      You can set report name in report template with help of name attribute:

      <jasperReport .. name="Sample report name to print" ..>
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I send to my sever this POST petition: name=pepito&friends=pep+mar And I notice what arrives
I am trying to design a jsp page where I can send an e-mail
Here is how I show the Jasper report in swing applications. JasperViewer.viewReport(jasperPrint, true); Then
I send some credentials to a web-service. I can get the responce as NSData
I have a simple jasper report that does not need a datasource so I
I send to the javascript an array like: $.each(data, function (value, name) { $('#visitStart').append($('<option></option>').val(value).html(value));
I send json objects to DotNet Service in format {__type:EntityItem#ru.test.com,name:sample} And on Net service
to send a message in my application in android i have used the following
I send 2 bytes of app data on the socket(blocking) every 10 seconds, but
I send a query to an api and map the json results to my

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.