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 6341667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:04:56+00:00 2026-05-24T20:04:56+00:00

I have a WPF application and I need to print from it. I had

  • 0

I have a WPF application and I need to print from it. I had previously posted a question about printing without needing to display a confirmation window and got a great answer that I have implemented like the following

var pq = LocalPrintServer.GetDefaultPrintQueue();
var writer = PrintQueue.CreateXpsDocumentWriter(pq);
var paginator = newPass.docMain.Document.DocumentPaginator;
writer.Write(paginator);

This code works just fine and simple – it basically just picks up the local printer que and sends the XPS document. However, it is relatively slow to print. I’ve tried to narrow down the possibilities and it looks like the greatest speed difference is between WinXP and Win7 machines. On XP it is slow, but acceptable, at about 2-3 seconds to print while on Win7 it can be upwards of 10 seconds and 15 seconds is not uncommon. Is there a reason why this code would have such a difference in speed? Also, I’ve noticed that there are a few questions on here about WPF print speeds – is there a reason why WPF printing in general is slow?

  • 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-24T20:04:58+00:00Added an answer on May 24, 2026 at 8:04 pm

    Perhaps one or more of these links will be useful in solving this issue:

    http://www.bradymoritz.com/wpf-printing-performance-and-pdf

    http://blogs.infosupport.com/blogs/willemm/archive/2008/11/03/WPF-Speed-tips.aspx

    http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/printing-is-very-very-slow-in-windows-7/477b5aba-a93d-4c5e-ac1f-329fed6459f3

    WPF: Why TOO SLOW to Get PrintDialog's .PrintableAreaWidth and .PrintableAreaHeight?

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

Sidebar

Related Questions

I need to display a PDF in a WPF application. From all the reading
I have a simple WPF application with a menu. I need to add menu
I have a simple text box in a WPF application. I need to know
I am developing a WPF application, and I need your advice. I have to
I have a WPF application that I need to have users access directories in.
I'm building a WPF application in which I need to display document previews such
We have a WPF application where we need to detect if the user is
I have a WPF application which I need to integrate with WinForms. As suggested
I have WPF Application where I have One main form and other user controls
I have a WPF application in VS 2008 with some web service references. For

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.