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

Notifications

Announcements

No record found.

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)
  • Community Member Profile Picture
    on at

    Any one has information regarding this? ?

  • Community Member Profile Picture
    on at

    You can decrease the font size as well.

  • Community Member Profile Picture
    on at

    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

    Show me the properties in your SSRS report.

  • Community Member Profile Picture
    on at

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

  • Community Member Profile Picture
    on at

    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

    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.

  • guk1964 Profile Picture
    10,888 on at

    Are you using OPOS or Windows?

  • Community Member Profile Picture
    on at

    Windows

  • guk1964 Profile Picture
    10,888 on at

    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.

     

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans