Last post Nov 22, 2010 01:02 AM by humill_bca
Nov 21, 2010 08:51 PM|humill_bca|LINK
I have a Registration form with two Buttons "Save" & "Report".
When I click on "Save" the data will store in the Database.
Now I want when click on the "Report" button the report of that
particular will be produce in the Crystal report. How can I do that??
Crystal Report on Button click
Nov 21, 2010 11:29 PM|sansan|LINK
1) you have to write a procedure to get data by passing Primary Key which is a unique ID column
2) Create a Crystal Report with all the fields from the procedure
public void GetReport()
CrystalReport1 cr = new CrystalReport1();
MemoryStream mem = (MemoryStream)cr.ExportToStream(ExportFormatType.PortableDocFormat);
Response.Buffer = true;
Response.ContentType = "application/pdf";
catch (Exception ex)
Where CrystalReport1 is the name of the report that you will create for display purpose. You can optionally create a new page with this code in page load and open a popup on Print button click event.
Nov 22, 2010 01:02 AM|humill_bca|LINK
There is no username & Password field in my Database..