Friday, December 9, 2016

C# convert a DateTime to an int value




 long dtosDateValue = long.Parse(DateTime.Now.ToString("yyyyMMdd"));  
 long dtosTimeValue = long.Parse(DateTime.Now.ToString("HHmmss"));  
 long dtosDateTimeValue = long.Parse(DateTime.Now.ToString("yyyyMMddHHmmss"));  

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...