Giter VIP home page Giter VIP logo

Comments (5)

bandit-ibayashi avatar bandit-ibayashi commented on June 9, 2024

You can create a column if it uses horizontal tabs.
Define the tab position in advance with the styleHorizontalTabPositions method, and put the horizontal tab in the text.

var builder = new StarXpandCommand.StarXpandCommandBuilder();
builder.addDocument(new StarXpandCommand.DocumentBuilder()
    .addPrinter(new StarXpandCommand.PrinterBuilder()
        .styleAlignment(StarXpandCommand.Printer.Alignment.Center)
        .actionPrintBarcode(new StarXpandCommand.Printer.BarcodeParameter('0123456', StarXpandCommand.Printer.BarcodeSymbology.Jan8)
            .setBarDots(3)
            .setBarRatioLevel(StarXpandCommand.Printer.BarcodeBarRatioLevel.Level0)
            .setHeight(5)
            .setPrintHri(true)
        )
        .actionFeedLine(1)
        .styleAlignment(StarXpandCommand.Printer.Alignment.Left)
        .styleHorizontalTabPositions([12,37])
        .actionPrintText("SKU\tDescription\tTotal\n")
        .actionPrintText("------------------------------------------------")
        .actionPrintText("300678566\tPLAIN T-SHIRT\t10.99\n" + 
            "300692003\tBLACK DENIM\t29.99\n" + 
            "300651148\tBLUE DENIM\t29.99\n")
        .actionCut(StarXpandCommand.Printer.CutType.Partial)
    )
);

from react-native-star-io10.

mic7010 avatar mic7010 commented on June 9, 2024

@bandit-ibayashi What I meant was showing a barcode next to it a price. Can the SDK support the format below?

image

from react-native-star-io10.

mic7010 avatar mic7010 commented on June 9, 2024

@bandit-ibayashi - I am evaluating the Star printer and need to know if it will support the format above. Please answer either way.

from react-native-star-io10.

mic7010 avatar mic7010 commented on June 9, 2024

@bandit-ibayashi - any comments?

from react-native-star-io10.

gare-bear avatar gare-bear commented on June 9, 2024

@mic7010 the text portion ( Nestile Drink mix.../ Tuna Yellowfin) is no problem.
But the printer cannot print a barcode and text side by side.

When printing barcodes, the next command/method always starts on the next line. For that reason, its not possible to print two different types of content side by side using actionPrintBarcode() and actionPrintText()

Instead create the content graphically and use actionPrintImage() to print it.

from react-native-star-io10.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.