edilmar Posted August 4, 2009 Share Posted August 4, 2009 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'tunderstand 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 More sharing options...
jmurray Posted August 11, 2009 Share Posted August 11, 2009 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 menuPush the Advanced Options buttonUnder IDE Configuration expand the System and File Types branchesSelect 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.xmlRename the new file to xml files using the right mouse button menuSelect the new file type definition (ie. xml files) and press the text editor button next to All Files on the right hand panelSelect all the text and copy it using <ctrl>-<c>Open your favourite text editor (jEdit, WordPad, NotePad, etc) and choose File - Open from the menuPaste 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 More sharing options...
edilmar Posted August 12, 2009 Author Share Posted August 12, 2009 Hi, Thanks for your help! This worked fine!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now