iTextSharp C# windows 商店应用程序
iTextSharp C# windows store application
之前,我使用 ITextSharp
在 C# 中为 Windows 生成一个 PDF 文件,它运行良好,现在我需要编译它并 运行 它在 Windows 存储框架,我得到错误:主要错误来自使用 System.IO.FileStream
,它在 windows 存储 API 中不存在,是否有另一种类型与 System.IO.FileStream
在 windows 应用商店中?
这是我之前使用的代码:
String mat;
System.IO.FileStream fs;
Document doc;
mat = textBox1.Text;
fs = new FileStream(mat + ".pdf", FileMode.Create, FileAccess.Write, FileShare.None);
doc = new Document();
PdfWriter writer = PdfWriter.GetInstance(doc, fs);
doc.Open();
String texto = richTextBox1.Text;
doc.Add(new Paragraph(texto));
doc.Close();
this.Hide();
iTextSharp 不直接兼容 windows 商店应用程序,转换工作不多,但还没有完成。查看 iTextSharp-Monotouch 以了解可能的解决方法。
之前,我使用 ITextSharp
在 C# 中为 Windows 生成一个 PDF 文件,它运行良好,现在我需要编译它并 运行 它在 Windows 存储框架,我得到错误:主要错误来自使用 System.IO.FileStream
,它在 windows 存储 API 中不存在,是否有另一种类型与 System.IO.FileStream
在 windows 应用商店中?
这是我之前使用的代码:
String mat;
System.IO.FileStream fs;
Document doc;
mat = textBox1.Text;
fs = new FileStream(mat + ".pdf", FileMode.Create, FileAccess.Write, FileShare.None);
doc = new Document();
PdfWriter writer = PdfWriter.GetInstance(doc, fs);
doc.Open();
String texto = richTextBox1.Text;
doc.Add(new Paragraph(texto));
doc.Close();
this.Hide();
iTextSharp 不直接兼容 windows 商店应用程序,转换工作不多,但还没有完成。查看 iTextSharp-Monotouch 以了解可能的解决方法。