Best way to print a tabular data

A couple thoughts (none perfect):

  • Lay out your spreadsheet on a canvas and print it, like described here:
    Simple printing of an image via share

  • Figure out how to generate a PDF using some API on the internet somewhere. This might help: Create a PDF from app . You can feed that PDF into the share block - on iOS printing is an option for a shared PDF. (I’m not sure about Android.) Yes, that block says images, but it’ll take a PDF (at least on iOS). It’ll also take a text file, but at least on my iPhone, there’s no option to print a .txt file shared with the “share image” block.

  • Write some javascript and host it somewhere on the internet. That javascript can take your input data (in a query appended to the URL) and format it nicely into a table. Use the “open link” function to open that page with the javascript in the phone’s native browser, and then your users can print from the browser (not webviewer). (You can probably get the print dialog to open automatically with more javascript.)

3 Likes