Jump to content
We've recently updated our Privacy Statement, available here ×

raphy

Members
  • Posts

    33
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Posts posted by raphy

  1. Hello,

    I have a strange problem with the JasperPrintManager class.

     

    Problem: When I use this following code (printing without preview of the document) the printer prints only the first page of my print job and computer hang it self.

     

    Code:

    JasperPrint printJob = JasperFillManager.fillReport(pWorkingDirectory + "template.jasper", pParameters, this)
    JasperPrintManager aJasperPrintManager = new JasperPrintManager() ;
    aJasperPrintManager.printPage(printJob, 0, true) ;

     

    Please help

    Raphy

     

    Post edited by: raphy, at: 2006/12/05 16:24

    Post edited by: raphy, at: 2006/12/05 16:25

  2. Hello,

    How can I collaps the blank line spaces with text fields

    I have tried all properties in the text field, but there is no effect.

     

    Problem:

    I have four fields: tel, fax, mobile and email and I woud like to print without any blank line between two fields when ont of the field is emplty.

     

    (NB: I am using print when expression to detect the empty variables and "remove line when blank option ticked" in the property pane)

     

    Thanks for your help

    Raphy

  3. Hello,

    I am trying to export a report to a Excel file. But I have received a message error as follows:

    Code:
    java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFCellStyle

    on line :

    Code:
    [code]JRXlsExporter exporter = new JRXlsExporter() ;

    Please tell me if anybody have an idea to resolve this problem.

    Best regards

    Raphy

  4. Thanks for your reply. All classes functionning correctly. Thanks a lot. But the problem is I couldn't acces directly to the methode:

    public JRDataSource getPosRecordsList ()
    to retreive the data source array list.

    The solution is to call the methode:

    public Object getFieldValue (JRField field) throws JRException
    and retreive the data source as an objet.

    Is it correct?

    Best Regards

    Raphy

  5. giulio wrote:

    In the subreport properties window (element properties window actually) there is a table to set subrpeort parameters.

    Please note that a datasource is a consumable object, you can use only once. You should find a way to reset your custom datasource each time you attempt to fill your subreport or provide a datasource instance for each your records in the main report.

    Giulio

     

    Hello,

    Thanks for your reply.

    How can I reset or provide the subreport's datasource instance for each records in the main report?

    Raphy

  6. Hello!

    I am trying to using custom data sources and subreports together.

     

    Situation:

    I have two classes named CustomDataSourceParents and CustomDataSourceChildren and work perfectly as individual reports.

     

    Problem:

    I would like to print a listing of all parents with their own children.

     

    Question:

    How can I passe the parent id as parameter to my CustomDataSourceChildren class to retrieve all their children.

     

    Thank you in advanced for your kindly reply.

    Best Regards

    Raphy

  7. Hello,

    I have my tools class as follows:

     

     

    public class Tools

    {

    public static final String Name = "Raphy" ;

     

    public static final String getName ()

    {

    return Name ;

    }

    }

     

     

    When I set the textfield expression for the textfield as "Tools.Name" and executing the report gave me the results "Raphy". This is correct.

     

    But when I set the textfield expression for the same textfield as "Tools.getName()" and when executing the report I got the error message as follows:

    java.lang.NoClassDefFoundError: test/Tools

     

    The tools class and the report are in the same directory & and classpath set correctly.

     

    Please help me

    Best regards

    Raphy

     

    Code:
    public class Tools
    {
    public static final String Name = "Raphy" ;

    public static final String getName ()
    {
    return Name ;
    }
    }
  8. Hello,

    I have a problem when I try to export to the excel file format (XLS).

    The error message as follows:

    Exception occurred during event dispatching:

    java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFCellStyle

     

    Error on line: JRXlsExporter exporter = new JRXlsExporter() ;

     

    I have already imported this package in my project.

     

    All other formats (.pdf, .rtf etc.) working correctly.

     

    Thanks for your help

    Raphy

  9. Hello,

    I have my tools class as follows:

     

     

    public class Tools

    {

    public static final String Name = "Raphy" ;

     

    public static final String getName ()

    {

    return Name ;

    }

    }

     

     

    Code:
     public class Tools
    {
    public static final String Name = "Raphy" ;

    public static final String getName ()
    {
    return Name ;
    }
    }

     

     

    When I set the textfield expression for the textfield as "Tools.Name" and executing the report gave me the results "Raphy". This is correct.

     

    But when I set the textfield expression for the same textfield as "Tools.getName()" and when executing the report I got the error message as follows:

    java.lang.NoClassDefFoundError: test/Tools

     

    The tools class and the report are in the same directory & and classpath set correctly.

     

    Please help me

    Best regards

    Raphy

  10. Hello,

    I have my tools class as follows:

     

     

    public class Tools

    {

    public static final String Name = "Raphy" ;

     

    public static final String getName ()

    {

    return Name ;

    }

    }

     

    Code:
    public class Tools
    {
    public static final String Name = "Raphy" ;

    public static final String getName ()
    {
    return Name ;
    }
    }

     

    When I set the textfield expression for the textfield as "Tools.Name" and executing the report gave me the results "Raphy". This is correct.

     

    But when I set the textfield expression for the same textfield as "Tools.getName()" and when executing the report I got the error message as follows:

    java.lang.NoClassDefFoundError:Âtest/Tools

     

    The tools class and the report are in the same directory & and classpath set correctly.

     

    Please help me

    Best regards

    Raphy

  11. Hello,

    I have my tools class as follows:

     

     

    public class Tools

    {

    public static final String Name = "Raphy" ;

     

    public static final String getName ()

    {

    return Name ;

    }

    }

     

    Code:
    public class Tools
    {
    public static final String Name = "Raphy" ;

    public static final String getName ()
    {
    return Name ;
    }
    }

     

    When I set the textfield expression for the textfield as "Tools.Name" and executing the report gave me the results "Raphy". This is correct.

     

    But when I set the textfield expression for the same textfield as "Tools.getName()" and when executing the report I got the error message as follows:

    java.lang.NoClassDefFoundError:Âtest/Tools

     

    The tools class and the report are in the same directory & and classpath set correctly.

     

    Please help me

    Best regards

    Raphy

  12. Hello,

    Thanks for your prompt reply.

    I do as you mentioned in your reply. But when I compiling with iReport there is no error and when run my application there is an error message as follows:

     

    Errors were encountered when compiling report expressions class file:

    Tools cannot be resolved

    value = (java.lang.String)(Tools.getName());

     

    The method implemented in my Tools.class is:

    public static final String getName ()

    {

    return "raphy" ;

    }

     

    Thanks for your help.

    Raphy

  13. Hello,

    I am using a custom data source and using a field named "person". This field containing firstname, lastname, phone etc.. as string and each values separated by ";".

     

    My own datasource class containing getFildValue() returns a person's value as a string correctly.

     

    The question:

    How can I tokenize the person's string value to retrieve all separate data. (firstname, lastname, phone etc.. )

     

    Thanks for your reply

    Raphy

  14. Hello,

    Is it possible to create our own dialog or frame to visualize the document content.

     

    Example:

    instead of using this ...

    JasperViewer jasperViewer = new JasperViewer(jasperPrint, false, new java.util.Locale("fr", "FR", "")) ;

     

    I would like to create a dialog box and then add the component jasper viewer to my own dialog box.

     

    Thanks for your reply

    Raphy

  15. Hello,

    Is it possible to create our own dialog or frame to visualize the document content.

     

    Example:

    instead of using this ...

    JasperViewer jasperViewer = new JasperViewer(jasperPrint, false, new java.util.Locale("fr", "FR", "")) ;

     

    I would like to create a dialog box and then add the component jasper viewer to my own dialog box.

     

    Thanks for your reply

    Raphy

×
×
  • Create New...