On this page you will learn from code samples for programming in VBScript and VB6. ByteScout PDF Renderer SDK was made to help with silent PDF printing in VBScript and VB6. ByteScout PDF Renderer SDK is the component (SDK) that renders PDF into high quality images and thumbnails. Includes various functions like page by page processing, BMP, PNG, TIFF or stream output. Can be used from web and desktop applications.
VBScript and VB6, code samples for VBScript and VB6, developers help to speed up the application development and writing a code when using ByteScout PDF Renderer SDK. This VBScript and VB6 sample code should be copied and pasted into your application’s code editor. Then just compile and run it to see how it works. This basic programming language sample code for VBScript and VB6 will do the whole work for you in implementing silent PDF printing in your app.
Trial version can be obtained from our website for free. It includes this and other source code samples for VBScript and VB6.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
' Create Bytescout.PDFRenderer.DocumentPrinter object Set documentPrinter = CreateObject("Bytescout.PDFRenderer.DocumentPrinter") documentPrinter.RegistrationName = "demo" documentPrinter.RegistrationKey = "demo" ' Load sample PDF document documentPrinter.LoadDocumentFromFile "../../multipage.pdf" ' Change some printing options for demo purposes ' (note, some options might be not supported by the printer): ' Change paper orientation documentPrinter.Landscape = True ' Set number of copies documentPrinter.Copies = 2 ' Set collation documentPrinter.Collate = True ' Force black and white printing documentPrinter.Color = false ' Print all document pages to "Microsoft Print to PDF" documentPrinter.PrintDocument "Microsoft Print to PDF" ' To print specific pages use other procedures with parameters allowing to define pages to print: ' documentPrinter.PrintDocument_2 "Microsoft Print to PDF", "1,3-5,7-" ' documentPrinter.PrintDocument_3 "Microsoft Print to PDF", 2, 4
60 Day Free Trial or Visit ByteScout PDF Renderer SDK Home Page
Explore ByteScout PDF Renderer SDK Documentation
Explore Samples
Sign Up for ByteScout PDF Renderer SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout PDF Renderer SDK Home Page
Explore ByteScout PDF Renderer SDK Documentation
Explore Samples
Sign Up for ByteScout PDF Renderer SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: