admin管理员组文章数量:1314215
I'm working with another brother on a new invoice app. I need to print a detail list of items:
for example item description price tax qty total 1 test 10 2 10 120
A reference to text printing can be found in the following post I'm unable to print a 62mm x 29mm label using the another_brother library with a Brother QL-810W printer
Thanks for your time
I'm working with another brother on a new invoice app. I need to print a detail list of items:
for example item description price tax qty total 1 test 10 2 10 120
A reference to text printing can be found in the following post I'm unable to print a 62mm x 29mm label using the another_brother library with a Brother QL-810W printer
Thanks for your time
Share Improve this question asked Jan 31 at 14:12 Fermin SalcedoFermin Salcedo 515 bronze badges1 Answer
Reset to default 0First of all sorry for the long answers. and for such ambiguous questions.
Unfortunately, the another_brother library primarily focuses on interacting with Brother printers for label printing. It doesn't directly offer features for printing data tables, table views, or grids in the way you might be thinking.
Here's why and what alternatives you can consider:
Purpose of the library: another_brother is designed to generate and send print commands specifically for Brother label printers. Its core functionality revolves around label formatting, barcode generation, and communication with the printer. Data tables are different: Data tables, table views, and grids are typically visual representations of data within a software application. Printing them usually involves capturing the visual output and sending it to a standard printer. Alternatives for printing data tables:
Standard printing methods:
If your data is displayed in a web browser, you can use the browser's print functionality (Ctrl+P or Cmd+P) to print the table. If you're using a desktop application, it likely has built-in printing capabilities for data grids or tables. Export and print:
Many data table libraries or controls allow you to export the data in formats like CSV, Excel, or PDF. You can then open the exported file in a suitable application and print it. Reporting libraries:
For more complex formatting and layout options, consider using reporting libraries like: iTextSharp (for .NET): A powerful library for generating PDF documents with tables and other elements. ReportLab (for Python): A popular choice for creating PDF reports with tables and charts. Screenshot and print:
As a last resort, you can take a screenshot of the data table and print the image. However, this might not be ideal for large tables or when you need precise formatting. Important note: If you need to print data tables on Brother label printers specifically, you might need to explore alternative approaches or libraries that can generate label-specific layouts with the table data.
If you can provide more details about your specific use case (e.g., the programming language or framework you're using, the type of data table you have, and the target Brother printer model), I might be able to offer more tailored suggestions.
So, I turn to create a pdf document with dynamic height. This measure is calculated when adding widgets to the pdf document. if anyone is interested in something like that just comment on it and I will provide a code sample.
本文标签:
版权声明:本文标题:flutter - How can I print a datatable, table view or grid using another_brother library - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741915350a2404697.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论