Got printing support added to for reports in Typica 2. I hate the way I did it and will probably replace that eventually, but the way I did it gets me something that works for very little effort and honestly I'd rather work on stuff that makes printing less needed in the first place so further work on that is unlikely to be highly prioritized.

Follow

The approach here is to add a toHtml() to my report elements and when you print the report the report can go down the list of its elements to generate a web page, send it off to a web view with a convenience print() method, and I just use that. My main objection is that bringing in Chromium just for printing seems wasteful, but it does save me writing a lot of code that I'd rather not write today.

· · Web · 1 · 0 · 0

On the plus side, this does let me get HTML export on reports basically for free, so I might add that in. Same approach will also work for CSV export, which I think would be useful.

Sign in to participate in the conversation
Typica Social

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!