2016-11-01 7 views
0

動作しません。それはあなたのビューでこれを置くために持っているすべてのコンテンツRotativaフッターの画像が

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> 
+0

あなたは持っています"Pdf"と呼ばれるアクション?はいの場合、それは何を返すのですか? – meJustAndrew

答えて

0

ない空のPDFを返します。

src="@Server.MapPath("~/images/e_lg.jpg")" 
+1

少し説明が助けになる –

+0

ok ...?そしていま? – Danilo

関連する問題