rotativa

Rotativa pdf does not work on server

限于喜欢 提交于 2021-02-20 05:13:47
问题 I am using Rotativa to generate a pdf of my view. on my local computer this works. On my online server, it says cannot locate file or directory. It is probably a permission problem. Any idea how to fix it? Thanx in advance 回答1: Rotativa uses wkhtmltopdf at its' core, which starting from >0.12.0.0 relies on distributable VC++ lib (msvcp120.dll) You may need to download the installer from here rather than just copy dll over to the server http://wkhtmltopdf.org/downloads.html Simple test if

Rotativa pdf does not work on server

谁说我不能喝 提交于 2021-02-20 05:13:16
问题 I am using Rotativa to generate a pdf of my view. on my local computer this works. On my online server, it says cannot locate file or directory. It is probably a permission problem. Any idea how to fix it? Thanx in advance 回答1: Rotativa uses wkhtmltopdf at its' core, which starting from >0.12.0.0 relies on distributable VC++ lib (msvcp120.dll) You may need to download the installer from here rather than just copy dll over to the server http://wkhtmltopdf.org/downloads.html Simple test if

Rotativa pdf does not work on server

China☆狼群 提交于 2021-02-20 05:10:34
问题 I am using Rotativa to generate a pdf of my view. on my local computer this works. On my online server, it says cannot locate file or directory. It is probably a permission problem. Any idea how to fix it? Thanx in advance 回答1: Rotativa uses wkhtmltopdf at its' core, which starting from >0.12.0.0 relies on distributable VC++ lib (msvcp120.dll) You may need to download the installer from here rather than just copy dll over to the server http://wkhtmltopdf.org/downloads.html Simple test if

Rotativa - ViewAspdf does not work on server

六眼飞鱼酱① 提交于 2021-02-07 13:23:37
问题 I know that this topic has been discuss on several articles, but none of the solution help me. I have this action: public ActionResult DownloadViewPDF(string userId) { var model = db.MyCvs.FirstOrDefault(u => u.UserId == userId); if (model != null) return new Rotativa.ViewAsPdf("ViewUserCv", model) { FileName = model.FirstName + model.LastName + "_CV.pdf" }; return Content("there is no Cv to download"); } Using the above action I am downloading a view as pdf, and everything is working as

Rotativa / Wkhtmltopdf images not displaying

谁都会走 提交于 2021-02-07 02:33:28
问题 I am currently creating an MVC 4 web application. I have an action that has a base background image which is always the same then an arrow image which changes in degrees depending on the information that is collected within the action. I call this action using <img src="@Url.Action("trend-image", "NonReg_Reports")" alt="background" width="245" height="105" /> This works fine when it is called and is just displaying a HTML webpage. It gives me the HTML. <img src="/nonreg-report/01495344/trend

Rotativa / Wkhtmltopdf images not displaying

旧城冷巷雨未停 提交于 2021-02-07 02:33:02
问题 I am currently creating an MVC 4 web application. I have an action that has a base background image which is always the same then an arrow image which changes in degrees depending on the information that is collected within the action. I call this action using <img src="@Url.Action("trend-image", "NonReg_Reports")" alt="background" width="245" height="105" /> This works fine when it is called and is just displaying a HTML webpage. It gives me the HTML. <img src="/nonreg-report/01495344/trend

Rotativa / Wkhtmltopdf images not displaying

左心房为你撑大大i 提交于 2021-02-07 02:31:59
问题 I am currently creating an MVC 4 web application. I have an action that has a base background image which is always the same then an arrow image which changes in degrees depending on the information that is collected within the action. I call this action using <img src="@Url.Action("trend-image", "NonReg_Reports")" alt="background" width="245" height="105" /> This works fine when it is called and is just displaying a HTML webpage. It gives me the HTML. <img src="/nonreg-report/01495344/trend

Rotativa / Wkhtmltopdf images not displaying

只谈情不闲聊 提交于 2021-02-07 02:31:30
问题 I am currently creating an MVC 4 web application. I have an action that has a base background image which is always the same then an arrow image which changes in degrees depending on the information that is collected within the action. I call this action using <img src="@Url.Action("trend-image", "NonReg_Reports")" alt="background" width="245" height="105" /> This works fine when it is called and is just displaying a HTML webpage. It gives me the HTML. <img src="/nonreg-report/01495344/trend

Send Generated Pdf as Email Attachment Asp.NetCore

孤者浪人 提交于 2021-01-28 22:07:06
问题 I am using Rotativa to convert my view to pdf. I would like to send that generated pdf as an email attachment (without having to download it first to disk). I've been following a bunch of tutorials to do this but I just keep going round in circles. I would much appreciate any help I can get. public async Task<IActionResult>SomeReport() { ... return new ViewAsPdf (report) } return view(); MemoryStream memoryStream = new MemoryStream(); MimeMessage msg = new MimeMessage(); MailboxAddress from =

Send Generated Pdf as Email Attachment Asp.NetCore

天大地大妈咪最大 提交于 2021-01-28 22:06:35
问题 I am using Rotativa to convert my view to pdf. I would like to send that generated pdf as an email attachment (without having to download it first to disk). I've been following a bunch of tutorials to do this but I just keep going round in circles. I would much appreciate any help I can get. public async Task<IActionResult>SomeReport() { ... return new ViewAsPdf (report) } return view(); MemoryStream memoryStream = new MemoryStream(); MimeMessage msg = new MimeMessage(); MailboxAddress from =