Printing reports and tables from an Activity in android - android-print-framework

I have say a listview, populated with the datas, in an activity.Now I want my app to print this listview to a printer, through google cloud print.How can this be done easily.I am using kitkat.I have wasted much time on google but could'nt find solution.Thanks

You can take the data and create a pdf fairly easily. Pdfs can be sent to any pdf reader application using an intent and printed from there. Alternatively you could integrate with the Print framework and print from inside your app. If this is an approach that you are interested in I can provide more details as necessary.

Related

How to create a PDF and open it using Flutter web

I am currently at the end of my application and I want to export all the data I have collected from the user and put it neatly into a PDF that they then can either print or download and send off. I have tried using a couple of PDF dependencies but none seem to be web friendly. Anyone done this before and possibly point me in a good direction?

How to load csv from url and display as listview flutter

I am new to flutter and I found load csv from local and display as listview but I want to load from url and display. How can I do that?
A .csv from a remote source will probably have the content type of text/csv.
You should be able to call the url using a library (https://pub.dev/packages/http is a good choice, although I hear good things about Dio and probably a few others I haven't come across), get the data (e.g. as a http.Response), parse the response into some sort of model and then display it within the list view. Ideally the differences between displaying data from a local and remote source would be minimal - just where the data is coming from. This means you should be able to reuse the code you've written to load the data from a local source.
Without more information its hard to help. There's a good tutorial on building out Flutter apps using the Clean architecture at https://resocoder.com/category/tutorials/flutter/tdd-clean-architecture/. The difference will be that the Response data will be csv rather than JSON, so you'll need to sub in what you've done for the local loading.

UITableView survey app and append data to apple numbers

Ive tried to search up documentation and several tutorials but it seems like there's nothing out there. Maybe this is something simple to do, but I just cannot figure it out.
My goal is to make an application that has a series of questions that you fill in. Some tick boxes and some text fields where you fill in some more info. This survey would be on one VC and you scroll down through the questions. After all this I want to append the data to the apple numbers app on the iPad with a specific structure.
How would I go about this? Any resources you can recommend?
T.I.A
I believe that you should generate and export a .csv file with all the data you collect in the app. Save that file to iCloud Drive or to another cloud solution you can integrate in your app, and then access it and open it using Numbers.

Printing the contents of a Form

I have a form with some comboboxes, a datagrid and an image. My ultimate goal here is: When the user clicks the save button on a menustrip, it will send this data to a printer (preferably to a PDF one) and print the file ready to be mailed to our clients. I tried the code provided by:
http://msdn.microsoft.com/en-us/library/aa287529%28VS.71%29.aspx
But it sent me to OneNote which then showed me an empty file. I also tried Printform and PrintDialog which didn't bring me much luck either. Any suggestions?
edit: I configured it to print to pdf although it now prints only half the form (cuts it in half of width), and if the datagrid is Scrollable it only prints the data that is showing on the screen. Like this:
You cannot print scrolled data using graphics object. even you cannot create your own design using graphics object. Also, you will get some problem in creating PDF and managing multiple pages. So, don't make it more complicated just use reporting library. You have two choices to print form data into pdf file.
Microsoft Reporinting
Crystal Report
But, I would like to prefer to use Crystal Report to Print any document. It is more flexible than Microsoft Reporting. You can export that document into PDF, WORD, EXCEL or Direct to Printer.

Printing GWT Cell Table

As part of a recent project, I have created a Cell Table that holds a few million rows of data. This data can be exported to CSV, filtered, and a few other basic functions. The last bit of functionality that I want to add, is the ability to print out the contents of the Cell Table to a local printer. I've done some research online (Google Groups and all the intro GWT material), but as far as I can tell there is no method to print a widget's contents -- specifically a Cell Table. Does anyone have an idea of how to go about setting something like this up (obviously I expect no code -- a description would be great!)?
There's an idea on how to print GWT widgets in this thread. The author of that post also placed his Print class in a Google Code project.
You can't directly use a printer interface from js code.
http://javascript.about.com/od/events/a/print.htm
Several webs have a button like "print version" which generates an HTML page with plain custom style.
example - http://www.alistapart.com/articles/goingtoprint/
You can also easily generate pdf versions in either client or server. PDF is quite a good way to let user print a document.
more info - https://stackoverflow.com/questions/1523851/gwt-printing-to-pdf