Click here to Skip to main content
15,911,139 members
Home / Discussions / C#
   

C#

 
GeneralRe: can't open a vs 2003.net project.... Pin
_Maxxx_27-Jan-09 15:48
professional_Maxxx_27-Jan-09 15:48 
AnswerRe: can't open a vs 2003.net project.... Pin
AndieDu28-Jan-09 17:49
AndieDu28-Jan-09 17:49 
QuestionSearching files for String data - performance suggestions? Pin
Ryan Neil Shaw27-Jan-09 12:06
Ryan Neil Shaw27-Jan-09 12:06 
AnswerRe: Searching files for String data - performance suggestions? Pin
Ryan Neil Shaw2-Feb-09 10:03
Ryan Neil Shaw2-Feb-09 10:03 
AnswerRe: Searching files for String data - performance suggestions? Pin
Ryan Neil Shaw2-Feb-09 12:40
Ryan Neil Shaw2-Feb-09 12:40 
QuestionDisplay contents of a multiline textbox for printing Pin
krup7527-Jan-09 11:46
krup7527-Jan-09 11:46 
AnswerRe: Display contents of a multiline textbox for printing Pin
led mike27-Jan-09 11:54
led mike27-Jan-09 11:54 
Questionsuppress crystal report parameter dialog box Pin
Jassim Rahma27-Jan-09 11:39
Jassim Rahma27-Jan-09 11:39 
I am using the following code to display a simpel report using crystal report but though I am passing the parameter in my sql command, the parameter dialog box of crystal report promopts to enter the vehicle_id parameter value.

How can I get rid of that dialog box and make sure my parameter is passed from my C# code?

data_set = new DataSet();

sql_connection = new SqlConnection("Data Source=.\\SQLEXPRESS;initial catalog=rent_a_car_company;integrated security=true");
sql_connection.Open();

sql_command = new SqlCommand("sp_get_agreement_by_id", sql_connection);
sql_command.CommandType = CommandType.StoredProcedure;
sql_command.Parameters.Add("@vehicle_id", SqlDbType.Int).Value = 1;
sql_adapter = new SqlDataAdapter(sql_command);
sql_adapter.Fill(data_set);
// sql_adapter.Dispose();

// sql_connection.Close();

ReportDocument rptDoc = new ReportDocument();
rptDoc.Load(@"C:\Users\Jassim\Documents\Visual Studio 2008\Projects\Taajeer\Taajeer\agreement.rpt");
rptDoc.SetDataSource(data_set);
crystalReportViewer1.ReportSource = rptDoc;

AnswerRe: suppress crystal report parameter dialog box Pin
Wendelius27-Jan-09 11:43
mentorWendelius27-Jan-09 11:43 
GeneralRe: suppress crystal report parameter dialog box Pin
Jassim Rahma27-Jan-09 11:45
Jassim Rahma27-Jan-09 11:45 
GeneralRe: suppress crystal report parameter dialog box Pin
Wendelius27-Jan-09 11:56
mentorWendelius27-Jan-09 11:56 
QuestionDisplaying & editing a two dimensional array in DataGridView Pin
Henrik Schmiediche27-Jan-09 10:44
Henrik Schmiediche27-Jan-09 10:44 
AnswerRe: Displaying & editing a two dimensional array in DataGridView Pin
MadArtSoft28-Jan-09 0:01
MadArtSoft28-Jan-09 0:01 
GeneralRe: Displaying & editing a two dimensional array in DataGridView Pin
Henrik Schmiediche28-Jan-09 9:34
Henrik Schmiediche28-Jan-09 9:34 
QuestionListview Sub item Edit Pin
Udayaraju27-Jan-09 8:51
Udayaraju27-Jan-09 8:51 
AnswerRe: Listview Sub item Edit Pin
Wendelius27-Jan-09 8:56
mentorWendelius27-Jan-09 8:56 
AnswerRe: Listview Sub item Edit Pin
Dave Kreskowiak27-Jan-09 10:04
mveDave Kreskowiak27-Jan-09 10:04 
GeneralRe: Listview Sub item Edit Pin
Udayaraju28-Jan-09 4:10
Udayaraju28-Jan-09 4:10 
QuestionSpeeding up code Pin
Xmen Real 27-Jan-09 8:23
professional Xmen Real 27-Jan-09 8:23 
AnswerRe: Speeding up code Pin
vaghelabhavesh27-Jan-09 8:31
vaghelabhavesh27-Jan-09 8:31 
GeneralRe: Speeding up code Pin
Xmen Real 27-Jan-09 8:37
professional Xmen Real 27-Jan-09 8:37 
GeneralRe: Speeding up code Pin
vaghelabhavesh27-Jan-09 9:00
vaghelabhavesh27-Jan-09 9:00 
AnswerRe: Speeding up code Pin
User 665827-Jan-09 8:37
User 665827-Jan-09 8:37 
GeneralRe: Speeding up code Pin
Xmen Real 27-Jan-09 8:39
professional Xmen Real 27-Jan-09 8:39 
Questionwindows form to wndows service cmmunication... Pin
Mubeen.asim27-Jan-09 7:11
Mubeen.asim27-Jan-09 7:11 

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.