We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using this C# converter from html to pdf.
In the .csproj I have:
<ItemGroup> <PackageReference Include="Codaxy.WkHtmlToPdf" Version="0.5.8" /> </ItemGroup>
I want to use in the controller something like:
PdfConvert.ConvertHtmlToPdf(new PdfDocument { Url = "http://wkhtmltopdf.org/", HeaderLeft = "[title]", HeaderRight = "[date] [time]", FooterCenter = "Page [page] of [topage]" }, new PdfOutput { OutputFilePath = "wkhtmltopdf-page.pdf" });
(this is the same code as in GitHub).
However, when I do (in the same controller):
using Codaxy.WkHtmlToPdf;
the project doesn't build (and shows error in the VS editor...). The error presented is:
Error CS0246 The type or namespace name 'Codaxy' could not be found (are you missing a using directive or an assembly reference?)
The GitHub page of the project lacks directions on using using directive....
Could you help me? I am using VS2019 and .Net Core 2.1
The text was updated successfully, but these errors were encountered:
Maybe Nuget installation failed. You can always manually copy this file into your project - https://github.com/codaxy/wkhtmltopdf/blob/master/NuGet/Codaxy.WkHtmlToPdf/content/PdfConvert.cs
Sorry, something went wrong.
No branches or pull requests
I am using this C# converter from html to pdf.
In the .csproj I have:
<ItemGroup>
<PackageReference Include="Codaxy.WkHtmlToPdf" Version="0.5.8" />
</ItemGroup>
I want to use in the controller something like:
(this is the same code as in GitHub).
However, when I do (in the same controller):
using Codaxy.WkHtmlToPdf;
the project doesn't build (and shows error in the VS editor...). The error presented is:
Error CS0246 The type or namespace name 'Codaxy' could not be found (are you missing a using directive or an assembly reference?)
The GitHub page of the project lacks directions on using using directive....
Could you help me?
I am using VS2019 and .Net Core 2.1
The text was updated successfully, but these errors were encountered: