Kbase 17509: Printing from Apptivity - reports
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
Printing from Apptivity - reports
Currently printing is not supported by Apptivity in Version 2.
You will need to make use of any support provided by JDK 1.1 or use a
third party reporting tool that accesses your database.
If you have generated your reports from another tool, from the
Apptivity applet, you can use the AppletContext.showDocument() method
to launch a browser window with the report in it to preview. The
user could then browse/print the report.
For example:
Assume the user is on SupplierID = 12, you might form a URL string:
String reportLink = null;
try
{
// Create the URL for the report
reportLink ="http://myhost/reportengine.cgi/supplierrep.rpt?ID=12";
java.net.URL url = new java.net.URL(reportLink);
// Open this URL in a new, named window
theApp().Top().getAppletContext().showDocument(url, "PrintWindow");
}
catch (MalformedURLException e)
{
System.out.println("Malformed URL:" + reportLink );
}
NB. This code extract is just an example.
NBI:30 Dec 97
Progress Software Technical Support Note # 17509