Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it unsupported print with label mode? #39

Open
purboindra opened this issue Mar 21, 2024 · 5 comments
Open

is it unsupported print with label mode? #39

purboindra opened this issue Mar 21, 2024 · 5 comments

Comments

@purboindra
Copy link

Hi, i wanna ask something, is this unsupported with label mode? cs, when i try to print with these package, everything workings fine with esc/pos mode. but, my code not working yet when i switch to label mode.

my code completely follows the one in the example

thank you...

@andresperezmelo
Copy link
Owner

Currently not suitable for label printers, we are working on a plugin for label printers.

@niravp-cliqbux
Copy link

@andresperezmelo Any plan for Label Printing. Really in need for that. Thanks

@andresperezmelo
Copy link
Owner

Yes I'm working on it in my free time, my last days and I've been very busy, but I'll have to finish it soon.

@patelnirav48
Copy link

@andresperezmelo Thanks, I'm really in need for TSC Label Print labels.

@zhake555
Copy link

@andresperezmelo

List bytes = [];

    final profile = await CapabilityProfile.load();
    final generator = Generator(sharedPreference.getPaperSize[0], profile);
    bytes += generator.reset();

    int labelWidth = 40;
    int labelHeight = 30;
    int barcodeHeight = 80;
    int barcodeWidth = 2;
    int x = 80;
    int y = 60;

var tspl = '''
SIZE $labelWidth mm,$labelHeight mm
TEXT $x, 30, 0, 1, 0, 0, "njknk"
BARCODE $x,$y,"128",$barcodeHeight,1,0,$barcodeWidth,2,"$barcodeData"
TEXT $x, 70, 1, 1, 1, 1, "hjjhjk"
PRINT ${printConfig[0]}
CLS
END
''';

    bytes += generator.rawBytes(tspl.codeUnits);
    
    PrintBluetoothThermal.writeBytes(bytes);
    
    
    this prints TSPL but only barcode is printing. Text is not printing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants