An easy to understand guide to learn how to PDF viewer control hosted in WPF with PDF viewer SDK in C#. ByteScout Premium Suite helps with PDF viewer control hosted in WPF with PDF viewer SDK in C#. 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 PDF viewer control hosted in WPF with PDF viewer SDK in C# with the help of ByteScout Premium Suite. Follow the steps-by-step instructions from the scratch to work and copy and paste code for C# into your editor. Updated and detailed documentation and tutorials are available along with installed ByteScout Premium Suite if you’d like to learn more about the topic and the details of the API.
Trial version along with the source code samples for C# can be downloaded 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)
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace PdfViewerInWpf { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { } }
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
using System; using System.Drawing; using System.Windows; namespace PdfViewerInWpf { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } private void Window_Loaded(object sender, RoutedEventArgs e) { // Load a sample document on startup pdfViewerControl1.InputFile = "sample.pdf"; } private void menuItemOpen_Click(object sender, RoutedEventArgs e) { Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog { Filter = "PDF Files (*.pdf)|*.pdf|All Files (*.*)|*.*" }; bool? result = dlg.ShowDialog(); if (result == true) pdfViewerControl1.InputFile = dlg.FileName; } } }
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: