Convert ASP reports to PDF documents

Posted on 2007-08-02
Last Modified: 2010-08-05
I have numerous reports on an intranet that are coded in ASP and HTML.  It's been requested to have the ability to pull the reports up in PDF.

I've played with ASP PDF's new feature for converting HTML documents to PDF (it's still a work in progress according to the company) and the reports don't convert 100% well.  A column is cut off, lines break where they shouldn't, rows that should span several columns don't.  It could that my existing code isn't perfect.

But, I'm wondering if there is another tried-and-true product that will convert my ASP pages to PDF documents to where they look exactly as they did in HTML and very little code needs to be added to the existing report.

I'll give the points to whoever
1) gives me tips on how to make my HTML work perfectly with ASP PDF (that end up working)
2) recommends the product and (describes it's features) and my company ends up going with it

Thank you!!
Question by:AlexandraT
    LVL 14

    Accepted Solution

    How does the layout of your report look? Try to make it as simple as possible, sticking to XHTML standards and not using background images when possible.

    Try this component:

    LVL 14

    Expert Comment


    As @_Stilgar_ suggested use ABCpdf from websupergoo (, its a good component

    Also the FDF file that goes with the PDF file should be able to do this, but you'd have to send two files, the PDF as a template and the FDF file as the Form contents

    One of the rare alternatives is PDFLib, which also exists as ActiveX component - see

    PDFLib is the best library IMO. No need to register COM. It is not free but there are no runtime fees..

    Check out this links as well:

    Author Comment

    Have either of you used the ABCpdf product and if so, how complex is it to convert an ASP report to PDF?  Are a lot of coding changes required?  Or is it just running a few new lines on the page when you want it pull up the report in PDF?  Do reports convert really well??  Thanks!
    LVL 14

    Expert Comment

    It is only about changing a few lines of code - the object creation and the call to the PDF function. The input is HTML in both cases.

    See, the Multistyle Example under examples.

    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    This demonstration started out as a follow up to some recently posted questions on the subject of logging in: and…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    754 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

    18 Experts available now in Live!

    Get 1:1 Help Now