[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


ASP.Net options for creating and sending order reports

Posted on 2012-09-09
Medium Priority
Last Modified: 2012-09-14
I have a .Net web application written in c# visual studio 2010 against a SQL Server 2008 database.  Users are able to create and submit orders to our backoffice.  We need to allow the users to download a report of their order at will.  Also when an order is submitted we need to email them an order summary.

We have done this in the past by creating a CSV file but would like to more to a nicer solution; perhaps a PDF or Word file.  Are there any free options we should be considering to allow us to generate attractive reports quickly?
Question by:canuckconsulting
  • 2
  • 2
LVL 38

Accepted Solution

Jim P. earned 800 total points
ID: 38382180
A basic Crystal Reports solution comes with the Visual Studio software. From there you should be able to dump that to a PDF printer SW. Then you can e-mail that.
LVL 31

Assisted Solution

MlandaT earned 1200 total points
ID: 38382562
I agree with Jimpen. Crystal Reports is the best (or perhaps easiest?) way to do this sort of thing.

Crystal Reports for VS2010
It turns out that Crystal Reports for Visual Studio 2010 was released separately, instead of included with the product and Crystal Reports for Visual Studio 2010 will continue to be free, with no registration required.

Download crystal report from the below mentioned link

Or just directly paste below link to your address bar and it will ask to save an exe file.

Examples - easy enough to find these on Google, even showing how to Export a Crystal Report to PDF

Author Comment

ID: 38398022
Thank you for the help!  I have created my report using Crystal and displaying it via the Report viewer control  I have just deployed it to the server but am getting an error "Database Vendor Code: 17 ] Failed to open the connection".

Before I go further I wanted to confirm something.  Does the web client need to be able to connect directly to the DB?  I hope not as this is to run on the internet so this is not possible.  I am assuming everything is done server side but just need to be sure!

Thank you again!
LVL 31

Expert Comment

ID: 38398131
Everything is done on the server side.

For the error, try this:

Do the following steps:

1. Open the report in the CR XI designer.
2. Select Database -> Set Datasource Location.
3. Set Datasource Location window will appear and in the replace with section connect to the database and replace these tables with the tables in the current datasource by clicking the update button.
4. After updating close the Set Datasource Location window.
5. Go to 'Database menu' and Click 'Verify Database' and click on OK.
6. Preview the report and the save the report.


Author Closing Comment

ID: 38398138
I have decided to open another question regarding my connectivity issues.  Thank you for your help!

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Suggested Courses

872 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