显示PDF格式的复选框 [英] Show check box in PDF
问题描述
大家好
我正在使用asp.net mvc 3(C#)开发应用程序
下载PDF格式时,我未能显示PDF复选框.
但是它的html文本可以正常工作,并可以将复选框显示为网页.
在代码背后,我正在这样写
就业性质 @ Html.CheckBoxFor(m => m.NatureOfEmploymentPermanent)
永久
@ Html.CheckBoxFor(m => m.NatureOfEmploymentContractual)
合同
@ Html.CheckBoxFor(m => m.NatureOfEmploymentProbation)
在试用期那么,您能告诉我哪里错了吗?
在此先感谢,
Shawon Mahmud
hello every body
i am devoloping an application with asp.net mvc 3 (C#)
I have failed to show check box in PDF when downloading PDF format.
But it''s html text work fine and show check box as webpage.
in codebehind i am writing like this
Nature of Employment @Html.CheckBoxFor(m => m.NatureOfEmploymentPermanent)
Permanent
@Html.CheckBoxFor(m => m.NatureOfEmploymentContractual)
Contractual
@Html.CheckBoxFor(m => m.NatureOfEmploymentProbation)
On Probation So can you any one tell me where is wrong?
Thanks in Advance,
Shawon Mahmud
推荐答案
Hi;
您可以使用itextshrp"Acrofeild",因为您可以获得各种形式的表单,这些表单可以在导出后以PDF格式显示,例如复选框,单选按钮甚至是下拉列表.
如果您需要任何有关杂技的详细信息,请回复我.
Hi;
you can use itextshrp "Acrofeild", in that you get varieties of form feilds which can be shown in PDF after exporting like check boxes , radio buttons and even drop down list.
if you want any details of acrofeilds then reply me i will help you in this.
<pre lang="cs">if (dashboardObj.CheckUserlogonValidity(UserName,Password) == false)
{
TempData["Message"] = "Invalid User ID/ Password.";
TempData["IsSuccess"] = false;
return RedirectToAction("Index");
}</pre>
<pre lang="cs">public bool CheckUserlogonValidity(string UID,string UPass)
{
bool _validUserInfo = false;
dbmanager.Connect(connectionStr);
string strEncPass = dbmanager.GetSingleString("Select isnull(UsrPassword,'') from Userlist Where UsrUserID = '"+ UID +"' ");
dbmanager.Disconnect();
if (STLPasswordEncryptDecrypt.GetInstance().GetDecryptedUserPwd(strEncPass) == UPass)
{
_validUserInfo = true;
return _validUserInfo;
}
else
{
return _validUserInfo;
}
}</pre>
这篇关于显示PDF格式的复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!