我想实现使用库iTextSharp生成PDF到我们在公司的旧项目,一切工作都很好,除了添加导入到使用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框架3.5
我认为它的控制本身,这是非常简单的! 非常感谢:) –