获取复选框的字段值 [英] Get field value for the check box

查看:88
本文介绍了获取复选框的字段值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何找到复选框的字段值?

How to find the field value for the check box?

<</Rect[263.571 330.311 273.323 338.812]/Subtype/Widget/F 4/P 30 0 R/T(AmountCollect)/DA(/ZaDb 18 Tf 0 g)/FT/Btn/Type/Annot/MK<</CA(8)>>/AP<</D<</COLLECT 148 0 R/Off 149 0 R>>/N<</COLLECT 147 0 R>>>>/AS/Off>>

我尝试了以下方法。但我无法标记复选框。请帮忙。

I tried the following. But I am unable to mark the check box. Please help.

 testForm.SetField("AmountCollect", "Off");
 testForm.SetField("AmountCollect", "Yes");
 testForm.SetField("AmountCollect", "0");


推荐答案

testForm.SetField(AmountCollect,COLLECT );为我工作。

testForm.SetField("AmountCollect", "COLLECT"); worked for me.

参考文章:
使用iTextSharp获取复选框的导出值

这篇关于获取复选框的字段值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