jack
jack

Reputation: 73

.NET Windows Form Data to PDF

I have a C# .NET Windows Form with text fields. The user enters data into this form and once they submit I need to generate a PDF file with their data arranged neatly. What is the best way to do this? Should I move the data into a database or can I directly export to PDF?

Upvotes: 1

Views: 850

Answers (2)

Peter Rasmussen
Peter Rasmussen

Reputation: 16922

There is no need to add it to a database if you don't want to persist the data for later use. There are tons of libraries out there for pdf creation in c#.

Here's a post made not long ago with some great references. It also covers almost the same topic.

Upvotes: 1

Anjali
Anjali

Reputation: 1718

you want to export directly to pdf. are you have any specific format, how it should Looks. otherwise create a crystal report. Design a format.After that write this code

            Crystalreportobject.ExportToDisk(ExportFormatType.PortableDocFormat, name + ".pdf");

ExportToDiskMethod can Export directly to PDF

Upvotes: 0

Related Questions