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

iReports 3.5.3 x report files with XML extension


edilmar

Recommended Posts

Hi,

Today I downloaded iReports 3.5.3.

However, in previous versions, I had used to save the report files like .xml, not .jrxml.

Now, I have more than 300 reports with this extesion.

When I open the .xml files in 3.0.0, all works fine, preview/design/etc. But 3.5.3 doesn't

understand that the .xml files are normal report files.

 

Is there some way to configure 3.5.3 for this?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

This can be fixed.  My solution might not be 'the correct' way to do it, but in the absence of any useful documentation it'll have to do.

Open iReport and select Tools - Options from the menu

Push the Advanced Options button

Under IDE Configuration expand the System and File Types branches

Select the file type called Jrxml files and copy it (<ctrl>-<c> or use the right mouse button to select Copy)

Select the File Types branch and paste a copy of Jrxml files in.  It should be pasted in as something like jrxmlResolver_1.xml

Rename the new file to xml files using the right mouse button menu

Select the new file type definition (ie. xml files)  and press the text editor button next to All Files on the right hand panel

Select all the text and copy it using <ctrl>-<c>

Open your favourite text editor (jEdit, WordPad, NotePad, etc) and choose File - Open from the menu

Paste the copied text into the path text box (note: if you use jEdit you need to rub out the filename off the end of the path).  NOTE: only do this step ONCE (ever) or you'll bugger up the MIME type parser and you'll be in for a neat game of "let's try to delete the offending file type definitions before the blinking error message pops up". Not fun.

Open the file which should look like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MIME-resolver PUBLIC "-//NetBeans//DTD MIME Resolver 1.0//EN" "http://www.netbeans.org/dtds/mime-resolver-1_0.dtd">
<MIME-resolver>
    <file>
        <ext name="jrxml"/>
        <resolver mime="text/x-jrxml+xml"/>
    </file>
</MIME-resolver>

Change the blue line so that it reads <ext name="xml"/> and save the file.
 

Restart iReport to make the changes come into effect.

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...