32
const foRadioButton = 2
const foTextField = 3
const foScrollList = 4
const foComboBox = 5
' Add button that will send the results to an internet page
PDF.AddFormObj 120, 100, 220, 150, " form.buton ", " push me ", " Press me ", foButton
' Adds a text field editable with a default value
PDF.AddFormObj 120, 300, 220, 315, " form.editme ", " My Value ", " Introduce the value ", foTextField
' Adds a combo box and fulfill the data with SetPropObj function
PDF.AddFormObj 320, 600, 420, 615, " form.combos ", " Combo value ", " Select a credit card type ", foComboBox
PDF.SetPropObj " form.combos ", csPropObjCbxValues, "[ (AMX)(American Express)] [ (CBL)(Carte Blanche)] [
(DCL)(Diners Club)] [ (DSC)(Discover)] [ (ENR)(EnRoute)] (JCB)[ (MSC)(MasterCard)] [ (VIS)(Visa)] "
' Adds a Scroll list and introduces the values
PDF.AddFormObj 320, 400, 420, 450, " form.listbox ", " test ", " Introduce the value combo value ", foScrollList
PDF.SetPropObj " form.listbox ", csPropObjCbxValues, " [ (AMX)(American Express)] [ (CBL)(Carte Blanche)] [
(DCL)(Diners Club)] [ (DSC)(Discover)] [ (ENR)(EnRoute)] (JCB)[ (MSC)(MasterCard)] [ (VIS)(Visa)] "
' Adds a radio button
PDF.AddFormObj 150,700,170,720, " form.radiobutton.option1 ", " option1 ", " Mark ", foRadioButton
PDF.AddFormObj 250, 700, 270, 720, " form.radiobutton.option2 ", " Off ", " Mark me ", foRadioButton
' Adds a check box
PDF.AddFormObj 450,700,470,720, " form.checkbox ", " Off ", " Mark it ", foCheckBox
' Adds an event
PDF.AddEventObj aaOnMouseUp, " form.buton ", "
SubmitForm('http:/test/pdf_print_vars.asp','form.checkbox','form.editme') ", " A "
PDF.BinaryWrite
set pdf = nothing
%>
See Also
AddEventObj
- aspEasyPDF -
57 / 325
Generated with aspEasyPDF library using demo sample CHM2PDF