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

morlandin

Members
  • Posts

    666
  • Joined

  • Last visited

  • Days Won

    2

 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 morlandin

  1. You must set the password property at report level and the locked property at element level. I've tested something like this and it works:

     

    <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Blank_A4" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="3bff4add-3bc7-49b8-acd4-0ec822191576">
    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
    <property name="net.sf.jasperreports.export.xls.password" value="test_password"/>
    <queryString>
    <![CDATA[]]>
    </queryString>
    <background>
    <band splitType="Stretch"/>
    </background>
    <title>
    <band height="79" splitType="Stretch">
    <staticText>
    <reportElement x="123" y="2" width="100" height="30" uuid="c9f7abf8-2ed4-44c3-abf5-84fda5d190f4">
    <property name="net.sf.jasperreports.export.xls.cell.locked" value="true"/>
    </reportElement>
    <text><![CDATA[static Text]]></text>
    </staticText>
    </band>
    </title>
    </jasperReport>
     
  2. The problem is that JasperReports can't the xml file since you are not providing the absolute path, you have two choices

    -The first one is to provide the context of the current report, in this way it will look inside the project folder of the report to search the resource when the path is relative, like this: 

    new net.sf.jasperreports.engine.data.JRXmlDataSource((JasperReportsContext)$P{JASPER_REPORTS_CONTEXT}, "rmc.xml", "/mytexts/text")
     
    -Provide the absolute path for your jrxml, like this:
     
    new net.sf.jasperreports.engine.data.JRXmlDataSource( "C:/Users/Marco/workspace/MyReports/rmc.xml", "/mytexts/text")
  3. A good starting point can be create a new JSS plugin data adapter wizard. This was done to allow the users to easly port a JasperReport data adapter on JSS. This wizard will create many of the code that you need to plug your data adapter.

  4. Hi,

    this depends to which attributes you want to change. You can use an external style reference shared between the reports that you can change and the changes are inherited by the reports who use it. But the styles can not  change attributes like size and position. For this ones you can use a Template Set (you can access it from the settings menu on the right-upper corner of the editor), that allow to define some attributes for the new elements and it allows also to provide a default size for each type of element. Also the template set are shared between the reprots but they are used only when an element is created and if you change something in the template set this is not applied also on the report created with it.

    However, if the attributes you want to change are supported by a style element then create an external style and use it as reference inside your reports.

  5. Hi, i've fixed some NPEs about the crosstab editor, now you can add column or row and undo without problem. If you get the errors during the run of the report it can be also JasperReports, or we allow to delete to much stuff. However if you send us the report that give the exception at runtime we will give a look to the exception.

    For the next time please use the answer question only for the answer request on how to use the product, for the bugs use the tracker (like you have done the previous times), because for us it easier to read them and keep track of them also. Thanks! 

  6.  

    Hi,
     
    in the cheatsheet there was an error, in the step with the text "In the fields Series and Label add the value F{SHIPCITY}", the name of the field should be $F{SHIPCITY}.
     
    Anyway this isn't probably your problem since the report dosen't even compile with a wrong variable name. Another thing is that your chart area is just too small, i've added two new steps to the cheatsheet where is explained how enlarge the chart. Anyway you can try to set the height of the summary band to 500 and then right click on the chart, select "Size To Container" and then "Fit Both". Doing this the chart will expands to fill all the summary.
     
    Please, let us know if this solved your problem. Thanks!
×
×
  • Create New...