【发布时间】:2012-09-24 07:34:02
【问题描述】:
我正在尝试使用 iTextSharp 库为我们在公司的旧项目生成 PDF,一切正常,除了将导入添加到使用 RadioButtonList 的表单时,它将此 RadioButtonList 视为iTextSharp 对象不是 System.Web.UI.WebControls 并给我以下错误
重载解析失败,因为无法使用这些参数调用可访问的“添加”:
'Public Sub Add(item As System.Web.UI.WebControls.ListItem)': Value of type 'iTextSharp.text.ListItem' cannot be converted to 'System.Web.UI.WebControls.ListItem'.
'Public Sub Add(item As String)': Value of type 'iTextSharp.text.ListItem' cannot be converted to 'String'
这个控件定义如下:
<asp:RadioButtonList ID="rblChargeOrNot" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" Width="60%"></asp:RadioButtonList>
和
一样 <asp:DropDownList ID="ddlnumber" runat="server"></asp:DropDownList>
使用的技术是 vb.net framework 3.5
【问题讨论】:
标签: .net vb.net itextsharp