Comments (16)
Hi!, what version of the tool are you using? i just tested using my example and worked
could you upload the project or at least the basic structure?
from wkhtmltopdf.netcore-deprecated.
Thank you for the quick response!
That's the thing. Your example is working! But when I try to add it to the new project as is ,I receive the error. I use files from the example.
from wkhtmltopdf.netcore-deprecated.
https://github.com/RedXLion/Test
from wkhtmltopdf.netcore-deprecated.
There is no csproj in that repo
from wkhtmltopdf.netcore-deprecated.
Ready
from wkhtmltopdf.netcore-deprecated.
can i make some changes and make a pr to your test repo?
from wkhtmltopdf.netcore-deprecated.
sure
from wkhtmltopdf.netcore-deprecated.
There, working
from wkhtmltopdf.netcore-deprecated.
https://github.com/RedXLion/Test/pull/1
from wkhtmltopdf.netcore-deprecated.
Could you please, explain a bit what exactly gone wrong?
Thank you very much!
from wkhtmltopdf.netcore-deprecated.
The problem was with AddControllersWithViews, in your project, you didnt have any views, also the tool of wkthmltopdf was missing
So, in another words, i have added the binary of wkthmltopdf, added the view and fixed up a little bit the startup.cs
from wkhtmltopdf.netcore-deprecated.
If you replace in the PR, these lines
services.AddWkhtmltopdf(); services.AddControllers();
with these lines
services.AddWkhtmltopdf(); services.AddControllersWithViews();
Now it will work too because there is a view in the project.
from wkhtmltopdf.netcore-deprecated.
Thanks a lot for your time!
Very appreciate that.
Keep you and family in good wells!
from wkhtmltopdf.netcore-deprecated.
Your welcome!
from wkhtmltopdf.netcore-deprecated.
from wkhtmltopdf.netcore-deprecated.
@RedXLion another option would be adding next to the pdf view:
@{
Layout = null;
}
from wkhtmltopdf.netcore-deprecated.
Related Issues (20)
- Failure on .NET 5.0 HOT 18
- Issue when trying to access wkhtmltopdf.exe HOT 1
- GetPdfViewInHtml generate "Razor.RuntimeCompilation.CompilationFailedException" error CS1061 on Centos 8 HOT 1
- Error running under Linux HOT 4
- Injecting dependencies using scope HOT 2
- Error in Linux HOT 2
- Redirect stdin/stdou on linux container
- Missing information on Context in Razor
- Background Image DPI
- header-html using MVC view is not working HOT 1
- 'InvalidOperationException' error when using services.Add Wkhtmltopdf() in ASP.NET Razor project HOT 1
- Not loading Css/Js from my Razor view HOT 1
- Using header with string HTML HOT 1
- ALM Character Shows Near Minus Numbers In Arabic language
- .NET 6 HOT 3
- Footer issue and documentation on using 'default params' HOT 1
- File not found exception on Linux
- Error on run Docker HOT 2
- .NET 6 Docker error on GetPDF() HOT 2
- Font issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wkhtmltopdf.netcore-deprecated.