FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
Printing over android
Printing over android
Débuté par Mister TRIANTAFILLOS, 14 fév. 2018 18:47 - 1 réponse
Connectez-vous…
Mister TRIANTAFILLOS
#1
Membre enregistré
30 messages
Posté le 14 février 2018 - 18:47
Any suggestions for print in thermal network printer over android ?
(I don't wont to use web services with pc for printing data as client of web services, this is the only way to printing for know).
Signaler
0
0
Mister TRIANTAFILLOS
#2
Membre enregistré
30 messages
Posté le 15 février 2018 - 19:07
Hear is one code to print a text fille that export my app and send to 3rd part application "PrintBot" to handle the printig
Path
is UNICODE string
=
(
CompleteDir
(
SysDirStorageCard
(
)
) +
"document.txt"
)
textto_print
is UNICODE string
textto_print
=
"Export text + printbot line 1"
+
CR
textto_print
=
textto_print
+
"line 2"
fSaveText
(
Path
,
textto_print
)
C
all_print_bot
(
Path
)
/*Java code*/
import android.net.Uri;
import java.io.File;
import android.content.Intent;
import android.content.Context;
import android.app.Activity;
import java.lang.*;
import android.util.*;
import java.lang.Exception;
import android.util.Log;
public static void Call_print_bot(String path_tmp)
{
/* https://www.zenofx.com*/
Intent intent = new Intent("com.zenofx.action.PRINT");
File path_ToPrint = new File(path_tmp.toString());
Uri uriToPrint = Uri.fromFile(path_ToPrint);
intent.setDataAndType(uriToPrint, "text/html");
getCurrentActivity().startActivity(intent);
/*Toast.makeText(getApplicationContext(), uriToPrint.toString() ,Toast.LENGTH_LONG).show();*/
}
How can i use the google cloud printer ?
after some searching i found have some code that can print using java classes etc and i dont know how to define java classes over windev mobile. (code that i found its for Android studio). I whone this solution to do not need the 3rd part app
Message modifié, 15 février 2018 - 19:09
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte