Install a .net application as a virtuell printer

Manne Job 40 Reputation points
2023-11-07T14:53:39.3733333+00:00

Hello,

is there someone who can help me for follow problem.

I have a application created in VB.net.

I want to change this application to install it as a virtuell printer.

What have I to do for a setup project to install it as an virtual printer.

Is there an example ?

thanks

Manne

Developer technologies VB
0 comments No comments
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
    2023-11-08T02:25:52.1866667+00:00

    Hi @Manne Job ,

    You need to write a VirtualPrinter class which inherits from System.Drawing.Printing.PrintDocument and override the PrintPage method to handle the printing logic, then use the VirtualPrinter class to print.

    Include it in your setup project.

    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.