|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.print.ReportEngine
public class ReportEngine
Report Engine. For a given PrintFormat, create a Report
| Nested Class Summary | |
|---|---|
class |
ReportEngine.MyPageable
|
class |
ReportEngine.MyPrintable
|
| Field Summary | |
|---|---|
static int |
CHECK
Check = 6 |
static int |
DUNNING
Dunning = 7 |
static int |
INVENTORY
Inventory = 9 |
static int |
INVOICE
Invoice = 2 |
static int |
MOVEMENT
Movement = 8 |
static int |
ORDER
Order = 0 |
static int |
PROJECT
Project = 3 |
static int |
REMITTANCE
Remittance = 5 |
static int |
RFQ
RfQ = 4 |
static int |
SHIPMENT
Shipment = 1 |
static int |
WORKORDER
WorkOrder = 10 |
| Constructor Summary | |
|---|---|
ReportEngine(Ctx ctx,
MPrintFormat pf,
Query query,
PrintInfo info)
Constructor |
|
| Method Summary | |
|---|---|
void |
attributeUpdate(PrintServiceAttributeEvent psae)
Print Service Attribute Listener. |
boolean |
createCSV(File file,
char delimiter,
Language language)
Create CSV File |
boolean |
createCSV(Writer writer,
char delimiter,
Language language)
Write CSV to writer |
Excel |
createEXCEL(Excel excel,
Language language)
|
boolean |
createEXCEL(File file,
Language language)
|
boolean |
createHTML(File file,
boolean onlyTable,
Language language)
Create HTML File |
boolean |
createHTML(Writer writer,
boolean onlyTable,
Language language)
Write HTML to writer |
boolean |
createPDF(File file)
Create PDF File |
byte[] |
createPDFData()
Create PDF as Data array |
boolean |
createPS(File file)
Create PostScript File |
boolean |
createPS(FileOutputStream fos)
Write PostScript to writer |
boolean |
createXML(File file)
Create XML File |
boolean |
createXML(Writer writer)
Write XML to writer |
static ReportEngine |
get(Ctx ctx,
int type,
int Record_ID)
Get Document Print Engine for Document Type. |
static ReportEngine |
get(Ctx ctx,
ProcessInfo pi)
Get Report Engine for process info |
static org.compiere.print.BusinessView |
getBusinessView(ProcessInfo pi)
|
int |
getColumnCount()
Get Column Count |
Ctx |
getCtx()
Get PrintLayout (Report) Context |
protected LayoutEngine |
getLayout()
Get Layout |
String |
getName()
Get PrintFormat (Report) Name |
File |
getPDF()
Create PDF file. |
File |
getPDF(File file)
Create PDF file. |
PrintData |
getPrintData()
Get PrintData |
String |
getPrinterName()
Get Printer (name) |
MPrintFormat |
getPrintFormat()
Get PrintFormat |
PrintInfo |
getPrintInfo()
Get Print Info |
Query |
getQuery()
Get Query |
int |
getRowCount()
Get Row Count |
View |
getView()
Get View Panel |
static void |
main(String[] args)
Test |
void |
pageSetupDialog()
Show Dialog and Set Paper Optionally re-calculate layout |
void |
print()
Print Report |
static void |
printConfirm(int type,
int Record_ID)
Print Confirm. |
void |
setPrintData(PrintData printData)
Set PrintData |
void |
setPrinterName(String printerName)
Set Printer (name) |
protected void |
setPrintFormat(MPrintFormat pf)
Set PrintFormat. |
protected void |
setQuery(Query query)
Set Query and generate PrintData. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ORDER
public static final int SHIPMENT
public static final int INVOICE
public static final int PROJECT
public static final int RFQ
public static final int REMITTANCE
public static final int CHECK
public static final int DUNNING
public static final int MOVEMENT
public static final int INVENTORY
public static final int WORKORDER
| Constructor Detail |
|---|
public ReportEngine(Ctx ctx,
MPrintFormat pf,
Query query,
PrintInfo info)
ctx - contextpf - Print Formatquery - Optional Queryinfo - print info| Method Detail |
|---|
protected void setPrintFormat(MPrintFormat pf)
pf - print formatprotected void setQuery(Query query)
query - querypublic Query getQuery()
public PrintData getPrintData()
public void setPrintData(PrintData printData)
printData - printDataprotected LayoutEngine getLayout()
public String getName()
public MPrintFormat getPrintFormat()
public PrintInfo getPrintInfo()
public Ctx getCtx()
public int getRowCount()
public int getColumnCount()
public View getView()
public void print()
public void attributeUpdate(PrintServiceAttributeEvent psae)
attributeUpdate in interface PrintServiceAttributeListenerpsae - eventpublic void pageSetupDialog()
public void setPrinterName(String printerName)
printerName - valid printer namepublic String getPrinterName()
public boolean createHTML(File file,
boolean onlyTable,
Language language)
file - fileonlyTable - if false create complete HTML documentlanguage - optional language - if null the default language is used to format nubers/dates
public boolean createHTML(Writer writer,
boolean onlyTable,
Language language)
writer - writeronlyTable - if false create complete HTML documentlanguage - optional language - if null nubers/dates are not formatted
public boolean createCSV(File file,
char delimiter,
Language language)
file - filedelimiter - delimiter, e.g. comma, tablanguage - translation language
public boolean createCSV(Writer writer,
char delimiter,
Language language)
writer - writerdelimiter - delimiter, e.g. comma, tablanguage - translation language
public boolean createXML(File file)
file - file
public boolean createXML(Writer writer)
writer - writer
public File getPDF()
public File getPDF(File file)
file - file
public boolean createPDF(File file)
file - file
public byte[] createPDFData()
public boolean createPS(File file)
file - file
public boolean createPS(FileOutputStream fos)
fos - file output stream
public static ReportEngine get(Ctx ctx,
ProcessInfo pi)
ctx - contextpi - process info with AD_PInstance_ID
public static ReportEngine get(Ctx ctx,
int type,
int Record_ID)
ctx - contexttype - document typeRecord_ID - id
public static void printConfirm(int type,
int Record_ID)
type - document typeRecord_ID - record id
public Excel createEXCEL(Excel excel,
Language language)
public boolean createEXCEL(File file,
Language language)
public static org.compiere.print.BusinessView getBusinessView(ProcessInfo pi)
public static void main(String[] args)
args - args
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||