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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:49:01+00:00 2026-06-16T19:49:01+00:00

ASP.NET / Mono MVC2 application is used to create and mail invoices, orders and

  • 0

ASP.NET / Mono MVC2 application is used to create and mail invoices, orders and other documents in PDF format.

Every customer needs different document layout and logos in document.

This layout should easily customized.

How to implement this using free software ? There should be report generator or something in application and way to create pdf files with logos from designed layouts.

  • 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-06-16T19:49:02+00:00Added an answer on June 16, 2026 at 7:49 pm

    I have the same need and have really struggled to find an ideal solution for this. I am currently using iTextSharp, which seems to be a popular choice. It lets you render an html page as a pdf. I’ve found that it has limited support for css styles, which can make it frustrating to get exactly what you want. Here’s some sample code of how to use this in mvc:

        public ActionResult CreatePdfFromView(YourType yourViewData)
        {
            var htmlViewRenderer = new HtmlViewRenderer();
            string htmlText = htmlViewRenderer.RenderViewToString(this, "YourViewName", yourViewData);
    
            byte[] renderedBuffer;
    
            using (var outputMemoryStream = new MemoryStream())
            {
                using (Document document = new Document())
                {
                    PdfWriter writer = PdfWriter.GetInstance(document, outputMemoryStream);
                    writer.CloseStream = false;
                    document.Open();
    
                    iTextSharp.text.Image pic = iTextSharp.text.Image.GetInstance(Server.MapPath("/Content/img/Your_Logo.png"));
                    pic.ScaleToFit(190, 95);
                    pic.SetAbsolutePosition(200, 730);
                    document.Add(pic);
    
                    try
                    {
                        StringReader sr = new StringReader(htmlText);
                        XMLWorkerHelper.GetInstance().ParseXHtml(writer, document, sr);
                    }
                    catch (Exception e)
                    {
                        throw;
                    }
                }
    
                renderedBuffer = new byte[outputMemoryStream.Position];
                outputMemoryStream.Position = 0;
                outputMemoryStream.Read(renderedBuffer, 0, renderedBuffer.Length);
            }
    
            return new BinaryContentResult(renderedBuffer, "application/pdf");
        }
    

    I would say make sure to use the XMLWorkerHelper instead of the HTMLWorker. I think you have to download the XML worker separately. Here is a link to the download page..

    Another one that I have used, more for creating excel reports is DoodleReport. It’s much more simple. Basically a tabular data dump. Not sure if you can do icons either.

    Hope that helps. Curious to see if anyone has better suggestions.

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

Sidebar

Related Questions

If ASP.NET MVC2 code below shows message Test in Create controller response. In Mono
I'm running an ASP.NET MVC2 application under mod_mono with mono 2.8.1 and currently have
I wrote an ASP.NET application and am running it on apache with mod mono.
We are using the Mono (2.10) XSP4 webserver to host an ASP.Net MVC3 web-application
i'm developing an asp.net application. In my database i've a classic mono-record settings table.
I'm porting my ASP.NET application to Mono . I built it from SVN trunk
If I create an ASP.NET MVC 3 (with Razor) application in Visual Studio 2010,
Is it possible to run the new ASP.NET MVC 2 Preview 2 on mono?
Is there any performance different between hosting your asp.net in mono on linux and
I am getting started doing ASP.NET on my Mac using Mono, and I'm wondering

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.