Bonjour,
Merci pour votre réponse, J'ai intégré le code et voici le résultat de la compilation.
Erreur retournée :
src\com\masociete\testpos\wdgen\GWDCPCOL_Impression_ESC_POS.java:27: error: cannot find symbol
Intent intent = new Intent(Intent.ACTION_VIEW, "qrstech.posprinterdriver/.printservice" );
^
symbol: class Intent
location: class GWDCPCOL_Impression_ESC_POS
src\com\masociete\testpos\wdgen\GWDCPCOL_Impression_ESC_POS.java:27: error: cannot find symbol
Intent intent = new Intent(Intent.ACTION_VIEW, "qrstech.posprinterdriver/.printservice" );
^
symbol: class Intent
location: class GWDCPCOL_Impression_ESC_POS
src\com\masociete\testpos\wdgen\GWDCPCOL_Impression_ESC_POS.java:27: error: cannot find symbol
Intent intent = new Intent(Intent.ACTION_VIEW, "qrstech.posprinterdriver/.printservice" );
^
symbol: variable Intent
location: class GWDCPCOL_Impression_ESC_POS
3 errors
Voici ce code que j'ai écris
1 2 3 4 5 6
| public static void Impression()
{
Intent intent = new Intent(Intent.ACTION_VIEW, "qrstech.posprinterdriver/.printservice" );
intent.putExtra("Data", "LES_DONNEES_A_TRANSMETTRE"); // Il me faut mettre la variable string ici
startActivity(intent);
} |
Faut-il faire un import quelconque avant?
Je reste perdu et me sens de plus en plus stupide.
Pouvez-vous me corriger?
Merci d'avance
Thierry
Partager