Click here to Skip to main content
15,917,639 members
Home / Discussions / C#
   

C#

 
AnswerRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
Member 44132839-Dec-08 2:04
Member 44132839-Dec-08 2:04 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
nt_virus9-Dec-08 2:07
nt_virus9-Dec-08 2:07 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
nt_virus9-Dec-08 2:15
nt_virus9-Dec-08 2:15 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
Tom Deketelaere9-Dec-08 3:05
professionalTom Deketelaere9-Dec-08 3:05 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
nt_virus9-Dec-08 5:18
nt_virus9-Dec-08 5:18 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
nt_virus9-Dec-08 5:25
nt_virus9-Dec-08 5:25 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
Tom Deketelaere9-Dec-08 5:28
professionalTom Deketelaere9-Dec-08 5:28 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
Tom Deketelaere9-Dec-08 5:26
professionalTom Deketelaere9-Dec-08 5:26 
It looks like you are trying to fill your dataset with an select query that requires an variable (@A)
Wich is missing. (that is what the error says)

first off all this isn't needed.

You have 2 options:
You select the complete table and do the filtering on the report (that is the way I explained it in earlyer post)

OR

You do the filtering in the select command and NOT on the report (in this case you don't need the parameter on the report)

Both are possible and acceptable, you can do both but that's not needed.

If you choice the second option you need to provide a sqlparameter

something like:
sqldataadapter1.selectcommand.commandtext = "SELECT * FROM table WHERE id=@A";
sqldataadapter1.selectcommand.parameters.addwithvalue("@A",textbox1.text);
sqldataadapter1.fill(dataset11);
crystalReport11.SetDataSource(dataSet11);
crystalReportViewer1.ReportSource = crystalReport11;


and then your report doesn't need the parameter nor needs to filer it (the set select from last post) since you already filterd the data.

(once again this if from memory)
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
nt_virus9-Dec-08 5:44
nt_virus9-Dec-08 5:44 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
Tom Deketelaere9-Dec-08 6:52
professionalTom Deketelaere9-Dec-08 6:52 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
nt_virus10-Dec-08 5:22
nt_virus10-Dec-08 5:22 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
Tom Deketelaere10-Dec-08 7:14
professionalTom Deketelaere10-Dec-08 7:14 
QuestionHow can we get all workgroups on LAN using C# Pin
Venki569-Dec-08 1:45
Venki569-Dec-08 1:45 
AnswerRe: How can we get all workgroups on LAN using C# Pin
Ben Fair9-Dec-08 3:35
Ben Fair9-Dec-08 3:35 
GeneralRe: How can we get all workgroups on LAN using C# Pin
Venki5610-Dec-08 0:14
Venki5610-Dec-08 0:14 
QuestionProblem in Reading from serial port Pin
TJS4u9-Dec-08 1:06
TJS4u9-Dec-08 1:06 
AnswerRe: Problem in Reading from serial port Pin
Giorgi Dalakishvili9-Dec-08 1:10
mentorGiorgi Dalakishvili9-Dec-08 1:10 
AnswerRe: Problem in Reading from serial port Pin
Simon P Stevens9-Dec-08 1:11
Simon P Stevens9-Dec-08 1:11 
GeneralRe: Problem in Reading from serial port Pin
TJS4u9-Dec-08 1:18
TJS4u9-Dec-08 1:18 
GeneralRe: Problem in Reading from serial port Pin
Simon P Stevens9-Dec-08 1:27
Simon P Stevens9-Dec-08 1:27 
GeneralRe: Problem in Reading from serial port Pin
TJS4u9-Dec-08 1:38
TJS4u9-Dec-08 1:38 
AnswerRe: Problem in Reading from serial port Pin
Eddy Vluggen9-Dec-08 1:21
professionalEddy Vluggen9-Dec-08 1:21 
GeneralRe: Problem in Reading from serial port Pin
TJS4u9-Dec-08 1:34
TJS4u9-Dec-08 1:34 
GeneralRe: Problem in Reading from serial port Pin
Eddy Vluggen9-Dec-08 1:47
professionalEddy Vluggen9-Dec-08 1:47 
GeneralRe: Problem in Reading from serial port Pin
TJS4u9-Dec-08 1:56
TJS4u9-Dec-08 1:56 

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.