System.InvalidCastException: Conversion from string "" to type 'Integer' is not valid. ---> System.FormatException: Input string was not in a correct format. at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) --- End of inner exception stack trace --- at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) at phy_fin_reptemp1.GenerateFile(StreamWriter wr, String filenm, String report, String state_code, String state_name, String yr1) in E:\nrega\netnrega\App_Code\vb\Citizen_Html\phy_fin_reptemp1.vb:line 33