PDFANNOTATION_ExportValue
IPDFDocument3 :: Annotations

See Also Example
Collapse All

This property gets or sets the value that is posted from a RadioButton control.

Syntax

BSTR PDFANNOTATION_ExportValue { get; set; }
Value
Export string value

Remarks

This property gets or sets the value (associated with a Radio button control) that is sent to a URL when a PDF document is submitted. The value must have only alphabetic and numeric characters.

Equivalent in new interface: IPDFDocument4::RadioButtonExportValue.

Example

Setting a Radio Button Export Value

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;

e1 := PDF.PDFPAGE_CreateControl_Edit('field1', 20, 20, 120, 32);
PDF.PDFANNOTATION_Text := 'some text';

r1 := PDF.PDFPAGE_CreateControl_RadioButton('radio', 20, 35, 120, 47);
PDF.PDFANNOTATION_Caption := 'Radio 1';
PDF.PDFANNOTATION_ExportValue := 'value1';

r2 := PDF.PDFPAGE_CreateControl_RadioButton('radio', 140, 35, 240, 47);
PDF.PDFANNOTATION_Caption := 'Radio 2';
PDF.PDFANNOTATION_ExportValue := 'value2';

PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();

LONG e1 = PDF->PDFPAGE_CreateControl_Edit("field1", 20, 20, 120, 32);
PDF->PDFANNOTATION_Text = "some text";

LONG r1 = PDF->PDFPAGE_CreateControl_RadioButton("radio", 20, 35, 120, 47);
PDF->PDFANNOTATION_Caption = "Radio 1";
PDF->PDFANNOTATION_ExportValue = "value1";

LONG r2 = PDF->PDFPAGE_CreateControl_RadioButton("radio", 140, 35, 240, 47);
PDF->PDFANNOTATION_Caption = "Radio 2";
PDF->PDFANNOTATION_ExportValue = "value2";

PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();

long e1 = PDF.PDFPAGE_CreateControl_Edit("field1", 20, 20, 120, 32);
PDF.PDFANNOTATION_Text = "some text";

long r1 = PDF.PDFPAGE_CreateControl_RadioButton("radio", 20, 35, 120, 47);
PDF.PDFANNOTATION_Caption = "Radio 1";
PDF.PDFANNOTATION_ExportValue = "value1";

long r2 = PDF.PDFPAGE_CreateControl_RadioButton("radio", 140, 35, 240, 47);
PDF.PDFANNOTATION_Caption = "Radio 2";
PDF.PDFANNOTATION_ExportValue = "value2";

PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc

e1 = PDF.PDFPAGE_CreateControl_Edit("field1", 20, 20, 120, 32)
PDF.PDFANNOTATION_Text = "some text"

r1 = PDF.PDFPAGE_CreateControl_RadioButton("radio", 20, 35, 120, 47)
PDF.PDFANNOTATION_Caption = "Radio 1"
PDF.PDFANNOTATION_ExportValue = "value1"

r2 = PDF.PDFPAGE_CreateControl_RadioButton("radio", 140, 35, 240, 47)
PDF.PDFANNOTATION_Caption = "Radio 2"
PDF.PDFANNOTATION_ExportValue = "value2"

PDF.EndDoc

See Also

Reference