2013-07-08 50 views
0

它存在嗎?我試圖使用iTextSharp,但它不起作用。的代碼本小例子是錯誤的:Windows Phone上的離線PDF創建

IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication(); 
     Document document = new Document(); 

     string path = "/first.pdf"; 

     PdfWriter.GetInstance(document, store.CreateFile(path)); 

     document.Open(); 
     document.SetPageSize(PageSize.A4); 
     Paragraph p = new Paragraph("Working with pdfs"); 
     document.Close(); 

的錯誤信息是:

無法加載文件或程序集 '系統,版本= 2.0.0.0, 文化=中性公鑰= b77a5c561934e089'或其 依賴項之一。該系統找不到指定的文件。

有人能幫助我嗎?工作的例子代碼,工作的DLL,任何東西...

+0

我不認爲iTextSharp存在WP8 – Mico

回答

0

看起來像沒有將您的段落「添加」到您的文檔中。 :)

document.Add(p);