Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Is there a way to start my windows service on windows startup? Pin
Rob Philpott21-Apr-17 5:01
Rob Philpott21-Apr-17 5:01 
QuestionWhen one Client starts a game it will automatically starts in all other connected clients in a network in windows form Pin
Member 1298752620-Apr-17 3:54
Member 1298752620-Apr-17 3:54 
GeneralRe: When one Client starts a game it will automatically starts in all other connected clients in a network in windows form Pin
PIEBALDconsult20-Apr-17 3:59
mvePIEBALDconsult20-Apr-17 3:59 
AnswerRe: When one Client starts a game it will automatically starts in all other connected clients in a network in windows form Pin
Gerry Schmitz20-Apr-17 7:46
mveGerry Schmitz20-Apr-17 7:46 
QuestionHelp with XML to datagridview Pin
cajsoft19-Apr-17 0:34
cajsoft19-Apr-17 0:34 
QuestionRe: Help with XML to datagridview Pin
CHill6019-Apr-17 1:01
mveCHill6019-Apr-17 1:01 
AnswerRe: Help with XML to datagridview Pin
Gerry Schmitz19-Apr-17 10:11
mveGerry Schmitz19-Apr-17 10:11 
QuestionNot binding data's in Rdlc Report Pin
Member 1305063918-Apr-17 4:10
Member 1305063918-Apr-17 4:10 
hi

here is my code Rdlc not binding data's in reportviewer pls any one help




protected void btnSearch_Click(object sender, EventArgs e)
{
DivReport.Visible = true;
GetMonthWiseReports();

}




private void GetMonthWiseReports()
{
string LocationName = string.Empty, CompanyName = string.Empty;
try
{
rptvw.Reset();
rptvw.ProcessingMode = ProcessingMode.Local;
rptvw.LocalReport.ReportPath = Server.MapPath("~/Reports/RDLC/MonthWiseLedger.rdlc");
string accname = string.Empty;
Int64 AccNo = 0;
//string frmdate = string.Empty;
//string todate = string.Empty;

//frmdate = Convert.ToDateTime(rdFrmDate.SelectedDate).ToString("yyyy-MM-dd");
//todate = Convert.ToDateTime(rdToDate.SelectedDate).ToString("yyyy-MM-dd");
DataTable dt_PurchaseData = SerLedgerMaster.GetMonthwiseledgerReport(AccNo).Tables[0];
dt_PurchaseData.Columns.Add("Serial_No");
Int32 RowCount = 0;
foreach (DataRow dr in dt_PurchaseData.Rows)
{
RowCount++;
dr["Serial_No"] = RowCount;
}
ReportDataSource rptSource = new ReportDataSource("MonthWiseLedger", dt_PurchaseData);
rptvw.LocalReport.DataSources.Add(rptSource);
rptvw.LocalReport.Refresh();
}
catch (Exception ex)
{
throw (ex);
}
}






public static DataSet GetMonthwiseledgerReport(Int64 accname)
       {
           try
           {
               MySqlConnection mySQLConnection = new MySqlConnection(ConfigurationManager.ConnectionStrings["MMDBConn"].ToString());

               DataSet objDataSet = new DataSet();
               MySqlCommand command = new MySqlCommand();
               command.Connection = mySQLConnection;
               command.CommandType = CommandType.StoredProcedure;
               command.CommandTimeout = 600;

               command.CommandText = "USP_GetMonthWiseLedger";
               //command.Parameters.AddWithValue("@frmdate", frmdate);
               //command.Parameters.Add("@frmdate", MySqlDbType.String).Value = frmdate;
               //command.Parameters.AddWithValue("@todate", todate);
               //command.Parameters.Add("@todate", MySqlDbType.String).Value = todate;
               //command.Parameters.AddWithValue("@AccNo", accname);
               command.Parameters.Add("@AccNo", MySqlDbType.Int64).Value = accname;
               mySQLConnection.Open();
               MySqlDataAdapter SqlDa = new MySqlDataAdapter(command);
               SqlDa.Fill(objDataSet);
               int count = objDataSet.Tables[0].Rows.Count;
               return objDataSet;
           }
           catch (Exception ex)
           {
               throw (ex);
           }
       }

QuestionRe: Not binding data's in Rdlc Report Pin
CHill6018-Apr-17 4:15
mveCHill6018-Apr-17 4:15 
AnswerRe: Not binding data's in Rdlc Report Pin
Member 1305063918-Apr-17 4:35
Member 1305063918-Apr-17 4:35 
GeneralRe: Not binding data's in Rdlc Report Pin
CHill6018-Apr-17 10:20
mveCHill6018-Apr-17 10:20 
GeneralRe: Not binding data's in Rdlc Report Pin
Member 1305063918-Apr-17 23:46
Member 1305063918-Apr-17 23:46 
GeneralRe: Not binding data's in Rdlc Report Pin
CHill6018-Apr-17 23:48
mveCHill6018-Apr-17 23:48 
AnswerRe: Not binding data's in Rdlc Report Pin
User 418025418-Apr-17 4:19
User 418025418-Apr-17 4:19 
GeneralRe: Not binding data's in Rdlc Report Pin
Member 1305063918-Apr-17 23:52
Member 1305063918-Apr-17 23:52 
Questionwant get the added/updated files in msp(patch) files than msi. Pin
Shashank.Kale15-Apr-17 8:20
Shashank.Kale15-Apr-17 8:20 
AnswerRe: want get the added/updated files in msp(patch) files than msi. Pin
Afzaal Ahmad Zeeshan15-Apr-17 12:10
professionalAfzaal Ahmad Zeeshan15-Apr-17 12:10 
GeneralRe: want get the added/updated files in msp(patch) files than msi. Pin
Shashank.Kale18-Apr-17 23:14
Shashank.Kale18-Apr-17 23:14 
Questioncell phone softwares Pin
Member 1294301113-Apr-17 13:32
Member 1294301113-Apr-17 13:32 
AnswerRe: cell phone softwares Pin
Dave Kreskowiak13-Apr-17 15:44
mveDave Kreskowiak13-Apr-17 15:44 
GeneralRe: cell phone softwares Pin
MadMyche14-Apr-17 1:23
professionalMadMyche14-Apr-17 1:23 
QuestionC# MATLAB integration Pin
Member 1124532613-Apr-17 11:23
Member 1124532613-Apr-17 11:23 
AnswerRe: C# MATLAB integration Pin
Gerry Schmitz14-Apr-17 9:48
mveGerry Schmitz14-Apr-17 9:48 
Questionsession got null value after same time randomly Pin
waghniteen13-Apr-17 3:02
professionalwaghniteen13-Apr-17 3:02 
AnswerRe: session got null value after same time randomly Pin
User 418025413-Apr-17 4:03
User 418025413-Apr-17 4:03 

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.