0
我使用itextsharp預定義頁面大小填充了下拉列表。
我需要選定的頁面尺寸傳遞到:無法投射'System.String'類型的對象來鍵入'iTextSharp.text.Rectangle'
pdfDoc = new Document(dropdownlist.selectedvalue, 50, 50, 50, 50);
我得到錯誤:
無法轉換類型 'System.String' 輸入 「iTextSharp.text的對象。矩形「
我該如何傳遞代表最常見紙張大小的矩形對象,並從下拉菜單中選擇
如何將字符串投射到iTextSharp.text.Rectangle
?
在此先感謝