web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Changing font to airal messed up all reciept format.

(0) ShareShare
ReportReport
Posted on by

Hi,

I changed reciept font to arial. After changing its values are not printing as per settings in  reciept designer. Error-reciept.png

Values push next values according to its size. 

Any help appreciated.

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at
    RE: Changing font to airal messed up all reciept format.

    I found solution. you cannot design POS Reciept in Dynamics AX with Arial font because its type is "Propotional" which means that all character will not occupy same space and for reciept so you have to use "Monospaced" font in which every character has fixed width.

    If you want to design reciept with arial font you have to download custom "Monospaced Arial font" and use in reciept.

    or you can also  design your custom reciept on server side in POS printer.cs.

  • guk1964 Profile Picture
    10,886 on at
    RE: Changing font to airal messed up all reciept format.

    Within the parameters element of both the printer and line display profile each peripheral has a character set number, this character set number should be set to 850 for both the line display and the printer. (this is mainly to do with symbols e.g for currency).

    The printDoc_PrintPage() method hard-codes to 7-point Courier New:

                    Font tempFont = new Font("Courier New", 7, FontStyle.Regular);
                    SolidBrush tempBrush = new SolidBrush(Color.Black);
                    System.Drawing.PointF tempPoint = new System.Drawing.PointF(0, 0);

    Simply changing this font (it’s in five places) will spread your text across the page.  So use a fixed-width font or your receipts won’t line up properly.  You can experiment with the values of the offsets for placing the text (coordinate variables x and y).

    A feature of the Form Layout designer is to change the number of columns in any of the three sections.  Right-click on a blank area and select “Number of columns” from the pop-up menu.  Change the value to change the width of your paper.  Trial and error to match up font size and paper width, may give you some options.

     

  • Community Member Profile Picture
    on at
    RE: Changing font to airal messed up all reciept format.

    Windows

  • guk1964 Profile Picture
    10,886 on at
    RE: Changing font to airal messed up all reciept format.

    Are you using OPOS or Windows?

  • Community Member Profile Picture
    on at
    RE: Changing font to airal messed up all reciept format.

    I did changes in printing dll but no luck. Actually changing font to arial messed up all design. position of text are not rendering as per reciept designer. position of following text depends upon length of previous text. no matter how space you provide in designer nothing works. even i redesign print line in code and provide static positions for text but issue remain still.

  • Community Member Profile Picture
    on at
    RE: Changing font to airal messed up all reciept format.

    Oh ok, then you can try to change this in the dll what is printing the reciept. There is a dll for each process in POS.

    I remember there is a print dll, create the visual studio projects and that way you can modify the properties in the txt printed.

    Sorry I though was a SSRS report.

  • Community Member Profile Picture
    on at
    RE: Changing font to airal messed up all reciept format.

    Actually its not a ssrs report. Its AX POS reciept.

  • Community Member Profile Picture
    on at
    RE: Changing font to airal messed up all reciept format.

    Show me the properties in your SSRS report.

  • Community Member Profile Picture
    on at
    RE: Changing font to airal messed up all reciept format.

    Thank you very much for reply. decreasing font size doesn't work. I don't think windows printer support any other font type rather then new courier. what do you think?

  • Community Member Profile Picture
    on at
    RE: Changing font to airal messed up all reciept format.

    You can decrease the font size as well.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Community Member Profile Picture

Community Member 2

#2
Mea_ Profile Picture

Mea_ 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans