Browse by Tags

Related Posts

  • CSV to TextReader

    /// <summary> /// Take a file path and return a TextReader /// </summary> /// <param name="file_path"></param> /// <returns></returns> private TextReader OpenFile ( string file_path) { try { // Read the CSV file in to a TextReader TextReader _rdr = File .OpenText(file_path...
    Posted to Object reference not set to an instance of an object (Weblog) by funky_rus on 02-19-2008, 12:00 AM
    Filed under: ASP.NET, ASP .NET, C#, Visual Studio, .NET, CSV, System.IO, TextReader
  • Report in formatted Excel file

    #region GenerateExcel private void Generate_Excel_Report() { //update month var to prev month Prev_rMonth = rMonth - 1; Prev_rYear = rYear; if ( Prev_rMonth == 0 ) { Prev_rMonth = 12; Prev_rYear = rYear - 1; } string fileName = System.IO. Path .GetFileNameWithoutExtension(System.IO. Path .GetTempFileName...
    Posted to Object reference not set to an instance of an object (Weblog) by funky_rus on 02-19-2008, 12:00 AM
    Filed under: ASP .NET, C#, Visual Studio, .NET, Report, Excel
Page 1 of 1 (2 items)
Microsoft Communities