Monday, March 31, 2014

String was not recognized as a valid DateTime.

After spending a lots of time i solve the problem

  string strDate = PreocessDate(data);  
       string[] dateString = strDate.Split('/');  
       DateTime enter_date = Convert.ToDateTime(dateString[1]+"/"+dateString[0]+"/"+dateString[2]);  

C# print file on LAN Printer

If you want to print any file on network printer then you can try with this code block // Change Default Printer System.Ma...