Rachel Ostrander Rachel Ostrander - 1 year ago 264
CSS Question

Rotativa ignoring Boostrap CSS when published to the server

Rotativa correctly shows and renders a PDF with my Bootstrap when hosted locally, but not once it is posted to the server. The rendered PDF shows some CSS, but no Bootstrap. I have seen other posts about this, but the suggestions did not work. The Rotativa folder is in the root of the web app as suggested.

Answer Source

I had the same issue, and solved it by changing it to something like:

<link href="@Server.MapPath("~/Content/bootstrap.min.css")" rel="stylesheet" />
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download