• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 388
  • Last Modified:

Convert ASP reports to PDF documents

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!!
0
AlexandraT
Asked:
AlexandraT
1 Solution
 
_Stilgar_Commented:
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: http://www.websupergoo.com/abcpdf-1.htm

Stilgar.
0
 
bugs021997Commented:
@AlexandraT

As @_Stilgar_ suggested use ABCpdf from websupergoo (www.websupergoo.com), 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

http://www.pdflib.com 

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:

http://www.15seconds.com/issue/990902.htm
http://www.15seconds.com/Issue/981216.htm
http://www.west-wind.com/presentations/pdfwriter/pdfwriter.htm
0
 
AlexandraTAuthor Commented:
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!
0
 
_Stilgar_Commented:
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 http://www.websupergoo.com/helppdf6/default.html, the Multistyle Example under examples.

Stilgar.
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now