Dim MyDocument
Set MyDocument = Server.CreateObject( "DynamicPDF.Document" )
Dim MyPage
Set MyPage = MyDocument.AddPage()
Dim MyTextField
Set MyTextField = MyPage.AddTextField( "Text Field Name", 50, 50, 150, 100 )
MyTextField.DefaultValue = "ceTe Software"
Dim MyButton
Set MyButton = MyPage.AddButton( "Button Name", 50, 180, 100, 50 )
MyButton.Behavior = DPDF_Behavior_Push
MyButton.SetJavaScriptAction "app.alert('Hello');"
MyButton.Label = "Click"
Dim MyCheckBox1
Set MyCheckBox1 = MyPage.AddCheckBox( "Check Box Name", 50, 250, 50, 50 )
MyCheckBox1.ExportValue = "Yes"
MyCheckBox1.DefaultChecked = true
Dim MyRadio
Set MyRadio = MyPage.AddRadioButton( "Radio Button Name", 50, 320, 100, 75 )
MyRadio.ExportValue = "Yes"
MyRadio.DefaultChecked = true
Dim MyComboBox
Set MyComboBox = MyPage.AddComboBox( "Combo Box Name", 50, 420, 150, 25 )
MyComboBox.BorderColor = "Black"
MyComboBox.AddItem "Item 1" , , True
MyComboBox.AddItem( "Item 2" )
MyComboBox.AddItem( "Item 3" )
MyComboBox.AddItem( "Item 4" )
MyDocument.DrawToWeb