diff --git a/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage.slnx b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage.slnx
new file mode 100644
index 0000000..3be04c4
--- /dev/null
+++ b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage.slnx
@@ -0,0 +1,3 @@
+
+
+
diff --git a/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/App.xaml b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/App.xaml
new file mode 100644
index 0000000..d1db399
--- /dev/null
+++ b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/App.xaml.cs b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/App.xaml.cs
new file mode 100644
index 0000000..fffafc6
--- /dev/null
+++ b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/App.xaml.cs
@@ -0,0 +1,14 @@
+using System.Configuration;
+using System.Data;
+using System.Windows;
+
+namespace Progamatic_printpage
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+
+}
diff --git a/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/AssemblyInfo.cs b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/AssemblyInfo.cs
new file mode 100644
index 0000000..b0ec827
--- /dev/null
+++ b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/AssemblyInfo.cs
@@ -0,0 +1,10 @@
+using System.Windows;
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
diff --git a/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/Input.pdf b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/Input.pdf
new file mode 100644
index 0000000..45e5cb8
Binary files /dev/null and b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/Input.pdf differ
diff --git a/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/MainWindow.xaml b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/MainWindow.xaml
new file mode 100644
index 0000000..ebbeff9
--- /dev/null
+++ b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/MainWindow.xaml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/MainWindow.xaml.cs b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/MainWindow.xaml.cs
new file mode 100644
index 0000000..6e4d58c
--- /dev/null
+++ b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/MainWindow.xaml.cs
@@ -0,0 +1,39 @@
+using System.Text;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace Progamatic_printpage
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+ pdfViewer.Load("../../../Input.pdf");
+ }
+ private void Print_Click(object sender, RoutedEventArgs e)
+ {
+ BitmapSource bitmapImage = pdfViewer.ExportAsImage(pdfViewer.CurrentPageIndex - 1);
+ Image image = new Image();
+ image.Source = bitmapImage;
+ PrintDialog printDialog = new PrintDialog();
+ bool? result = printDialog.ShowDialog();
+ if (result == true)
+ {
+ printDialog.PrintVisual(image, "PDF current page");
+ }
+ }
+
+ }
+
+}
\ No newline at end of file
diff --git a/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/Progamatic_printpage.csproj b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/Progamatic_printpage.csproj
new file mode 100644
index 0000000..216d2a7
--- /dev/null
+++ b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/Progamatic_printpage.csproj
@@ -0,0 +1,12 @@
+
+
+
+ WinExe
+
+
+
+
+
+
+
+
diff --git a/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/targets/MultiTargeting.targets b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/targets/MultiTargeting.targets
new file mode 100644
index 0000000..3928b04
--- /dev/null
+++ b/Printing-Examples/programmatically-print-currentpage/Progamatic_printpage/targets/MultiTargeting.targets
@@ -0,0 +1,10 @@
+
+
+ net462;net8.0-windows;net9.0-windows;net10.0-windows
+ true
+ False
+ True
+ True
+ True
+
+
\ No newline at end of file