Guest User

Untitled

a guest
Jan 22nd, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. string customSwitches = string.Format(" --header-html {0} --footer-html {1} ",
  2.  
  3. Url.Action("PDFHeader", "PDF", new { vinum = VINUM, YEAR="2018" }, "https") ,
  4.  
  5. Url.Action("PDFFooter", "PDF", new { }, "https"));
  6.  
  7. return new ViewAsPdf(res)
  8. {
  9. PageSize = Size.A4,
  10. PageOrientation = Orientation.Portrait,
  11. CustomSwitches = customSwitches ,
  12. PageMargins = { Left = 20, Bottom = 20, Right = 20, Top = 20 }
  13.  
  14. };
Add Comment
Please, Sign In to add comment