首页 > 代码库 > DevExpress 报表文档添加更大边距

DevExpress 报表文档添加更大边距

@Html.DevExpress().DocumentViewer(settings =>{
// The following settings are required for a Report Viewer.
settings.Name = "documentViewer1";
settings.Report = (Misteryshopper.Reports.ResumenProyecto)ViewData["Report"];
// Callback and export route values specify corresponding controllers and their actions.
// These settings are required as well.    

settings.CallbackRouteValues = new { Controller = "Report", Action = "ProyectDocumentViewerPartial" };
settings.ExportRouteValues = new { Controller = "Report", Action = "ProyectExportDocumentViewer", ReportName = ReportName };
// Parameters

settings.SettingsReportViewer.EnableRequestParameters = false;
settings.SettingsSplitter.SidePaneVisible = false; 

// YOU HAVE TO ADD THIS LINE ...... 
    settings.SettingsReportViewer.EnableMargins = true; 

    }).GetHtml()

 

DevExpress 报表文档添加更大边距