net.windward.xmlreport
Class MailReport

java.lang.Object
  |
  +--net.windward.xmlreport.MailReport

public class MailReport
extends java.lang.Object

Process a xml and rtf file into a report and then mails the report with MIME types text and html as well as attaching the report as both a rtf and pdf document. The usage is:
java net.windward.xmlreport.MailReport order.xml template.rtf support@windward.net
The two filenames can be anything you want. They are:

Note: this program does not embed images in the html mime message.
This program requires the following be set in WindwardReports.properties (use your settings - do not use the Windward mailer!):

Version:
1.0

Constructor Summary
MailReport()
           
 
Method Summary
static void main(java.lang.String[] args)
          Process a xml and rtf file into a report.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailReport

public MailReport()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws LicenseException,
                        SetupException
Process a xml and rtf file into a report. Then e-mail the report.
Parameters:
args - Must be three filenames like order.xml template.rtf support@windward.net where:
  • order.xml - the xml data to use for the report.
  • template.rtf - the report template which must be a rtf file.
  • support@windward.net - the address to send the mail to.
Throws:
LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.


Copyright © 2002 - 2008 Windward Reports - All Rights Reserved. java reporting software