Install a .net application as a virtuell printer

Manne Job 40 Reputation points
2023-11-08T08:19:51.2366667+00:00

Hello,

I want to integrate or create a virtual printer.

That means I'm looking for an example or information on how I can integrate a printer into Windows.

Create setup project, code example,...

I have a program that creates a PDF from Word and Excel. This PDF is then sent to a web service.

Works quite well so far, is integrated as dll/tlb in the menu bar in Word and Excel.

The customer's request is now: I would like to have implemented this as a printer.

Maybe someone has already had experience with this and can help me.

Greetings Manne

Developer technologies | .NET | Other
Developer technologies | VB
Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
    2023-11-08T09:27:27.2733333+00:00

    Hi @Manne Job ,

    If you want to be able to select your virtual printer in the print interface, you need to create a printer driver package using Windows Driver Kit (WDK). This file contains information about your virtual printer, such as its name, supported platforms, and required files.

    And here are some samples about print : https://github.com/microsoft/Windows-driver-samples/tree/main/print

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

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.