Henry Posted April 9, 2008 Share Posted April 9, 2008 Hello, i try to switch from verion 2.04 to 2.05. I have some problems with the exteral viewers (e.g. for pdf or html). I got an error messages like this. size=400]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/error.jpg In the console window from iReport i got the normal message. Executing: /opt/kde3/bin/kpdf "/OVOReports/work/iReport/compiler/Call_OVOReports-A4Landscape.pdf" With iReport 2.04 it works normal. Regards, HenryPost edited by: Henry, at: 2008/04/09 15:00 Link to comment Share on other sites More sharing options...
augui Posted April 20, 2008 Share Posted April 20, 2008 Hi, I have the same problem,any ideas how to come around this problem? Link to comment Share on other sites More sharing options...
Henry Posted June 4, 2008 Author Share Posted June 4, 2008 Hello, the same problem with iReport 3.0.0. Someone else with the same problem or with a solution? Henry Link to comment Share on other sites More sharing options...
sledgeas Posted July 22, 2008 Share Posted July 22, 2008 Hello, same problem here (iReport 3.0.0) onRed Hat EL 5 (evince and others)Windows (XP) (Adobe Acrobat Reader)Could you please fix this bug? iReport tutorial will soon be applied for use for many end-users, thus such bug is really frustrating.Thank you,-- sledge Link to comment Share on other sites More sharing options...
sledgeas Posted July 22, 2008 Share Posted July 22, 2008 Hello, same problem here (iReport 3.0.0) onRed Hat EL 5 (evince and others)Windows (XP) (Adobe Acrobat Reader)Could you please fix this bug? iReport tutorial will soon be applied for use for many end-users, thus such bug is really frustrating.Thank you,-- sledge Link to comment Share on other sites More sharing options...
Henry Posted March 19, 2009 Author Share Posted March 19, 2009 Hello,since i changed from iReport 2.04 to a higher version I have this problem. Also with iReport-nb 3.14. Now i figured out a "solution" that works fine for me. The Problem are the double quotes that enclosed the file name. Executing: /usr/bin/acroread "/OVOReports/work/iReport-nb/reports/Test/Test.pdf" The way like iReport calls the viewers, the viewers interpreted the double quotes as a part of the file name.It works if you call the viewer manually from a shell. Because the shell interprets and removes the double quotes.I have wrote a small shell script that removes the double qoutes and calls the viewer. # CallViewer.sh Viewer=`echo $1 | sed -e 's/^"//' | sed -e 's/"$//'`File=`echo $2 | sed -e 's/^"//' | sed -e 's/"$//'` "$Viewer" "$File" & Inside iReport I configured CallViewer.sh with the viewer as argument./OVOReports/work/Scripts/CallViewer.sh "/usr/bin/acroread"iReport added the file name on the end (with enclosed double quotes)Executing: /OVOReports/work/Scripts/CallViewer.sh "/usr/bin/acroread" "/OVOReports/work/iReport-nb/reports/Test/Test.pdf"CallViewer.sh removes the double quotes from the first and second argument (Viewer and File) and calls as a shell script the viewer with the file name. Note that the double quotes in "$Viewer" "$File" & interpreted by the shell and not part from the arguments.Regards, Henry 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