ByteScout tutorials describe the stuff for programmers who use VB.NET. PDF viewer control hosted in WPF with PDF viewer SDK in VB.NET can be applied with ByteScout Premium Suite. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.
If you want to quickly learn then these fast application programming interfaces of ByteScout Premium Suite for VB.NET plus the guideline and the VB.NET code below will help you quickly learn PDF viewer control hosted in WPF with PDF viewer SDK. Follow the steps-by-step instructions from the scratch to work and copy and paste code for VB.NET into your editor. Enjoy writing a code with ready-to-use sample VB.NET codes to add PDF viewer control hosted in WPF with PDF viewer SDK functions using ByteScout Premium Suite in VB.NET.
Trial version along with the source code samples for VB.NET can be downloaded from our website
Class Application ' Application-level events, such as Startup, Exit, and DispatcherUnhandledException ' can be handled in this file. End Class
Class MainWindow Private Sub Window_Loaded(sender As Object, e As RoutedEventArgs) ' Load a sample document on startup pdfViewerControl1.InputFile = "sample.pdf" End Sub Private Sub menuItemOpen_Click(sender As Object, e As RoutedEventArgs) Dim dlg = New Microsoft.Win32.OpenFileDialog() dlg.Filter = "PDF Files (*.pdf)|*.pdf|All Files (*.*)|*.*" Dim result As Boolean? = dlg.ShowDialog() If result = True Then pdfViewerControl1.InputFile = dlg.FileName End If End Sub End Class