Ejemplo n.º 1
0
    protected void btnExcel_Command(object sender, CommandEventArgs e)
    {
        DataTable exportDataSource = this.GetExportDataSource();
        Common2   common           = new Common2();

        if (e.CommandName == "excel")
        {
            common.ExportToExecelAll(exportDataSource, "调拨单报表.xls", base.Request.Browser.Browser);
            return;
        }
        common.ExportToWordAll(exportDataSource, "调拨单报表.doc");
    }
Ejemplo n.º 2
0
    protected void btnWord_Click(object sender, EventArgs e)
    {
        Common2 common = new Common2();

        common.ExportToWordAll(this.GetTitleByTable(this.GetTable()), this.lblTitle.Text + ".doc");
    }