(#5) C# Printings using Printing Controls In Urdu - Load Data From MS Access Database August 11, 2016 Get link Facebook X Pinterest Email Other Apps Comments Raza19 August 2016 at 07:00Sir when adding resources And i select My access data base then Its show some error "Some file could contain malicious content"... Choose a database Model Dialog And DataBase Objects dialog not appearedReplyDeleteRepliesAdmin19 August 2016 at 15:48Can't help this from here. Search google to find solution.DeleteRepliesReplyReplyRaza20 August 2016 at 04:28private void Form1_Load(object sender, EventArgs e) { OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\ACS\Documents\RetailDataBase.accdb"); conn.Open(); OleDbCommand objCommand = new OleDbCommand("SELECT Products.[ProductName] FROM Products;", conn); //objCommand.CommandText = "Select ProdcutName from Products"; OleDbDataReader objReader; objReader = objCommand.ExecuteReader(); while (objReader.Read()) { //MessageBox.Show(objReader["ProductName"].ToString()); itemcomboBox.Items.Add(objReader["ProductName"].ToString()); } objReader.Close(); conn.Close(); }ReplyDeleteRepliesReplyRaza20 August 2016 at 04:30Sir G,Because Of that error I Use This method So is it OK.. ReplyDeleteRepliesAdmin20 August 2016 at 06:24seems goodDeleteRepliesReplyReplyUnknown14 October 2016 at 11:59oledbexception was unhandled I facing This ProblumReplyDeleteRepliesReplyUnknown31 January 2017 at 01:53Hello Sir, when i try to add access database , I get error the configuration is not declared help me please,ReplyDeleteRepliesAdmin1 February 2017 at 04:27Instead of adding to Resources, just change the connection string and give location. You don't need to add it Resources.DeleteRepliesReplyReplyUnknown31 January 2017 at 01:56hello Sir can we those tuto in english?ReplyDeleteRepliesAdmin1 February 2017 at 04:28I will create English version soon.DeleteRepliesReplyUnknown1 February 2017 at 23:09THANKS Sir.HOW CAN DO TO CONVERT THE VALUE IN LETTER.FOR EXAMPLE 45.280 TO FORTHY FIVE THOUSAND TWO HUNDRED EIGHTYDeleteRepliesReplyReplyAdd commentLoad more... Post a Comment
Sir when adding resources And i select My access data base then Its show some error "Some file could contain malicious content"... Choose a database Model Dialog And DataBase Objects dialog not appeared
ReplyDeleteCan't help this from here. Search google to find solution.
Deleteprivate void Form1_Load(object sender, EventArgs e)
ReplyDelete{
OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\ACS\Documents\RetailDataBase.accdb");
conn.Open();
OleDbCommand objCommand = new OleDbCommand("SELECT Products.[ProductName] FROM Products;", conn);
//objCommand.CommandText = "Select ProdcutName from Products";
OleDbDataReader objReader;
objReader = objCommand.ExecuteReader();
while (objReader.Read())
{
//MessageBox.Show(objReader["ProductName"].ToString());
itemcomboBox.Items.Add(objReader["ProductName"].ToString());
}
objReader.Close();
conn.Close();
}
Sir G,Because Of that error I Use This method So is it OK..
ReplyDeleteseems good
Deleteoledbexception was unhandled I facing This Problum
ReplyDeleteHello Sir, when i try to add access database , I get error the configuration is not declared
ReplyDeletehelp me please,
Instead of adding to Resources, just change the connection string and give location. You don't need to add it Resources.
Deletehello Sir can we those tuto in english?
ReplyDeleteI will create English version soon.
DeleteTHANKS Sir.
DeleteHOW CAN DO TO CONVERT THE VALUE IN LETTER.
FOR EXAMPLE 45.280 TO FORTHY FIVE THOUSAND TWO HUNDRED EIGHTY