Es gibt leere pdf ohne Inhaltrotativa Fußzeile Bild funktioniert nicht
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
};
Ansicht
<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>
hast du eine Aktion namens "Pdf"? Wenn ja, was bringt es zurück? – meJustAndrew