OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 19 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19 Rev 180
Line 16... Line 16...
16
import java.io.File;
16
import java.io.File;
17
import java.io.IOException;
17
import java.io.IOException;
18
 
18
 
19
public class QLPrinterExample {
19
public class QLPrinterExample {
20
	public static void main(String[] args) {
20
    public static void main(String[] args) {
21
		QLPrinter prt = new QLPrinter("192.168.1.103");
21
        QLPrinter prt = new QLPrinter("192.168.168.53");
22
		prt.setHighQuality(true);
22
        prt.setHighQuality(true);
23
		try {
23
        try {
-
 
24
 
24
			prt.print(new File("Hello_720x300.png"));
25
            prt.print(new File("Hello_720x300.png"));
-
 
26
            String code = "123456789";
-
 
27
            prt.printDataMatrixBarCode2D(10, code);
-
 
28
 
-
 
29
            prt.print("Hello");
25
		} catch (IOException e) {
30
        } catch (IOException e) {
26
			
31
 
27
			e.printStackTrace();
32
            e.printStackTrace();
28
		}
33
        }
29
		
34
 
30
		
-
 
31
	}
35
    }
32
}
36
}