Mime Type for MHT Export

pinbotpinbot Texas
edited 9:00AM in FastReport .NET
I'm trying to export to a memory stream and then display in the browser as an MHT export.

I can do PDF exports with no problem.

What is the mime type/content disposition for MHT files?

TIA,

Bryan

Comments

  • pinbotpinbot Texas
    edited 9:00AM

    Also, I can do HTML export just fine too but the pictures don't show up so I was trying as a MHT export to embed the pictures in the page.
  • edited 9:00AM
    It is exported in web mode as "application/mht".
  • pinbotpinbot Texas
    edited 9:00AM

    I found that if I do:

    Response.ContentType = "multipart/related; type=\"text/html\";";
    Response.AddHeader("Content-Disposition", "inline;filename=propinfo.mht");


    It works VERY well.

    Thanks.



Leave a Comment