Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 416851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:31:18+00:00 2026-05-12T18:31:18+00:00

This is a two-part question: 1. The original .NET print classes (in System.Drawing.Printing) are

  • 0

This is a two-part question:

1.

The original .NET print classes (in System.Drawing.Printing) are not supported on the server side. (See http://msdn.microsoft.com/en-us/library/system.drawing.printing(VS.80).aspx )

I think that the newer XPS-based printing classes (in System.Printing) are supported on the server side, e.g. in ASP.NET apps and Windows Services, but I can’t prove it. And Microsoft have not answered my questions about it.

Does anyone here know?

2

The new XPS-based printing will sometimes do an internal conversion to GDI. That is for cases where the only driver available is an old-style driver, even though the app is printing with the new printing classes. See http://msdn.microsoft.com/en-us/library/ms742418.aspx . Are the new classes safe for server-side use in that situation?

  • To clarify – this is entirely about the server printing stuff. For the purposes of this discussion, there is no web browser involved at all. A server, either windows service or asp.net, needs to directly print out a document, on a printer that is attached to the server.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T18:31:19+00:00Added an answer on May 12, 2026 at 6:31 pm

    As noted in my comment below, there is no supported solution for server-side printing in pure managed code.

    But, Aspose have just released some code that lets you print XPS documents from managed code (successfully using PInvoke to call the XPS Print API). [For the record, I believe that Microsoft’s intitial recommendation against using PInvoke to call XPS print was simply because it is a difficult API to interact with using PInvoke. But Aspose seem to have succeeded, which is good news, since it removes the need to involve separate any separate unmanaged DLL.]

    All in all, the Aspose solution looks like the easiest fully-supported way to print complex documents from ASP.NET and Windows services.

    Details here: http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/howto-print-a-document-on-a-server-via-the-xpsprint-api.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a two part question. A dumb technical query and a broader query
This is actually a two part question. First,does the HttpContext.Current correspond to the current
This is really a two part question, since I don't fully understand how these
This is part two of the question: On closing of the popup I need
This is a two part question. First how can I grab the last url
This is a two part question, but I want to make sure the first
This is a two-part question about adding a third-party library (JAR) to an Android
This is sort of a two part question. I'm building a flash image viewer
This is a two part question: I am working on a big project where
This is a two part question: 1) Why do we need to make the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.