DevExpress 报表文档添加更大边距

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 报表文档添加更大边距的主要内容,如果未能解决你的问题,请参考以下文章

大边距分类器

DevExpress Winform 通用控件打印方法(允许可自定义边距)

DevExpress Winform 通用控件打印方法(允许可自定义边距) z

如何在文档查看器中添加更多边距?

Devexpress报表开发:创建主从报表

DevExpress XtraReport 报表设计 添加DetailReport