Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomSwitches don't work in .netCore 3.1 #69

Open
willpower18 opened this issue Sep 10, 2020 · 0 comments
Open

CustomSwitches don't work in .netCore 3.1 #69

willpower18 opened this issue Sep 10, 2020 · 0 comments

Comments

@willpower18
Copy link

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant