1

I have a complicated report that I need to draw with GDI+ (I don't know of a better way) with multiple pages and have it save to PDF so the user can download. What is the best way to do this?

Max Schmeling
  • 12,363
  • 14
  • 66
  • 109
  • See http://stackoverflow.com/questions/1953179/cost-effective-net-solutions-for-report-generation-in-excel-and-pdf – jrummell Feb 26 '10 at 20:25
  • Which is the driver, the need to do it in GDI+, or the need to have it in PDF? I once had a project where they were asking for PDF, but they really just wanted to be able to print the page cleanly. We did that by using different style sheets for print and browser. – Jim L Feb 26 '10 at 22:12
  • The need to have it in PDF. It is an OSHA report file and it has very strict requirements. – Max Schmeling Feb 26 '10 at 22:22

3 Answers3

3

Not sure how complex your report is and what you are doing with GDI+ but here's some ideas that may help:

Checkout ITextSharp and/or PDFSharp.

The spark view engine also has pdf generation built in.

As another thought.... If you have access to SQL Report server and/or at least it's client and can use it to create your report you can generate and call from .Net MVC and output as PDF.

Check out this SO answer: Asp.Net MVC how to get view to generate PDF

Community
  • 1
  • 1
Kevin LaBranche
  • 20,908
  • 5
  • 52
  • 76
0

There is another way of doing it, install Bullzip on the server, and using the COM interface, you can programmatically print it out to a pdf document which I would think would be less hassle...simply select the Bullzip PDF Printer as the active printer and print it out to a destination pdf folder. Have a look at this here to see how the COM works...the COM interface is the same as bioPDF's COM model.

Hope this helps, Best regards, Tom.

t0mm13b
  • 34,087
  • 8
  • 78
  • 110
0

I'm a fan of Data Dynamics ActiveReports myself. Probably has a little do with the fact that they're local in town, and if I have a problem I can just call them up. Very good reporting engine though. Prints directly to PDF.

Joel Etherton
  • 37,325
  • 10
  • 89
  • 104