var json = @"{'employees': [{ 'firstName':'John' , 'lastName':'Doe' }, { 'firstName':'Anna' , 'lastName':'Smith' }, { 'firstName':'Peter' , 'lastName':'Jones' }]}";
XNode node = JsonConvert.DeserializeXNode(json, "Root");
var str = json.ToString();// node.ToString();
StringBuilder sb = new StringBuilder();
sb.AppendLine(str);
Response.ClearContent();
Response.ContentEncoding = Encoding.GetEncoding("Windows-1251");
Response.ContentType = "applicationd/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "attachment; filename=csvfile.csv");
Response.Write(sb.ToString());
Response.Flush();
Response.End();
return View();
в h-файле есть CalcGroupSummariesByDataGroupIndex вот в таком виде
private: // User declarations
void __fastcall TFForma::CalcGroupSummariesByDataGroupIndex(TcxDataSummary *ASender, int ADataGroupIndex);
public: // User declarations
__fastcall TFForma(TComponent* Owner);
};