Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
sir i havae created a form and a report. now i wnt to generate a report by clicking a button on thew form.how can i do this.pl help
Posted
Comments
Christian Graus 17-Jul-10 19:24pm    
This is not a sensible question. I assume you know how to create a click handler for a button, if not, you need a basic book, not a programming forum. So, you have your click handler, you have a report ( you don't say how this report is generated, or what form it takes ). It's obvious that there's a problem for you, but what you're asking makes no sense at all, so try to explain yourself, show us some code of what you've tried, and tell us where you are stuck.
Sandeep Mewara 18-Jul-10 0:09am    
Reason for my vote of 1
1. Lack of understanding
2. Repost multiple times

Well I will take this as a REPOST[^].

Surely, you need to read first before trying to code. After helping you so much you are still not able to get the thing right.

Pick a book or use World Wide Web and read, learn, do some ground work first.
 
Share this answer
 
simple when u double click on button its click event generates and then call an object of ur report and use appropiate methods to shhow it if its crystal report then do following:


CrystalReportCompGroup crcg = new CrystalReportCompGroup();
crcg.SetDataSource(ds.Tables[0]);
crystalReportViewerCompGroup.ReportSource = crcg;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900