Implementing Custom Area Printing with Browser Print Dialogs

Custom printing functionality is essential when dealing with dynamic content layouts that extend beyond simple tabular data. This approach anables precise control over printable regions. Required Dependencies Install the necessary libraries: npm install html2canvas print-js Import the dependencies in you're component: import html2canvas from ' ...

Posted on Thu, 30 Jul 2026 16:29:31 +0000 by mrjap1

WPF Printing with PrintDialog.PrintDocument Method

When using PrintDialog.PrintDocument for printing in WPF, you need to prepare a FlowDocument for layout. FlowDocuments cannot be dispalyed directly in designers, so you typically design them in a UserControl or Window, then copy the XAML into the FlowDocument. To populate the FlowDocument with data, pre-define named TextBlock eelments within th ...

Posted on Mon, 01 Jun 2026 17:12:36 +0000 by it2051229