Ejemplo n.º 1
0
    private XtraReport ShowInvoiceA4(string billNo)
    {
        XtraReport rpt = new XtraReport();

        rpt.LoadLayout(Server.MapPath(@"~\ReportFreightSea\repx\Account\InvoiceOne.repx"));
        rpt.DataSource = AccountFreightPrint.PrintInvoice2(billNo, D.Text("select DocType from XaArInvoice Where DocNo='" + billNo + "'"));
        rpt.CreateDocument();
        return(rpt);
    }
Ejemplo n.º 2
0
    private MemoryStream PrintInvoiceA4(string billNo)
    {
        XtraReport rpt = new XtraReport();

        rpt.LoadLayout(Server.MapPath(@"~\ReportFreightSea\repx\Account\InvoiceOne.repx"));
        rpt.DataSource = AccountFreightPrint.PrintInvoice2(billNo, D.Text("select DocType from XaArInvoice Where DocNo='" + billNo + "'"));
        System.IO.MemoryStream str = new MemoryStream();
        rpt.ExportToPdf(str);

        return(str);
    }