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

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,301 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
9,459 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,401 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 21,871 Reputation points Microsoft Vendor
    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