nreco | driven framework for ASP.NET business apps | Application Framework library
kandi X-RAY | nreco Summary
kandi X-RAY | nreco Summary
NReco is an ASP.NET application framework that enables lightweight model-driven development and domain-specific modelling for real-life applications. NReco Framework includes:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nreco
nreco Key Features
nreco Examples and Code Snippets
Community Discussions
Trending Discussions on nreco
QUESTION
I've been using the powerful NReco library to create pivot tables. And using the very convenient HTML wrapper extension to turn those tables into HTML. When I use the '' I get the following returned into the HTML.
System.Collections.Generic.List`1[System.Object]
The error seems very straight-forward. The HTML wrapper is probably just calling ToString()
on the collection object rather then joining the list. Is there a way to override the HTML wrappers functionality when it comes to formatting this list.
ANSWER
Answered 2022-Apr-05 at 08:23I assume you mean pivot table writers (like PivotTableHtmlWriter
) from NReco.PivotData.Extensions nuget package.
You're right with your suggestion that by default aggregator's value is simply converted to string with object.ToString()
call. This works good for simple values, however for complex objects (including lists) there are no default representation - this motivates to define your own 'value-formatter' handler and don't rely on any default conventions:
QUESTION
I am getting the exact same error code as this question. I also read the answer to that post but not sure how it'll help in the context of this specific error.
NReco PDF generator works when I omit this line in this html file:
...ANSWER
Answered 2022-Feb-14 at 10:45NReco.PdfGenerator is a .NET wrapper for wkhtmltopdf, and this kind of exception indicates that 'wkhtmltopdf.exe' process is crushed for unknown reason.
This means that you need to check what in wkhtmltopdf causes a crush -- you may do that in the command line, actually. Typical reasons:
- CSS border-radius rules in some specific cases may cause a crush
- if page margins are defined explicitly and it is not enough space for header or footer content this also may cause wkhtmltopdf crush
Unfortunately only way to find a workaround are experiments, however in most cases workaround is possible.
QUESTION
I am using wkhtmltopdf 0.12.5 with NReco (Asp.net core). I have set TOC to true
...ANSWER
Answered 2021-Mar-16 at 12:07This is a known issue in wkhtmltopdf 0.12.5 release: https://github.com/wkhtmltopdf/wkhtmltopdf/issues/3989
It fix that it is enough to upgrade to latest 0.12.6 release (or downgrade to 0.12.4 if this is not possible for some reason).
QUESTION
I am very much beginner in Delphi development. I want to make desktop application that include Sqlite database and browser. The application is mostly based on CRUD operations but when ever user update data into database the change will be displayed on browser on another panel of the application. it also generates printable pdf. The pdf is generated by C# code[NReco Library]. Is I have to use Multi Threading in to my application to make my ui responsive in this case.
...ANSWER
Answered 2020-Nov-24 at 18:47It's probably not necessary, but it is always a good idea to run long running tasks on a separate thread. Delphi makes that really easy so it should be of no concern.
Alternatively, you can use techniques like periodically calling Application.ProcessMessages() to keep your UI responsive.
QUESTION
I'm using NReco PDF generator to create PDFs of some fairly lengthy html tables. Most of the time it works fine, but sometimes it will generate a PDF that's just two blank pages (one blank page where the cover would be, followed by a blank page with the correct header and footer). I don't think anything is wrong with the html itself, since it does successfully generate the full document with the same input other times.
Could this be a timeout issue due to the large number of pages? Per another post I saw, I tried initializing the converter with this optional argument, but it didn't help:
NReco.PdfGenerator.HtmlToPdfConverter pdfConverter = new NReco.PdfGenerator.HtmlToPdfConverter{ CustomWkHtmlPageArgs = " --no-stop-slow-scripts" };
Is there anything else I should adjust, or does anyone know what else could be causing this?
Update: This is primarily happening in Chrome. I have the PDF generating in the browser in a new tab, and I thought it might be a caching issue, so I added a timestamp parameter in the url so it would be unique each time, but that didn't seem to help.
Final Update: adding --javascript-delay 2500 to the CustomWkHtmlPageArgs seems to have fixed the problem, so I think it must have been an issue with the PDF generating before the data was fully loaded.
...ANSWER
Answered 2020-Oct-12 at 22:03adding --javascript-delay 2500 to the CustomWkHtmlPageArgs seems to have fixed the problem, so I think it must have been an issue with the PDF generating before the data was fully loaded.
QUESTION
I am trying to get video details (length, height, width, and content type) from a video based on a URL. By using the nuget package https://www.nuget.org/packages/NReco.VideoInfo.LT I was able to create an Azure Function running locally pointing to my local install of FFProbe rather easily. However, the trick is now making it compatible with an Azure Function and, to the best of my knowledge, the easiest way to do that is by providing a Docker image that contains everything needed (this would be running on a Linux machine).
So, let's get into the code. Previously, this is what I had working if I ran the function locally:
...ANSWER
Answered 2020-Aug-10 at 03:03Since you are new to Docker. Here I will show you something I have known.
You Dockerfile is to create an image with multiple stages:
With multi-stage builds, you use multiple FROM statements in your Dockerfile. Each FROM instruction can use a different base, and each of them begins a new stage of the build. You can selectively copy artifacts from one stage to another, leaving behind everything you don’t want in the final image.
From the description, you need to know all the FROM
except the last one is the build pattern, only the complete the application will be copied to the last base image and run in it. So it is not the overwrite, it's a new running environment. You need to install all the dependencies for your application in the last base image if it does not already have.
QUESTION
We do have a license for NReco for PDF generation. Now we have a requirement for updating the form fields in the PDF dynamically through dot net code, do we have support for this in NReco? if not any free library alternative for PDF form filling as we cant invest again in license? Ours is a .Net based MVC web application. We were using iTextSharp earlier but iTextSharp is EOL, and has been replaced by iText 7. We can't buy the license for iText 7 now.
...ANSWER
Answered 2020-Mar-04 at 13:14NReco.PdfGenerator is just a wrapper for wkhtmltopdf tool; it is only about HTML-to-PDF conversion. Wkhtmltopdf cannot modify existing PDF files at all.
To fill the PDF (and, possibly, then 'flatten' it) you can use iTextSharp 4.1.6 which is licensed under LGPL and can be used for free. It has number of forks that are maintained and .NET Core compatible, for example this one: https://github.com/VahidN/iTextSharp.LGPLv2.Core
QUESTION
While writing a video converter program in c # form, I measure the convert speed with the progress bar. I am actually measuring using certain techniques, but I want to give the user how much CPU he uses with the actual values, that is, the speed of the process.
...ANSWER
Answered 2020-Feb-22 at 07:57First we initialize the the relevant CPU counters that you want to capture, and on ButtonClick
we start to read the performance counter and increment the progress bar. The forloop and progressbar increments may not be relevant in your case but I added it to demonstrate the whole scenario
As per your clarification on comments section, this will update the textbox with the real time information from the performanceCounters
QUESTION
I'm currently investigating the best method to allow clients live playback IP camera where my server is the source that uses RTSP to grab the stream, so at the same time I need to be able to output that live playback to HTML5 standard player "the video tag" and whenever I want, I need to be able to get a snapshot pretty quickly.
I tried using WebRequest to fetch a snapshot but the issue is that it takes around 1 second for the camera to prepare the snapshot.
I tried another solution like in here Extract thumbnail from RTSP but it takes 2 seconds for that image to be ready for my application.
Update 1
I managed to get a single frame by using ffmpeg.exe via the command line interface and passing the args:
"-i rtsp://UN:PW@IP:554/live -vframes 1 -f singlejpeg -"
And then after I start the process, I read the stream into output where it's my image binaries using:
process.StandardOutput.BaseStream.CopyTo(output);
Now my only left problem is that I wanted to keep reading the rtsp and get the binaries in a rate of for example "2 frames per second". Any working code ideas?
...ANSWER
Answered 2020-Jan-21 at 17:40Alright, I think I figured out how to do what I needed to do. First, note down the command args that will work with no issues with ffmpeg:
-rtsp_transport tcp -i rtsp://UN:PW@IP:554/live -err_detect ignore_err -r 10 -f image2pipe -
Next, you have so setup your process this way:
QUESTION
I'm trying to set up NReco HTML to PDF generation and having an issue. It generates the PDF but when I open the PDF with adobe reader, it automatically opens the "Bookmarks" side tab consuming quite a bit of screen real estate (about 1/3 of the window).
This is unnecessary, because the PDF is one page long. From what I can tell, this is because the PDF has a table of contents generated by taking the HTML header elements.
I updated my code to attempt to turn of table of contents generation:
...ANSWER
Answered 2020-Jan-17 at 13:20it automatically opens the "Bookmarks" side tab
this is not a table of contents in fact; in terms of wkhtmltopdf (which is internally used by NReco.PdfGenerator) this is called 'outline' and you can disable its generation by H1-H6 tags in the following way:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nreco
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page