Comments (5)
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.
@bandit-ibayashi What I meant was showing a barcode next to it a price. Can the SDK support the format below?
from react-native-star-io10.
@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.
@bandit-ibayashi - any comments?
from react-native-star-io10.
@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)
- The sdk fails to discover printers over usb HOT 2
- Could not resolve all artifacts for configuration ':react-native-star-io10:classpath'. HOT 3
- No matching configuration of project :react-native-star-io10 was found. HOT 1
- Why was the min android version changed from 6 to 9? HOT 3
- How to change the encoding if Chinese characters cannot be displayed. HOT 1
- Task :react-native-star-io10:bundleReleaseLocalLintAar FAILED HOT 2
- Error: StarIO10UnsupportedModelError: Not supported model TSP650II/TSP654II [REQUEST] HOT 2
- StarSpoolJobSettings not working on TSP650ii HOT 3
- Two Colour Printing with SP700 HOT 2
- what does this library accept as image or base64 ? HOT 2
- Apple's App Stores requires new privacy permissions from the library in order to be submitted to App Store HOT 4
- How to build apk with `:app:assembleRelease` HOT 6
- How to connect with USB printers? HOT 4
- kotlin-gradle-plugin version required by package not recent enough for react-native 0.73.0 HOT 9
- Execution failed for task ':app:checkDebugAarMetadata' HOT 2
- Cash drawer is opening constantly HOT 3
- Issue with formatting sp700 printout, stardot HOT 2
- Example app for iOS cannot be built with Xcode14.3 HOT 1
- [UWP] Example app for Windows x86 architecture cannot be built HOT 1
- 'React/RCTBridgeModule.h' file not found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-star-io10.