TX Sheet Control

BarcodeOptions.showText Property

Property

Human-readable caption for linear codes; defaults to true. QR codes always omit the caption.

Package: @txtextcontrol/tx-sheet-control-server.

Syntax

showText?: boolean

Remarks

Settings are detached snapshots. Cell values and formulas remain available beneath the symbol. Sources resolve after calculation and mail merge. See Barcodes and QR Codes for validation, supported payloads and XLSX behavior.

Examples

Create a barcode from application data and retain its editable workbook settings.

import { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';
import type { BarcodeOptions } from '@txtextcontrol/tx-sheet-control-server';

const control = new ServerSheetControl();
const book = control.workbook;
const sheet = book.sheets.at(0);
sheet.cell('A1').setText('https://example.com/invoice/1042');
const options: BarcodeOptions = {
    symbology: 'qrCode', source: 'A1', showText: false,
    foreground: '#163b63', background: '#ffffff', errorCorrection: 'M', version: 3,
};
sheet.cell('B2').setBarcode(options);
sheet.cell('D2').setBarcode({ symbology: 'code128', value: '001042', showText: true });