@if (Session["reporteMovimiento"] != null)
{
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Extrato de Cobrança - Francesinha</h4>
</div>
<div class="collapse in" id="collapseDiv41">
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-body">
@if (Session["producto"] != null)
{
@Html.Action("DocumentViewer1Partial", "CobChequesFran")
}
</div>
</div>
</div>
</div>
</div>
}
@if (Session["reporteMovimiento"] != null)
{
@Html.DevExpress().DocumentViewer(settings =>
{
settings.Name = "DocumentViewer1";
settings.CallbackRouteValues = new { Controller = "CobChequesFran", Action = "DocumentViewer1Partial" };
settings.ExportRouteValues = new { Controller = "CobChequesFran", Action = "DocumentViewer1PartialExport" };
settings.Report = (XtraReport)Model;
settings.ToolbarMode = DocumentViewerToolbarMode.StandardToolbar;
}).GetHtml()
}
Я использую скомпилированные представления и вызываю их из основного проекта