ByteScout PDF SDK - VBScript and VB6 - Create List Box in PDF Form - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout PDF SDK – VBScript and VB6 – Create List Box in PDF Form

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF SDK – VBScript and VB6 – Create List Box in PDF Form

How to create list box in PDF form in VBScript and VB6 using ByteScout PDF SDK

The tutorial shows how to create list box in PDF form in VBScript and VB6

With this source code sample you may quickly learn how to create list box in PDF form in VBScript and VB6. ByteScout PDF SDK: the library for pdf documents generation, modification and updates. Can also generate and fill PDF forms. Provides support for text (fonts, style, size, font family), layers, pdf form fields, vector and raster drawings. It can create list box in PDF form in VBScript and VB6.

You will save a lot of time on writing and testing code as you may just take the VBScript and VB6 code from ByteScout PDF SDK for create list box in PDF form below and use it in your application. Follow the instructions from the scratch to work and copy the VBScript and VB6 code. Code testing will allow the function to be tested and work properly with your data.

ByteScout PDF SDK free trial version is available on our website. VBScript and VB6 and other programming languages are supported.

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

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

ListBoxes.vbs
      
' This example demonstrates how to create a listbox. ' 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 list box, add items and make it multi-selectable Set listBox1 = comHelpers.CreateListBox(20, 20, 120, 80, "listBox1") listBox1.Items.Add("Value 1") listBox1.Items.Add("Value 2") listBox1.Items.Add("Value 3") listBox1.Items.Add("Value 4") listBox1.Items.Add("Value 5") listBox1.MultiSelect = True ' Decorate listbox listBox1.Font = comHelpers.CreateStandardFont(comHelpers.STANDARDFONTS_HELVETICA, 10) listBox1.FontColor = comHelpers.CreateColorRGB(0, 0, 128) listBox1.BorderColor = comHelpers.CreateColorRGB(0, 0, 128) listBox1.BackgroundColor = comHelpers.CreateColorRGB(240, 240, 255) listBox1.BorderWidth = 2 page1.Annotations.Add(listBox1) ' 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 PDF SDK Home Page

Explore ByteScout PDF SDK Documentation

Explore Samples

Sign Up for ByteScout PDF SDK 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 PDF SDK Home Page

Explore ByteScout PDF SDK Documentation

Explore Samples

Sign Up for ByteScout PDF SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next