GithubHelp home page GithubHelp logo

Comments (16)

fpanaccia avatar fpanaccia commented on July 24, 2024

Hi!, what version of the tool are you using? i just tested using my example and worked

image

could you upload the project or at least the basic structure?

from wkhtmltopdf.netcore-deprecated.

RedXLion avatar RedXLion commented on July 24, 2024

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.

RedXLion avatar RedXLion commented on July 24, 2024

https://github.com/RedXLion/Test

from wkhtmltopdf.netcore-deprecated.

fpanaccia avatar fpanaccia commented on July 24, 2024

There is no csproj in that repo

from wkhtmltopdf.netcore-deprecated.

RedXLion avatar RedXLion commented on July 24, 2024

Ready

from wkhtmltopdf.netcore-deprecated.

fpanaccia avatar fpanaccia commented on July 24, 2024

can i make some changes and make a pr to your test repo?

from wkhtmltopdf.netcore-deprecated.

RedXLion avatar RedXLion commented on July 24, 2024

sure

from wkhtmltopdf.netcore-deprecated.

fpanaccia avatar fpanaccia commented on July 24, 2024

There, working

image

from wkhtmltopdf.netcore-deprecated.

fpanaccia avatar fpanaccia commented on July 24, 2024

https://github.com/RedXLion/Test/pull/1

from wkhtmltopdf.netcore-deprecated.

RedXLion avatar RedXLion commented on July 24, 2024

Could you please, explain a bit what exactly gone wrong?
Thank you very much!

from wkhtmltopdf.netcore-deprecated.

fpanaccia avatar fpanaccia commented on July 24, 2024

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.

fpanaccia avatar fpanaccia commented on July 24, 2024

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.

RedXLion avatar RedXLion commented on July 24, 2024

Thanks a lot for your time!
Very appreciate that.
Keep you and family in good wells!

from wkhtmltopdf.netcore-deprecated.

fpanaccia avatar fpanaccia commented on July 24, 2024

Your welcome!

from wkhtmltopdf.netcore-deprecated.

RedXLion avatar RedXLion commented on July 24, 2024

from wkhtmltopdf.netcore-deprecated.

gurustron avatar gurustron commented on July 24, 2024

@RedXLion another option would be adding next to the pdf view:

@{
    Layout = null;
} 

from wkhtmltopdf.netcore-deprecated.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.