static void Main(string[] args) { string pe; string pa; pe = IntToLetters(128); pa = IntToLettersRec(128); using (var _conn = new cAccesoDatosNet("DB01", "SISTEMAS", "sa", "5380")) { using (var _rs = new StaticRS("select UserCode,Name,Surname1,Surname2,EmailAddress from Users", _conn)) { _rs.Open(); _rs.SaveExcelFile(@"D:\text.xlsx"); } } }