Topic: How i can fix the invoice shape to small size Thermal printer

Hi All
Please i want to know How i can fix the invoice shape to  small size Thermal printer
any one can help me for this i user frontaccounting version 2.3.4

Waiting your reply

Re: How i can fix the invoice shape to small size Thermal printer

Why don't you change paper size on your Browser

Phuong

Re: How i can fix the invoice shape to small size Thermal printer

Hi notrinos
  Can you tell what what do you mean change paper size on my browser how i can do that.

Re: How i can fix the invoice shape to small size Thermal printer

I mean choose paper size on browser when printing, like this
https://imgur.com/8EWm4Z1

Post's attachments

Browser_PaperSize_Setting.jpg 35.4 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.
Phuong

Re: How i can fix the invoice shape to small size Thermal printer

You will need to adjust the font size and column size to fit in clearly and the paper size too can be set in the FrontReport object property while instanciation. All possible sizes are in the switch case statement in the constructor of the FrontReport class from Line 73 onwards in reporting/includes/pdf_report.inc.

Re: How i can fix the invoice shape to small size Thermal printer

I thought it was reporting/ #107 that had to be edited for the receipt?

Re: How i can fix the invoice shape to small size Thermal printer

The invoice is 107 and the receipt is 112 as per here

The FrontAccounting Wiki(Manual, examples, tips, setup info, links to accounting sites, etc) https://frontaccounting.com/fawiki/

8 (edited by johnnyander39 11/02/2022 06:07:15 am)

Re: How i can fix the invoice shape to small size Thermal printer

Go to: Windows Start Menu > Control Panel > Devices and Printers. Click Preferences, set the Paper Size to 72 x Receipt and click OK to return to the printer properties window. Click Advanced > Printing Defaults, set the paper size to 72 x Receipt and click OK to return to the printer properties window. Check for quality thermal and label printers here: https://munbyn.com/products/4x6-fanfold-shipping-labels

9 (edited by kvvaradha 11/02/2022 08:00:41 am)

Re: How i can fix the invoice shape to small size Thermal printer

Printing a receipt on therminal printer requires a small size receipt like A7, A8 or A6. As of FA.  We have A4 and Letter size. Which we are not giving other sizes by default.

But you  can update the size in pdf_reports.inc switch case.

And then create  a form file and place it inside  reporting/forms/headerA7.php and copy the doctext and header2.php code to there..

And you need to try something to make the receipt looks fit in respective size.

And also make some changes and change  SetHeader(HeaderA7)

With that your FA is ready to print receipts in other sizes. Its an example  like that you  can adapt or sizes and other reports.

We have done similar one like this for a friend.

Subscription service based on FA
HRM CRM POS batch Themes