Rotativa.AspNetCore icon indicating copy to clipboard operation
Rotativa.AspNetCore copied to clipboard

CustomSwitches don't work in .netCore 3.1

Open willpower18 opened this issue 5 years ago • 0 comments

I use the rotativa .net Core 1.2.0 Beta Version in .NetCore 3.1 application, and te Custom Switches parameter not work. It Crashes with 500 Error.

I have the code:

string footer = "--footer-right [page]";

            var rel = new ViewAsPdf("Print")
            {
                PageOrientation = Rotativa.AspNetCore.Options.Orientation.Portrait,
                PageSize = Rotativa.AspNetCore.Options.Size.A4,
                PageMargins = { Left = 10, Right = 10 },
                Model = model,
                CustomSwitches = footer,
            };
            return View(rel);

willpower18 avatar Sep 10 '20 01:09 willpower18