将多个PDF文件生成到目录中

时间:2014-02-19 04:00:40

标签: c# asp.net pdf

如何将网页保存为多个PDF文件?

E.g

private void printAllPDF(List<Invoice> Invoices)
    {
        string path = "C:/temp/";
        foreach (Invoice inv in Invoices)
        {
            PDF = PrintToPDF("PrintPage.Aspx?InvoiceGUID="+ inv.GUID);
            PDF.SaveAs(path , inv.GUID +".PDF");
        }
    }

感谢您的帮助

0 个答案:

没有答案