Open an SSRS report with graphs in excel RRS feed

  • Question

  • User265788195 posted

    I am trying to open an excel report, it shows me a warning that the file that I am trying top open is in a different format than specified by the file extension...

    This code is not working as I wanted, can you help me with that please...

    public HttpResponseMessage Get([FromUri]StormEventSearchCriteria criteria)

    HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);
    response.Content = new ByteArrayContent(bytes);
    response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/vnd.ms-excel");
    response.Content.Headers.ContentDisposition = new System.Net.Http.Headers.ContentDispositionHeaderValue("attachment");
    response.Content.Headers.ContentDisposition.FileName = "EventReport.xls";

    return response;

    Thursday, November 7, 2013 9:47 AM

All replies

  • User1789048459 posted


    What is the warning info and the error info?

    what do you want? Could tell me more info.


    Tuesday, November 12, 2013 1:44 AM