Jump to content
Changes to the Jaspersoft community edition download ×

iReport 2.05, problem with external viewer


Henry

Recommended Posts

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, Henry

Post edited by: Henry, at: 2008/04/09 15:00

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...
  • 1 month later...

Hello, same problem here (iReport 3.0.0) on

Red 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

Hello, same problem here (iReport 3.0.0) on

Red 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

  • 7 months later...

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

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...