[英]Rotativa locally works fine but it's unable to redirect the view in the server
Rotativa locally works fine but it's unable to redirect to the desired view to print in the server Rotativa 在本地工作正常,但无法重定向到所需的视图以在服务器中打印
Few things to check here:这里需要检查的几件事:
Check similar question/answers here在此处检查类似的问题/答案
https://stackoverflow.com/a/50066692/3559462 https://stackoverflow.com/a/50066692/3559462
https://stackoverflow.com/a/36877635/3559462 https://stackoverflow.com/a/36877635/3559462
https://stackoverflow.com/a/27942678/3559462 https://stackoverflow.com/a/27942678/3559462
(razor to pdf using rotativa or itextsharp): https://qawithexperts.com/article/asp.net/export-html-to-pdf-in-aspnet-mvc-using-itextsharp-or-rotativ/94 (使用 rotativa 或 itextsharp 剃刀到 pdf): https ://qawithexperts.com/article/asp.net/export-html-to-pdf-in-aspnet-mvc-using-itextsharp-or-rotativ/94
I recommend you add "Rotativa" folder in the root of your application and add these files我建议您在应用程序的根目录中添加“Rotativa”文件夹并添加这些文件
help-wkhtmltoimage.txt
help-wkhtmltopdf.txt
msvcp120.dll
msvcp140.dll
msvcr120.dll
vcruntime140.dll
wkhtmltoimage.exe
wkhtmltopdf.exe
wkhtmltox.dll
As suggested here https://stackoverflow.com/a/48711643/3559462正如这里所建议的https://stackoverflow.com/a/48711643/3559462
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.