2 ms·
We do a lot of dynamic report gen PDFs and this is something we'd prefer. Right now, we basically emulate this technique w/ HTML->PDF. We build chunks of repor
by bob1029 4y ago
We do a lot of dynamic report gen PDFs and this is something we'd prefer.
Right now, we basically emulate this technique w/ HTML->PDF. We build chunks of report HTML with various string interpolation methods and then compose those to obtain our final HTML output.
Raw, declarative HTML is nice if you don't have an undefined # of things to describe with it. When you are looping and projecting domain types into a report, things get a lot trickier.
- amithegde 4y agoI used https://github.com/Antaris/RazorEngine https://github.com/Antaris/RazorEngine to generate all sorts of complex HTML, email body etc. back in the day. Since it follows razor syntax, loops etc. work well
- bob1029 4y agoWe actually used this exact library at one point, but it fell out of favor for some reason I cannot recall.