Package org.compiere.model

Examples of org.compiere.model.PrintInfo


    MQuery q = new MQuery("C_Invoice");
    q.addRestriction("C_Invoice_ID", MQuery.EQUAL, new Integer(103));

    //  102 = Invoice - 100 = Order
    PrintInfo i = new PrintInfo("test", X_C_Invoice.Table_ID, 102, 0);
    MPrintFormat f = MPrintFormat.get (Env.getCtx(), 102, false);
    ReportEngine re = new ReportEngine(Env.getCtx(), f, q, i);

  //  MPrintFormat f = new MPrintFormat(Env.getCtx(), 101);
  //  ReportEngine re = new ReportEngine(f, null);
View Full Code Here


        //  query
        MQuery query = new MQuery("C_Invoice_Header_v");
        query.addRestriction("C_Invoice_ID", MQuery.EQUAL, new Integer(C_Invoice_ID));

        //  Engine
        PrintInfo info = new PrintInfo(
          DocumentNo,
          X_C_Invoice.Table_ID,
          C_Invoice_ID,
          C_BPartner_ID);
        info.setCopies(copies);
        ReportEngine re = new ReportEngine(getCtx(), format, query, info);
        boolean printed = false;
        if (p_EMailPDF)
        {
          String subject = mText.getMailHeader() + " - " + DocumentNo;
View Full Code Here

    if (format == null && AD_ReportView_ID != 0)
      format = MPrintFormat.createFromReportView(ctx, AD_ReportView_ID, pi.getTitle());
    if (format == null)
      return null;
    //
    PrintInfo info = new PrintInfo (pi);
    info.setAD_Table_ID(AD_Table_ID);
   
    return new ReportEngine(ctx, format, query, info);
  //  get
View Full Code Here

    query.addRestriction(DOC_IDS[type], MQuery.EQUAL, Record_ID);
  //  log.config( "ReportCtrl.startDocumentPrint - " + format, query + " - " + language.getAD_Language());
    //
    if (DocumentNo == null || DocumentNo.length() == 0)
      DocumentNo = "DocPrint";
    PrintInfo info = new PrintInfo(
      DocumentNo,
      DOC_TABLE_ID[type],
      Record_ID,
      C_BPartner_ID);
    info.setCopies(copies);
    info.setDocumentCopy(false);    //  true prints "Copy" on second
    info.setPrinterName(format.getPrinterName());
   
    //  Engine
    ReportEngine re = new ReportEngine(ctx, format, query, info, trxName);
    return re;
  //  get
View Full Code Here

    int AD_Table_ID = 100;
    MQuery q = new MQuery("AD_Table");
    q.addRestriction("AD_Table_ID", "<", 108);
    //
    MPrintFormat f = MPrintFormat.createFromTable(Env.getCtx(), AD_Table_ID);
    PrintInfo i = new PrintInfo("test", AD_Table_ID, 108, 0);
    i.setAD_Table_ID(AD_Table_ID);
    ReportEngine re = new ReportEngine(Env.getCtx(), f, q, i);
    re.layout();
    /**
    re.createCSV(new File("C:\\Temp\\test.csv"), ',', Language.getLanguage());
    re.createHTML(new File("C:\\Temp\\test.html"), false, Language.getLanguage());
View Full Code Here

TOP

Related Classes of org.compiere.model.PrintInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.