Click here to Skip to main content
15,899,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: Allowing selections in only one listview at a time Pin
Dan Neely28-Sep-05 8:13
Dan Neely28-Sep-05 8:13 
GeneralRe: Allowing selections in only one listview at a time Pin
Heath Stewart28-Sep-05 8:22
protectorHeath Stewart28-Sep-05 8:22 
GeneralRe: Allowing selections in only one listview at a time Pin
Dan Neely28-Sep-05 9:03
Dan Neely28-Sep-05 9:03 
GeneralRe: Allowing selections in only one listview at a time Pin
Heath Stewart28-Sep-05 9:16
protectorHeath Stewart28-Sep-05 9:16 
GeneralRe: Allowing selections in only one listview at a time Pin
Dan Neely28-Sep-05 9:28
Dan Neely28-Sep-05 9:28 
GeneralRe: Allowing selections in only one listview at a time Pin
Heath Stewart28-Sep-05 9:30
protectorHeath Stewart28-Sep-05 9:30 
QuestionC# and SQL DB Script Pin
| Muhammad Waqas Butt |28-Sep-05 5:34
professional| Muhammad Waqas Butt |28-Sep-05 5:34 
QuestionCrystal reports Pin
Member 181155428-Sep-05 4:52
Member 181155428-Sep-05 4:52 
I am a student busy developing an application in C# donet, I am busy working with crystal reports. I need my reports to be dynamic, I want to pass a different SQL statement every time (eg a report that will generate information of the selected customer)

string SQL = "SELECT ClientID, Name FROM Client WHERE ClientID = 14544";

DataSet ds = new DataSet();

System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection("Provider=SQLOLEDB;Data Source=localhost;Initial Catalog=TKOAcademic;Integrated Security=SSPI;Connect Timeout=30");

System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter1 = new System.Data.OleDb.OleDbDataAdapter();

oleDbDataAdapter1.SelectCommand = new System.Data.OleDb.OleDbCommand(SQL, conn);




CrystalReport1 cutsReport = new CrystalReport1();


oleDbDataAdapter1.Fill(ds,"Client");

cutsReport.SetDataSource(ds);

crystalReportViewer.ReportSource = cutsReport;



I have tried doing it but shows all the records from the Client table

D'Oh! | :doh:

AnswerRe: Crystal reports Pin
dbetting28-Sep-05 9:27
dbetting28-Sep-05 9:27 
QuestionBook Review? Pin
Russell Jones28-Sep-05 4:30
Russell Jones28-Sep-05 4:30 
AnswerRe: Book Review? Pin
Dario Solera28-Sep-05 6:57
Dario Solera28-Sep-05 6:57 
GeneralRe: Book Review? Pin
Anonymous28-Sep-05 22:25
Anonymous28-Sep-05 22:25 
QuestionSystem.Xml.Document : How to write special characters in an xml file ? Pin
smashingraph28-Sep-05 3:53
smashingraph28-Sep-05 3:53 
AnswerRe: System.Xml.Document : How to write special characters in an xml file ? Pin
Dave Kreskowiak28-Sep-05 6:24
mveDave Kreskowiak28-Sep-05 6:24 
GeneralRe: System.Xml.Document : How to write special characters in an xml file ? Pin
smashingraph28-Sep-05 21:50
smashingraph28-Sep-05 21:50 
QuestionReleasing Memory Pin
dbetting28-Sep-05 3:30
dbetting28-Sep-05 3:30 
AnswerRe: Releasing Memory Pin
Guffa28-Sep-05 5:22
Guffa28-Sep-05 5:22 
GeneralRe: Releasing Memory Pin
dbetting28-Sep-05 6:24
dbetting28-Sep-05 6:24 
GeneralRe: Releasing Memory Pin
Guffa28-Sep-05 9:03
Guffa28-Sep-05 9:03 
GeneralRe: Releasing Memory Pin
Dave Kreskowiak28-Sep-05 9:36
mveDave Kreskowiak28-Sep-05 9:36 
GeneralRe: Releasing Memory Pin
dbetting28-Sep-05 11:04
dbetting28-Sep-05 11:04 
GeneralRe: Releasing Memory Pin
Dave Kreskowiak28-Sep-05 11:16
mveDave Kreskowiak28-Sep-05 11:16 
GeneralRe: Releasing Memory Pin
dbetting28-Sep-05 12:13
dbetting28-Sep-05 12:13 
GeneralRe: Releasing Memory Pin
Dave Kreskowiak28-Sep-05 14:30
mveDave Kreskowiak28-Sep-05 14:30 
GeneralRe: Releasing Memory Pin
dbetting29-Sep-05 1:51
dbetting29-Sep-05 1:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.