Skip to main content
.NET Framework 4.6.2+
  • The page you are viewing does not exist in the .NET 8.0+ platform documentation. This link will take you to the parent topic of the current section.

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WebReportsController.ExportToMhtAction Property

Gets the PrintReportTo_Mht Action.

Namespace: DevExpress.ExpressApp.ReportsV2.Web

Assembly: DevExpress.ExpressApp.ReportsV2.Web.v24.2.dll

NuGet Package: DevExpress.ExpressApp.ReportsV2.Web

#Declaration

public SimpleAction ExportToMhtAction { get; }

#Property Value

Type Description
SimpleAction

A SimpleAction object that specifies the PrintReportTo_Mht Action.

#Remarks

The PrintReportTo_Mht Action exports the report to an MHT file and initiates file download. This Action is not visible by default. To activate it, set the ReportsAspNetModuleV2.ShowFormatSpecificExportActions property to true. You can also execute this Action instead of WebReportsController.PreviewInReportViewerAction by setting the ReportsAspNetModuleV2.DefaultPreviewFormat property to Mht. These properties can be specified in the Module Designer or in the Application Designer when the ReportsAspNetModuleV2 component is focused.

See Also