Jasper Report is not opening other PC

0

Hi
I made a Jasper Report with java and it works without problem with my PC.
But when I open the. Jar on another PC, no report is opened.
Can anyone help me for this?
Should I install some software there? (e.g. Jasper viewer, ect ..?)

Thank you!

String reportSource = "J:/Application JB/GalexisLieferscheinDrucker/Reports/galexies_text.jrxml";
String reportDest = "J:/Application JB/GalexisLieferscheinDrucker/Reports/output/output.pdf";

Map<String, Object> params = new HashMap<String, Object>();

params.put("reportTitle", fKundenNo);
params.put("lieferscheinNr", fLieferscheinNo); //+eanNoField.getText()+
params.put("bestellDatum", fBestellDatum);
params.put("pharmaCode", fPharmaCode);
params.put("artBeschreibung", fArtBeschreibung);
params.put("menge", fMenge);

try
{
    JasperReport jasperReport =
        JasperCompileManager.compileReport(reportSource);

    JasperPrint jasperPrint =
        JasperFillManager.fillReport(
            jasperReport, params, new JREmptyDataSource());

    JasperExportManager.exportReportToHtmlFile(
        jasperPrint, reportDest);

    JasperViewer.viewReport(jasperPrint);
}

catch (JRException ex)
{
    ex.printStackTrace();
}       
 

jagath.banneheka's picture
Joined: Oct 4 2013 - 12:55am
Last seen: 5 years 10 months ago

1 Answer:

0

Hi Everybody

I hav found da Error. it was some images from Report in my local workstation.

somtimes it will help for you!

cheers

Jagath

jagath.banneheka's picture
Joined: Oct 4 2013 - 12:55am
Last seen: 5 years 10 months ago

ewq

sandesh_raut - 5 years 4 months ago
Feedback
randomness