Skip to content

System.Printing Support #871

Closed
Closed

Description

@shaggygi

This was created based on a discussion from https://github.com/dotnet/corefx/issues/37978

I was trying to port an API to .NET Core that uses System.Printing PrintServer and related. I came across this doc and have the impression System.Printing is supported.

I was informed (from issue link above) this is part of WPF and can be use by creating a dotnet new wpf. However, I would like to use as a Class Library even if it must use the Win Compatibility package and Windows only.

We have many APIs to create/print labels that call the System.Printing APIs. It would be nice to continue the same approach using WPF with .NET Core v3 and beyond.

Thanks in advance for any help. It will be appreciated.

Activity

  1. added this to the 3.0 milestone on Jun 6, 2019
  2. dsplaisted commented on Jun 13, 2019

    @dsplaisted
    Member

    You can add the following to a .NET Core 3.0 class library project in order to access System.Printing:

    <ItemGroup>
      <FrameworkReference Include="Microsoft.WindowsDesktop.App" />
    </ItemGroup>
  3. shaggygi commented on Jun 14, 2019

    @shaggygi
    Author

    Thanks team for all the help. I was able to change one of our label and printer APIs to a .NET Core Class Library project and now works similar to .NET (full framework).

  4. ghost locked as resolved and limited conversation to collaborators on Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions