Thank you all for watching and for your support. ►► If you want to master Web API development using best practices, check out our Web API book: bit.ly/3x75ZMM ►► Also, to build great full-stack apps with Blazor, check out our course: bit.ly/3Pw3Y33
Hello Yan. If you refer to DinkToPdf - it is not our product it is an open source. But we shall see, as soon as we find some free time, to create MVC content.
Hi, please can you tell me, if this need a special configuration for run in docker? i understand that docker run in linux but dont know if this library would serve me, thanks for your time
Thank you so much for such a nice tutorial. I successfully converted static html pages to pdf after learning from you. But I failed when I tried to convert dynamically created html page generated by angularJS programming.
Hello. I believe it depends in which format this dynamic page was returned from Angular application. And the way it is formatted. Basically, as you could see, any HTML string, should be converted into PDF doc without any problem.
nice channel continue . we need make report like using in crystal report of rdlc report but crystal report and rdlc report not supported in asp.net core we need alternative way and its better if you using asp.net core project with angular for making this report beacuse there is no strong video explain this in you tube thanks for nice channel
At the top of the aritcle, you will find a link to our source code, that leads here: github.com/CodeMazeBlog/create-pdf-with-netcore. There, you can find the nativa library folder. Inside you will find those files.
Very Nice video.......everything working good but not able to convert into pdf with logo or image,, can you please explain how we can do that too. thank you again.
Hello VIshnu Raj. Please visit our article on the same topic and search in the comments, you will find explanation for this for sure, since we had that kind of question. Basically, you can just add the image address to the html markup: var picAddress = Path.Combine(Directory.GetCurrentDirectory(), "Images", "CodeMaze.png"); sb.AppendFormat(@"", picAddress);
@@CodeMaze one more question.is it safe to use dinktopdf in real projects....i mean it is totally free of cost....and when we use it ,we need to load assemblies manually....this is not the right i think...what you think about that....please reply
Hi Henry. Yes you can. Please visit the comment sections of our article on this topic, we have explained to one of our readers how to do that. You have the link to the article in the description or I can leave it here: code-maze.com/create-pdf-dotnetcore/ :)
Hello, I am getting this error upon deployment to production : HTTP Error 500.31 - ANCM Failed to Find Native Dependencies I have added the LoadUnmanagedLibrary in the startup.cs but still doesn't work
Hello Ishan. Well for some reason it isn't able to find the native library as much as I could see. But I am not sure why. Maybe you can look at our article and try to search through the comment section. People have tried deployment on different servers.
hi i got an error : AggregateException: One or more errors occurred. (An attempt was made to load a program with an incorrect format. (0x8007000B)) DinkToPdf.SynchronizedConverter.Invoke(Func delegate) BadImageFormatException: An attempt was made to load a program with an incorrect format. (0x8007000B) DinkToPdf.WkHtmlToXBindings.wkhtmltopdf_init(int useGraphics)
Please download our source code and compare it with yours. I am really not sure what is the reason for your error. I saw on GitHub forum that they suggest using the 32bit files, but I am not sure why is that, maybe this can help.
Hello, i'm getting this error: "DllNotFoundException: Unable to load DLL 'libwkhtmltox' or one of its dependencies: The specified module could not be found. (0x8007007E)" Can you help me
Well, if you create a functionality for your action to download the pdf once it is created, than the link to the action is the download link. Your action is creating the PDF and then you can create different results, as you could've seen in the video. It all depends on what you want to do.
I am not really sure why this happens. I just look at the comments on our article, and one reader had the same issue, but he never reported back whether he solved it or not.
I saw you left the comment on our article. Maybe providing there the description of the error may help someone to help you. I didn't deploy this on Azure, so I can't be of any help regarding that matter.
Thank you all for watching and for your support.
►► If you want to master Web API development using best practices, check out our Web API book: bit.ly/3x75ZMM
►► Also, to build great full-stack apps with Blazor, check out our course: bit.ly/3Pw3Y33
I am big fan of code maze. Code maze articles & videos has solved my critical real project problems. Thanks a lot to the Code Maze!!!
Great to hear! Thanks for the support
I am always fan of codemaze. The way the explanation goes is to the point.
Thanks a lot Shaik for the support.
I used this tutorial to generate a pdf in my ASP.NET Core MVC project and it worked fine, But I was wondering if it's applicable on deployment, too.
You can read our article about this topic. We've shown how to publish it, and many readers have used it in a publish environemnt.
Sir how did You do it?
very nice explain ! how to bind data from sql server database to pdf? using dotnet core web api only and not using mvc
Sir i love you in somany ways rn
:) :)
Dear Can I put a static header image for all pages?
For .net core 8 what will be the service registration?
builder.services. ???
Yes. In the Program class you have the builder variable exposed and you can use it to access the service collection property.
can you made a video about MVC or razor page using your product???
Hello Yan. If you refer to DinkToPdf - it is not our product it is an open source. But we shall see, as soon as we find some free time, to create MVC content.
Hi, please can you tell me, if this need a special configuration for run in docker? i understand that docker run in linux but dont know if this library would serve me, thanks for your time
Hi Michael. I really don't know. Never used it with docker.
Awesome video, thank you
Thank you for watching it. Have a great day.
Cool video man congrats
Thanks! I'm glad you enjoyed it.
Thank you so much for such a nice tutorial. I successfully converted static html pages to pdf after learning from you. But I failed when I tried to convert dynamically created html page generated by angularJS programming.
Hello. I believe it depends in which format this dynamic page was returned from Angular application. And the way it is formatted. Basically, as you could see, any HTML string, should be converted into PDF doc without any problem.
Thanks, very helpful.
Thanks, Pouria, much appreciated!
how to add logo/image in header?
nice channel continue .
we need make report like using in crystal report of rdlc report
but crystal report and rdlc report not supported in asp.net core
we need alternative way and its better if you using asp.net core project with angular for making this report
beacuse there is no strong video explain this in you tube
thanks for nice channel
Hello Gehad. To be honest I know nothing about these report types, so I am sorry but I can't help you with that.
How I show
amazing tutorial
Glad you liked it. Best regards.
Thank you so much
You're most welcome
Love it. Thank you.
You are so welcome!
thank you bro
You are very welcome.
It doesn't render my image and show block while using it
Where we can find native library and DLL files after installing package?
Getting null reference exception in _converter.convert(pdf); line
Please visit our linked article on this topic. There you will find a link to source code where you can find those files.
I cannot find DLL files
At the top of the aritcle, you will find a link to our source code, that leads here: github.com/CodeMazeBlog/create-pdf-with-netcore. There, you can find the nativa library folder. Inside you will find those files.
Very Nice video.......everything working good but not able to convert into pdf with logo or image,, can you please explain how we can do that too. thank you again.
Hello VIshnu Raj. Please visit our article on the same topic and search in the comments, you will find explanation for this for sure, since we had that kind of question.
Basically, you can just add the image address to the html markup:
var picAddress = Path.Combine(Directory.GetCurrentDirectory(), "Images", "CodeMaze.png");
sb.AppendFormat(@"", picAddress);
@@CodeMaze thanks you very for your reply.but i have already solved that issue with the help of your article....thanks again...
@@CodeMaze one more question.is it safe to use dinktopdf in real projects....i mean it is totally free of cost....and when we use it ,we need to load assemblies manually....this is not the right i think...what you think about that....please reply
I don't see the problem in that as long as it is working. You are using Assembly to load the required dll file since dinktopdf is just a wrapper.
can you insert images inside the html?
Hi Henry. Yes you can. Please visit the comment sections of our article on this topic, we have explained to one of our readers how to do that. You have the link to the article in the description or I can leave it here: code-maze.com/create-pdf-dotnetcore/ :)
Excelente
Thanks a lot Camilo.
Hello, I am getting this error upon deployment to production :
HTTP Error 500.31 - ANCM Failed to Find Native Dependencies
I have added the LoadUnmanagedLibrary in the startup.cs but still doesn't work
Hello Ishan. Well for some reason it isn't able to find the native library as much as I could see. But I am not sure why. Maybe you can look at our article and try to search through the comment section. People have tried deployment on different servers.
Hello Ishan,
Are you able to solve this ?
great!
Thank you.
hi i got an error :
AggregateException: One or more errors occurred. (An attempt was made to load a program with an incorrect format. (0x8007000B))
DinkToPdf.SynchronizedConverter.Invoke(Func delegate)
BadImageFormatException: An attempt was made to load a program with an incorrect format. (0x8007000B)
DinkToPdf.WkHtmlToXBindings.wkhtmltopdf_init(int useGraphics)
Please download our source code and compare it with yours. I am really not sure what is the reason for your error. I saw on GitHub forum that they suggest using the 32bit files, but I am not sure why is that, maybe this can help.
Hi I got the same problem as this have you solved this issue?
Hello, i'm getting this error: "DllNotFoundException: Unable to load DLL 'libwkhtmltox' or one of its dependencies: The specified module could not be found. (0x8007007E)" Can you help me
same problem I got
Is this works on Linux server
I didn't deploy it on Linux, but if you visit our article, you will find a lot of comments that people did it. So, I believe it should work.
how its retuen a dwnload link
Well, if you create a functionality for your action to download the pdf once it is created, than the link to the action is the download link. Your action is creating the PDF and then you can create different results, as you could've seen in the video. It all depends on what you want to do.
Hello my friend I am facing this problem i downloaded the file from google but it is not working unable to load dll 'libwkhtmltox'
Don't use the IIS profile to start the app. I think this will solve it.
Please, can you help me? "Qt: Could not initialize OLE (error 80070005)" when i call the api
I am not really sure why this happens. I just look at the comments on our article, and one reader had the same issue, but he never reported back whether he solved it or not.
@@CodeMaze I have already solved, but i need run the application in internet information service, is possible? :(
@@CodeMaze I have copied the dll files in publish folder, but when I run the application by the IIS manager, not works and no mistake :(
I am trying to deploy on linux server on Azure, But after deployment its showing Application Error. can anyone help?
I saw you left the comment on our article. Maybe providing there the description of the error may help someone to help you. I didn't deploy this on Azure, so I can't be of any help regarding that matter.
(y)
Yes!
Amazing, thank you very much.
Our pleasure! Glad you like it.
Excelente
Thanks!