|
Adempiere 3.5.2a | |||||||||
| 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
Change log:
| Field Summary | |
|---|---|
static int |
CHECK
Check = 6 |
static int |
DISTRIBUTION_ORDER
Distribution Order = 9 |
static int |
DUNNING
Dunning = 7 |
static int |
INVOICE
Invoice = 2 |
static int |
MANUFACTURING_ORDER
Manufacturing Order = 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 |
| Constructor Summary | |
|---|---|
ReportEngine(Properties ctx,
MPrintFormat pf,
MQuery query,
PrintInfo info)
Constructor |
|
ReportEngine(Properties ctx,
MPrintFormat pf,
MQuery query,
PrintInfo info,
String trxName)
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 |
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(OutputStream os)
Write PostScript to writer |
void |
createXLS(File outFile,
Language language)
Create Excel file |
boolean |
createXML(File file)
Create XML File |
boolean |
createXML(Writer writer)
Write XML to writer |
static ReportEngine |
get(Properties ctx,
int type,
int Record_ID)
Get Document Print Engine for Document Type. |
static ReportEngine |
get(Properties ctx,
int type,
int Record_ID,
String trxName)
Get Document Print Engine for Document Type. |
static ReportEngine |
get(Properties ctx,
ProcessInfo pi)
Get Report Engine for process info |
int |
getColumnCount()
Get Column Count |
Properties |
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 |
MQuery |
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(MQuery 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 MANUFACTURING_ORDER
public static final int DISTRIBUTION_ORDER
| Constructor Detail |
|---|
public ReportEngine(Properties ctx,
MPrintFormat pf,
MQuery query,
PrintInfo info)
ctx - contextpf - Print Formatquery - Optional Queryinfo - print info
public ReportEngine(Properties ctx,
MPrintFormat pf,
MQuery query,
PrintInfo info,
String trxName)
ctx - contextpf - Print Formatquery - Optional Queryinfo - print infotrxName - | Method Detail |
|---|
protected void setPrintFormat(MPrintFormat pf)
pf - print formatprotected void setQuery(MQuery query)
query - querypublic MQuery getQuery()
public PrintData getPrintData()
public void setPrintData(PrintData printData)
printData - printDataprotected LayoutEngine getLayout()
public String getName()
public MPrintFormat getPrintFormat()
public PrintInfo getPrintInfo()
public Properties 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(OutputStream os)
os - output stream
public void createXLS(File outFile,
Language language)
throws Exception
outFile - output filelanguage -
Exception - if error
public static ReportEngine get(Properties ctx,
ProcessInfo pi)
ctx - contextpi - process info with AD_PInstance_ID
public static ReportEngine get(Properties ctx,
int type,
int Record_ID)
ctx - contexttype - document typeRecord_ID - id
public static ReportEngine get(Properties ctx,
int type,
int Record_ID,
String trxName)
ctx - contexttype - document typeRecord_ID - idtrxName -
public static void printConfirm(int type,
int Record_ID)
type - document typeRecord_ID - record idpublic static void main(String[] args)
args - args
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||