Components for Developers
© 2000-2008, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Annotations
Collapse All

This property gets or sets the editable status of a control.

Syntax

VARIANT_BOOL IsReadOnlyControl { get; set; }
Value
VARIANT_TRUE if the control is read only (user may not change the value of the control), VARIANT_FALSE otherwise.

Example

Creating a Read-Only Control

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.AddEditBox(10, 10, 110, 30, 'txt1');
PDF.AnnotUnicodeText := 'Read only';
PDF.IsReadOnlyControl := true;
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->AddEditBox(10, 10, 110, 30, "txt1");
PDF->AnnotUnicodeText = "Read only";
PDF->IsReadOnlyControl = true;
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.AddEditBox(10, 10, 110, 30, "txt1");
PDF.AnnotUnicodeText = "Read only";
PDF.IsReadOnlyControl = true;
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.AddEditBox 10, 10, 110, 30, "txt1"
PDF.AnnotUnicodeText = "Read only"
PDF.IsReadOnlyControl = true
PDF.SaveToFile "test.pdf", true

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF Add-on History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2008, Two Pilots