Closed madVis closed 2 months ago
Sample code:
Trying to print a table, here's the sample code:
const tableHeaderArray = [ { width: 20, align: 'left' }, { width: 7, align: 'left' }, { width: 7, align: 'left' }, { width: 7, align: 'right' }, { width: 7, align: 'right' } ]; const tableBodyArray = [ [ (encoder) => encoder.bold(true).text('Name').bold(false), (encoder) => encoder.bold(true).text('BigHeading').bold(false), (encoder) => encoder.bold(true).text('Qty').bold(false), (encoder) => encoder.bold(true).text('Net Amount').bold(false), (encoder) => encoder.bold(true).text('Net Total').bold(false) ], [ 'Banana', 'doz', '2', '1.50', '3.00' ], [ 'Cherry', 'kg', '1', '10.00', '10.00' ] ]; encoder.table(tableHeaderArray, tableBodyArray);
Here's the print
Expectation: All columns heading should be in the same line Actual: The second column heading "BigHeading" is moving to the next line
Found the problem. Will be fixed in the next update.
Sample code:
Trying to print a table, here's the sample code:
Here's the print
Expectation: All columns heading should be in the same line Actual: The second column heading "BigHeading" is moving to the next line