Poll: Printing on Android

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

We need to be able to print on Android from LC

Poll ended at Sat Dec 21, 2019 10:58 pm

Yes
5
100%
No
0
No votes
 
Total votes: 5

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Poll: Printing on Android

Post by sphere » Mon Dec 16, 2019 10:58 pm

I really would like the option to be able to print on Android, or use a printing app like the ones for Canon or HP or thelike.
Printing possibilities are there for years on Android, but not from lc. The feature request is confirmed. Maybe it's worked on, i don't know.
Now printing to PDF is available, maybe the next step is this.
See but report: https://quality.livecode.com/show_bug.cgi?id=11582

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10081
Joined: Fri Feb 19, 2010 10:17 am

Re: Poll: Printing on Android

Post by richmond62 » Tue Dec 17, 2019 3:10 pm

I would expect a programming language to be able to send data for printing
to any printer the operating system the programming language was working on top
of was set up to print from.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Poll: Printing on Android

Post by FourthWorld » Tue Dec 17, 2019 3:42 pm

richmond62 wrote:
Tue Dec 17, 2019 3:10 pm
I would expect a programming language to be able to send data for printing
to any printer the operating system the programming language was working on top
of was set up to print from.
Once upon a time I would have been quick to agree.

I recognize printing to paper is important to some, but the question has prompted me to consider how often I do it myself.

Over a decade of smart phone use I've never printed from it, nor known anyone who did.

In fact, even on my desktop machines I print maybe three documents a year, if even that. In the course of running my business most of the people I exchange documents with prefer them as PDF or in an editable format.

On phones I would agree that printing to PDF is important, and that seems to be supported.

I haven't come across stats on mobile paper printing usage, so I have to admit that my observations may not reflect larger trends. Perhaps it's really common and everyone I know has anomalous usage habits.

And of course, if an app truly needs it, it needs it.

But whether printing to paper from a phone is something that should be in the core engine or an add-on is something I can't answer without more data.

It might be niche enough to make a perfect case for an add-on, so those who need it have it without adding even more size to the engine for apps that don't.

I honestly don't know, but if I find good usage data on this I'll share it here.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: Poll: Printing on Android

Post by sphere » Tue Dec 17, 2019 5:29 pm

Well an add on or lcb would also be good. Some restaurant's use apps from which directly can be printed, like an order form for the kitchen or the bill or whatever. Correct me if I'm wrong, but i was convinced it is there for iOs, so why not for Android. Maybe some enhancements which can be used when using Android Studio, might be accessible when using lcb? Or added manifest? Just guessing.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10081
Joined: Fri Feb 19, 2010 10:17 am

Re: Poll: Printing on Android

Post by richmond62 » Tue Dec 17, 2019 7:38 pm

The fact, FourthWorld, that you only print out something onto paper 3 times a year,
while being interesting, is not really relevant.

What would be relevant is some sort of statistics as to what proportion of people print out stuff on
paper and to what extent.

As a teacher I print an awful lot; admittedly only from desktop computers.

I have found that a lot of kids at my school use Office suites on their tablets to do written exercises for me:
while they send them to me over the internet, they tend to print out each version and keep them in a file for reference.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Poll: Printing on Android

Post by FourthWorld » Tue Dec 17, 2019 7:50 pm

richmond62 wrote:
Tue Dec 17, 2019 7:38 pm
The fact, FourthWorld, that you only print out something onto paper 3 times a year,
while being interesting, is not really relevant.

What would be relevant is some sort of statistics as to what proportion of people print out stuff on
paper and to what extent.
That's pretty much what I wrote.
As a teacher I print an awful lot; admittedly only from desktop computers.
Exactly.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

keliko
Posts: 93
Joined: Thu Aug 01, 2019 8:15 am

Re: Poll: Printing on Android

Post by keliko » Wed Dec 18, 2019 10:18 am

i need this feature :D

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Poll: Printing on Android

