Skip to main content

Could not load assemby CrystalDecisions.Windows.Forms

Could not load assemby CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304 or one of its dependencies. The system cannot find the file specified. This particular error hunted me for several days. One of our company’s client got this error in software system which we deployed on his newly configured windows system. Everything was working fine previously though.After googling […]

Read More

.NET Show Javascript alert programmatically

.NET Show Javascript alert programmatically 02

.NET Show Javascript alert programmatically or code behind. At times, we require to display a error message or Information message to the users at run time in a alert message. To display Javascript alert message in .net from code behind use the following code : ClientScript.RegisterClientScriptBlock(this.GetType(), “alert”, “<script>alert(‘Your message to display.’);</script>”); in your respective method. […]

Read More

C# Filter DataTable by Date

C# Filter DataSet by Date 01

C# Filter DataTable by Date Several times, situation appears wherein we have already fetched data from database but we need it to filter by date. This post explains how we can filter C# datatable using date. Syntax : DataTable dt = datatableId.Select().Where(p => (Convert.ToDateTime(p[“YourDateColumnName”]) >= Convert.ToDateTime(FilterFromDate)) && (Convert.ToDateTime(p[“YourDateColumnName”]) <= Convert.ToDateTime(FilterToDate))).CopyToDataTable(); So, let’s try it on actual scenario. […]

Read More

C# Filter DataSet by Date

C# Filter DataSet by Date 02

C# Filter DataSet by Date Several times, situation appears wherein we have already fetched data from database but we need it to filter by date. This post explains how we can filter C# dataset using date. Syntax : DataTable dt = datasetId.Tables[0].Select().Where(p => (Convert.ToDateTime(p[“YourDateColumnName”]) >= Convert.ToDateTime(FilterFromDate)) && (Convert.ToDateTime(p[“YourDateColumnName”]) <= Convert.ToDateTime(FilterToDate))).CopyToDataTable(); So, let’s try it on actual […]

Read More

Creating Barcode Image in C#

Creating Barcode Image in C# form3

Creating Barcode Image in C# In this post I’ll be showing code for creating barcode image  in C# using ZXing. About ZXing Libraring : ZXing is widely used code for generating barcode images and scanning barcode value including platforms like Android and iOS too. And it is open source under Apache open source license. Thanks ZXing for […]

Read More

Creating QRCode Image in C#

Creating QRCode Image in C# form2

Creating QRCode Image in C# In this post I’ll be showing code for creating QRCode image  in C# using ZXing. About ZXing Libraring : ZXing is widely used code for generating barcode images and scanning barcode value including platforms like Android and iOS too. And it is open source under Apache open source license. Thanks ZXing for making it available […]

Read More