By: Romy Yuliawan - snricek
Applet
2002-04-07 21:03
Hi, I try an applet.
Here is my HTML::
<applet code="FontsApp.class" width="500" height="400">
<param name="taskName" value="TASK_VIEW">
<param name="fileName" value="FontsReport.jrprint">
</applet>
and this is a class::
import dori.jasper.engine.*;
import dori.jasper.view.*;
import java.awt.*;
import java.applet.*;
public class FontsApp extends Applet
{
public void init()
{
String fileName = getParameter("fileName");
String taskName = getParameter("taskName");
try
{
if ("TASK_PRINT".equals(taskName))
{
JasperManager.printReport(fileName, true);
}
else if ("TASK_VIEW".equals(taskName))
{
JasperViewer.viewReport(fileName);
}
}
catch (JRException e)
{
e.printStackTrace();
System.exit(1);
}
catch (Exception e)
{
e.printStackTrace();
System.exit(1);
}
}
}
I don't know where the problem, no error, but I have no result, only blank rectagle on my page.
Thanks.
By: volker decker - hotselina
RE: Applet
2002-08-12 07:31
Hi Romy,
I,ve the same Problem (without solution).
If you got a solution for the empty applet window, could you please support me with an example code.
I'm really new in Java, but I have to learn it for our running project.
All my webapps are running well on the server, but because I've no idea to code applets, I can't provide my clients with the genearated reports.
Thanks for your support
CU
Hotselina
By: Romy Yuliawan - snricek
RE: Applet !
2002-04-10 23:26
Actually, I just want to directly print (without view) a report at client, after I post a page.
Can anyone help me for applet coding ?
Thanks.
By: Teodor Danciu - teodord
RE: Applet !
2002-10-02 03:39
Hi,
A complete Web application sample is provided
with the 0.4.1 verions.
It includes applets for viewing the reports.
Good luck!
Teodor
Applet
2002-04-07 21:03
Hi, I try an applet.
Here is my HTML::
<applet code="FontsApp.class" width="500" height="400">
<param name="taskName" value="TASK_VIEW">
<param name="fileName" value="FontsReport.jrprint">
</applet>
and this is a class::
import dori.jasper.engine.*;
import dori.jasper.view.*;
import java.awt.*;
import java.applet.*;
public class FontsApp extends Applet
{
public void init()
{
String fileName = getParameter("fileName");
String taskName = getParameter("taskName");
try
{
if ("TASK_PRINT".equals(taskName))
{
JasperManager.printReport(fileName, true);
}
else if ("TASK_VIEW".equals(taskName))
{
JasperViewer.viewReport(fileName);
}
}
catch (JRException e)
{
e.printStackTrace();
System.exit(1);
}
catch (Exception e)
{
e.printStackTrace();
System.exit(1);
}
}
}
I don't know where the problem, no error, but I have no result, only blank rectagle on my page.
Thanks.
By: volker decker - hotselina
RE: Applet
2002-08-12 07:31
Hi Romy,
I,ve the same Problem (without solution).
If you got a solution for the empty applet window, could you please support me with an example code.
I'm really new in Java, but I have to learn it for our running project.
All my webapps are running well on the server, but because I've no idea to code applets, I can't provide my clients with the genearated reports.
Thanks for your support
CU
Hotselina
By: Romy Yuliawan - snricek
RE: Applet !
2002-04-10 23:26
Actually, I just want to directly print (without view) a report at client, after I post a page.
Can anyone help me for applet coding ?
Thanks.
By: Teodor Danciu - teodord
RE: Applet !
2002-10-02 03:39
Hi,
A complete Web application sample is provided
with the 0.4.1 verions.
It includes applets for viewing the reports.
Good luck!
Teodor
0 Answers:
No answers yet