Winspool libraries VS System.Printing namespace

Dinesh valavala 1 Reputation point
2020-07-13T12:43:29.533+00:00

I just started working on a WPF application (with .NET Core 3.1).
It has a print module implemented using Winspool through DllImport("winspool.Drv").

I have the following questions.

  1. Any documentation links on how to implement Winspool in a .NET WPF project?
  2. Differences between using System.Printing namespace and Winspool implementation?
  3. Scenarios for using System.Printing namespace VS using Winspool libraries please
  4. Are there any better alternate ways to implement print function in a WPF project?

Any help is very much appreciated.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,772 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.