【发布时间】:2016-11-01 12:36:58
【问题描述】:
它返回没有任何内容的空pdf
string customSwitches = string.Format( "--header-right \"text\" --footer- html {0}",
Url.Action("Footer", "Competition", new { area = "" }, "http"));
return new ActionAsPdf("Pdf", new { compId = compId, personId = personId })
{
//FileName = "Report.pdf",
CustomSwitches = customSwitches
};
查看
<div style="text-align:center;font-size:11px;border-top:2px solid black;height:20%;padding-bottom:300px">
<img style="width:12px" src="~/images/e_lg.jpg" />
</div>
【问题讨论】:
-
你有一个名为“Pdf”的动作吗?如果是,它返回什么?