ByteScout Premium Suite - VBScript - Create pdf form with combobox with pdf sdk - ByteScout

ByteScout Premium Suite – VBScript – Create pdf form with combobox with pdf sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VBScript – Create pdf form with combobox with pdf sdk

How to create pdf form with combobox with pdf sdk in VBScript using ByteScout Premium Suite

Step-by-step tutorial on how to create pdf form with combobox with pdf sdk in VBScript

The code displayed below will guide you to install an VBScript app to create pdf form with combobox with pdf sdk. ByteScout Premium Suite: the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can create pdf form with combobox with pdf sdk in VBScript.

This prolific sample source code in VBScript for ByteScout Premium Suite contains various functions and other necessary options you should do calling the API to create pdf form with combobox with pdf sdk. Just copy and paste the code into your VBScript application’s code and follow the instructions. Check VBScript sample code samples to see if they respond to your needs and requirements for the project.

All these programming tutorials along with source code samples and ByteScout free trial version are available for download from our website.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

ComboBoxes.vbs
      
' This example demonstrates how to create and decorate comboboxes. ' Create Bytescout.PDF.Document object Set pdfDocument = CreateObject("Bytescout.PDF.Document") pdfDocument.RegistrationName = "demo" pdfDocument.RegistrationKey = "demo" Set comHelpers = pdfDocument.ComHelpers ' Add page Set page1 = comHelpers.CreatePage(comHelpers.PAPERFORMAT_A4) pdfDocument.Pages.Add(page1) ' Add dropdown box (not editable combobox) Set comboBox1 = comHelpers.CreateComboBox(20, 20, 150, 25, "comboBox1") comboBox1.Font.Size = 12 comboBox1.BorderColor = comHelpers.CreateColorRGB(0, 0, 128) comboBox1.BackgroundColor = comHelpers.CreateColorRGB(220, 220, 255) comboBox1.BorderWidth = 2 comboBox1.Text = "Select item" comboBox1.Items.Add("Item 1") comboBox1.Items.Add("Item 2") comboBox1.Items.Add("Item 3") page1.Annotations.Add(comboBox1) ' Add editable combobox Set comboBox2 = comHelpers.CreateComboBox(20, 50, 150, 25, "comboBox2") comboBox2.Editable = True comboBox2.Font.Size = 12 comboBox2.BorderColor = comHelpers.CreateColorRGB(0, 128, 0) comboBox2.BackgroundColor = comHelpers.CreateColorRGB(220, 255, 220) comboBox1.BorderWidth = 2 comboBox2.Text = "Editable ComboBox" comboBox2.Items.Add("Item 1") comboBox2.Items.Add("Item 2") comboBox2.Items.Add("Item 3") page1.Annotations.Add(comboBox2) ' Save document to file pdfDocument.Save("result.pdf") ' Open document in default PDF viewer app Set shell = CreateObject("WScript.Shell") shell.Run "result.pdf", 1, false

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next