首页 > 解决方案 > 如何在用户手机中创建文件夹和存储文件

问题描述

我正在使用带有 C# 的 Visual Studio 2019。在我的网站上,我为用户提供了以 pdf 格式下载数据的选项。但我不知道如何在手机中创建一个文件夹并自动下载该文件夹中的 pdf 文件。我已经完成了以下编码来创建 pdf。我正在使用 iText7 创建 pdf。

 protected void Button2_Click(object sender, EventArgs e)
 {
            PdfWriter writer = new PdfWriter("c:\\Appointments.pdf);
            PdfDocument pdf = new PdfDocument(writer);
            Document document = new Document(pdf, PageSize.A4); 
            Paragraph header = new Paragraph("Patent Record");
            document.Add(header);
            Paragraph subheader = new Paragraph("Appointment List");  
            document.Add(subheader);
            document.Close();
}

标签: c#asp.netmobile

解决方案


推荐阅读