SourceForge.net Logo

1.     What is ZebraReport

ZebraReport is a tool using for print data on a paper with pre-made template. Such as print data to a paper with table. Or print photo on a visa.

 

Download

2.     How to use

Three step is needed for complete the function

a.       Transform the pre-made template on the paper into electronic formation and put it on server ¨C using ZebraReportConsole

b.       Build the B/S application to allow user input the data on client.

c.       Combine the data and the template to generate the complete picture and allow user to preview and print it on Browser.

 


3.    ZebraReportConsole

3.1.      Make a new document

3.2.      Set up background (Scan the paper with pre-made template and set it as background)

3.3.      Mark data input area by brush tool

 

 


3.4.      Set up properties of data input area by double click it

3.5.      Save as xml file


4.    ZebraReport

4.1.      Sign zebraReport.jar with private key of your company

jarsigner -keystore <your keystore> -signedjar unsignedZebraReport.jar zebraReport.jar <username of key>

4.2.      Put the signed ZebraReport.jar into the directory of applet codebase
4.3.      Build info input html and Insert the applet into your JSP file which will shows the result and perform the print

<applet

  ID       = "ZebraReportApplet"

  name     = "ZebraReportApplet"

  codebase = "lib/"

  code     = "com.opendynamic.zebrareport.ZebraReportApplet.class"

  archive  = "zebraReport.jar"

  width    = "0"

  height   = "0"

  hspace   = "0"

  vspace   = "0"

  align    = "middle"

<param name = "uri" value = "http://localhost:8080/example/<%=xmlFile%>">

<param name = "printImmediately" value = "false">

<param name = "previewRequired" value = "true">

</applet>

4.4.      Install JDK runtime environment on every client

Version 1.3 or later

4.5.      Start the web application, user input the info on client

4.6.      Give the grant for applet when receive the alert


4.7.      Click print to print or click preview before the print

 

4.8.      Print