Post by Klaus » Wed Dec 18, 2019 10:24 am

OK, I do not develop for mobile, but I'd rather like to see everything related to LOCALISATION getting fixed!

1. We still do not have an easy way to localize the "Answer dialog" (set a custom property or whatever).
I have to use this in my (german) projects:
...
set the LABEL of btn ID 1117 of cd 1 of stack "Ask Dialog" to "Abbrechen"
set the rect of btn ID 1117 of cd 1 of stack "Ask Dialog" to 260,72,342,95
## "Abbrechen" is much wider that "Cancel"!
...

2. SYSTEM date and time still not available on ANDROID!
Result:
a. We cannot sort "SYSTEM datetime" in datagrids!
b. The calendar widget is useless in non-english speaking countries
c. maybe more...

3. On iOS:
...
mobilePick "A" & return & "B" & return & "C", 1, "cancelDone"
...
And no way to localize "canceldone" to "AbbrechenFertig" or whatever.
Maybe this got fixed in the meantime?

In (almost) 2020 any stack should be completely localizable, not?
And yes, I already reported these a long time ago.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Poll: Printing on Android

Post by Klaus » Wed Dec 18, 2019 11:52 am

Sorry for misusing this thread for my rant, I filed an enhancement request for this:
https://quality.livecode.com/show_bug.cgi?id=22505

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: Poll: Printing on Android

Post by sphere » Wed Dec 18, 2019 1:30 pm

Is'nt there a way to use placeholders for this? like they do with php among others.

One creates a language file and the english word is replaced by the local one.
DE
Cancel=Abbrechen

NL
Cancel=Annuleren

I thought that (long) while ago someone on the list had a kind of solution for that

I know it's alot of work. One could even use an if else statement per label, but it' gets messy and it's not smart programming(read lightweight).

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Poll: Printing on Android

Post by Klaus » Wed Dec 18, 2019 1:38 pm

sphere wrote:
Wed Dec 18, 2019 1:30 pm
Is'nt there a way to use placeholders for this? like they do with php among others.
Unfortunately not!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Poll: Printing on Android

Post by FourthWorld » Wed Dec 18, 2019 5:53 pm

sphere wrote:
Wed Dec 18, 2019 1:30 pm
Is'nt there a way to use placeholders for this? like they do with php among others.

One creates a language file and the english word is replaced by the local one.
DE
Cancel=Abbrechen

NL
Cancel=Annuleren

I thought that (long) while ago someone on the list had a kind of solution for that

I know it's alot of work. One could even use an if else statement per label, but it' gets messy and it's not smart programming(read lightweight).
Writing a mechanism for looping through controls on preOpenCard isn't the hard part. So while it's not built in, many have crafted one.

The expensive part is listing all the strings with their corresponding translations, as you illustrated. It's tedious work, much more so with languages where the best choice may depend on context of use.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Poll: Printing on Android

Post by jacque » Wed Dec 18, 2019 6:07 pm

Klaus wrote:
Wed Dec 18, 2019 1:38 pm
sphere wrote:
Wed Dec 18, 2019 1:30 pm
Is'nt there a way to use placeholders for this? like they do with php among others.
Unfortunately not!
This is what LC profiles were made for. I'm not sure they apply to LC stacks though.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: Poll: Printing on Android

Post by sphere » Wed Dec 18, 2019 7:22 pm


jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Poll: Printing on Android

Post by jacque » Wed Dec 18, 2019 9:59 pm

The first two are a little different. The lesson on internationalization would be in addition to using LC profiles, it will change all the system-related properties that a plist supports (app name, dialog text.) LC profiles are for adjusting the properties of LC controls themselves. Those properties aren't usually included in the OS pList (like color, position, text, etc.) For full internationalization you'd probably need to use both methods.

LC profiles are tedious to set up because you have to specify the properties for every control that needs to change, but you only have to do it once.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply