The samples of source code documentation give a quick and simple method to apply a required functionality into your application. ByteScout Premium Suite was made to help with silent pdf document printing with pdf renderer sdk in VB.NET. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.
The below SDK samples describe how to quickly make your application do silent pdf document printing with pdf renderer sdk in VB.NET with the help of ByteScout Premium Suite. If you want to know how it works, then this VB.NET sample code should be copied and pasted into your application’s code editor. Then just compile and run it. VB.NET application implementation mostly involves various stages of the software development so even if the functionality works please check it with your data and the production environment.
ByteScout Premium Suite is available as a free trial. You may get it from our website along with all other source code samples for VB.NET applications.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
Imports Bytescout.PDFRenderer Class Program Friend Shared Sub Main(args As String()) Const PrinterName As String = "Microsoft Print to PDF" ' Create an instance of Bytescout.PDFRenderer.DocumentPrinter object and register it. Dim documentPrinter As New DocumentPrinter() documentPrinter.RegistrationName = "demo" documentPrinter.RegistrationKey = "demo" ' Load 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 the specified printer documentPrinter.PrintDocument(PrinterName) ' To print specific pages use overridden methods allowing to define pages to print: 'documentPrinter.PrintDocument(PrinterName, 2, 4) ' printer pages from 3 to 5 'documentPrinter.PrintDocument(PrinterName, New Integer() {0, 2, 3, 4, 6}) ' print specific pages 'documentPrinter.PrintDocument(PrinterName, "1,3-5,7-") documentPrinter.Dispose() End Sub End Class
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: