Thursday, March 27, 2014

Convert DataSet to C# List

You can simply try like this

  public static List<AttendenceManual> PreocessData(DataSet data)  
       List<AttendenceManual> _AttendenceManualList = new List<AttendenceManual>();  
       for (int i = 0; i < data.Tables[0].Rows.Count; i++)  
         AttendenceManual Student = new AttendenceManual();  
         Student.StrEmpID = data.Tables[0].Rows[i]["F2"].ToString();  
       return _AttendenceManualList;  

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