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

  • SEARCH
  • Home
  • 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 7628669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:38:13+00:00 2026-05-31T05:38:13+00:00

I’m developing an application in c# using winforms and I need to print some

  • 0

I’m developing an application in c# using winforms and I need to print some documents like contracts, amortization tables and some other stuff, all based in predefined templates. Template’s structure aren’t that complex, just some tables, text formatting and two column pages. The goal is to print documents based on those templates with some data loaded dynamically. First I was thinking to achieve that using some PDF libraries like PDFSharp or iText but then I found out that there are other technologies like XPS or XSL-FO maybe suitable for my needs.

What are your recommendations guys? Any help would be appreciated.

  • 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-31T05:38:15+00:00Added an answer on May 31, 2026 at 5:38 am

    How about doing office interop and just using Word templates?

    The client would probably have to want to do this. The thing I like about it, is with bookmarks is pretty easy to replace data in the template with data from your application. It’s also convenient when some of the static text changes. You can just update the templates and distribute them, no recompiling. Also if the client wants to preview it in Word before printing that is somewhat automatic. There are some nitty gritty details about using interop but with C# 4.0 it certainly got a lot easier and is always a good skill to have.

    On the downside if your templates are in a convenient location an ornery user could go in and modify things and break the reports. Also with tables if you have a lot of data, the standard documented method of adding a cell at a time can be pretty slow. Creating delimited text and then doing the text-to-table call is pretty fast but then you have to do all the formatting in code.

    On the XPS side I did see a good overview video on pluralsight. It was part of the WPF course so I’m not sure how it translates to a winform app. I think you get to watch at least a couple of hours for free so it might be worth checking out if you want to get an overview of how XPS printing works.

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

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have thousands of HTML files to process using Groovy/Java and I need to
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I would like to count the length of a string with PHP. The string
I've got a string that has curly quotes in it. I'd like to replace
I am reading a book about Javascript and jQuery and using one of 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.