How to create a pdf file from Visual Basic or C#

Posted on 2011-05-05
Last Modified: 2013-12-16
I need to create a PDF file based on the information contained in the invoice that is already printed from my ERP. The format of the invoice contains images, squares, and some lines to create a better look.

The ERP run under unix solaris but the data is accesible from windows using ODBC.

I have heard about "PDF converter tool" but I know that it opens some windows while converting the files. I need to do the conversion or creation of PDF totally in background without user interaction.

What is the best tool to do it?, combine crystal reports with .NET , how?
Should I use a third party converter tool?
Should I use some product from company?

Or what would be your recommendation?

Thank you
Jorge Manzo
Question by:jmanzo10
    LVL 23

    Assisted Solution

    If I understand correctly, you need to make changes to a PDF generated by your ERP system.  Is that correct?

    If that's the case, you can take a look at iTextsharp.  It's an open source PDF library for generating and manipulating PDF files on .NET.
    LVL 100

    Expert Comment

    What tool is used to produce the invoices?
    Is it a reporting tool like Crystal or SSRS?
    If so you probably can export the report to PDF


    Author Comment


    The invoiced is printed using the ERP software. The ERP is developed in .NET.

    Because I have access to the invoice information, after the invoice is printed, I am planning to read the database and create a PDF file with the same information that was printed by the ERP.

    LVL 100

    Accepted Solution

    Do you have access to a reporting tool like Crystal or SSRS?
    There are versions included with Visual Studio

    Here is a sample of how to build a report using a .Net dataset

    Part 2 - exporting the report

    LVL 16

    Assisted Solution

    by:Kalpesh Chhatrala

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now