external css doesn't seem to load on published server
-
I use a template where I have:
<head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> </head>
while in my development environment I see the bootstrap stripped tables correctly, when I publish to production, pdf is shown but table (or col-xs- columns) seems not to have been formatted.
I load jsreport as:
var rs = new LocalReporting(). RunInDirectory(directory). Configure(cfg => cfg.AllowLocalFilesAccess().FileSystemStore().BaseUrlAsWorkingDirectory()); if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) rs.UseBinary(jsreport.Binary.JsReportBinary.GetBinary()); else rs.UseBinary(jsreport.Binary.Linux.JsReportBinary.GetBinary()); // var service = rs.AsWebServer().RedirectOutputToConsole().Create(); return await service.StartAsync();
Any help? Thanks
-
Please try to replicate the issue in playground.
https://playground.jsreport.net/