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)

Reg: AX 2012R3 Retail Receipt

(1) ShareShare
ReportReport
Posted on by 364

Hi Friends,

Im getting Alignment Issue in AX Retail POS Sales Receipt and i all friends from community is suggesting to edit the margin in Peripherals.dll file and i tried to open my .dll file in Visual studio pro 2013 its not loading like .cs file and I attached the screenshot of my visual studio after loading the .dll file in visual studio. Please guide me if im doing anything wrong

Screenshot2.png

 

*This post is locked for comments

I have the same question (0)
  • Rodolfo Recalde Profile Picture
    on at

    Hi Kumar,

    I believe you need to use the Retail SDK 

    Try to access the Retail Services Solution> C:\Users\[UserName]\Documents\Retail SDK (version) \ POS Plug-ins \ Services

    There, you can access the Peripherals project.

    retail_5F00_SDK_5F00_DAX_5F00_Recalde.png

    About Retail SDK:

    https://technet.microsoft.com/pt-br/library/hh771575.aspx

    I Hope this Helps!

    Regards.

    Rodolfo Recalde

  • Vino9667 Profile Picture
    364 on at

    Hi Rodolfo,

    Thanks for the reply...

    Now i installed Retail SDK and now i can see my Peripherals.cs file under services, i can't find the Margin in my file but i tried by changing Font also still its not working for me.Can u please suggest any solution for my problem and I am using AX 2012 R3 with CU9 update.

  • Rodolfo Recalde Profile Picture
    on at

    So...

    I never changed the margin...

    however, in your problem you'll have to take tests by trial and error until you get the desired result.

    I checked the code. You can change the properties of Figure 1.

    printerCS2_5F00_DAX_5F00_Recalde.png

    figure 1.

    Or maybe do the following sample code in the second figure. Warning: I have not had time to test.

    use the > printDoc_BeginPrint event in Printer.cs 

    printerCS2_5F00_DAX_5F00_Recalde.png

    figure 2.

    ...

    var printDocument = sender as PrintDocument;

    if (printDocument != null)
    {
        printDocument.DefaultPageSettings.Margins.Left = 0; 
        printDocument.DefaultPageSettings.Margins.Right = 0; 
    }

    ...

    I hope this Helps! 

    Regards,

    Rodolfo Recalde.

  • Community Member Profile Picture
    on at

    Hi.

    You should not have to change anything in the source code to mess with the margin.  In the Receipt Designer you can simply move all the receipt elements, 1,2,3 or more characters to the right.  If you need more space pr line (more characters pr line) you can right click each of the section panels in the designer in AX (header, lines, footer) and change it from something else than 44 or 56 which is most common.

    Regards,

    Hrólfur Gestsson

  • Vino9667 Profile Picture
    364 on at

    Dear Rodolfo Recalde,

    Thanks for the reply...

    As, per your suggestion i changed the margin left and right code in printer.cs, after changing the margin aslo my receipt is printing same like before by leaving some blank space at top and left and tried to change the font name and size also but nothing is reflecting in my receipt even if i made any changes in printer.cs file under peripherals, can you suggest me anything i want to do after changing in printer.cs file.

    Thanks in advance...

  • Vino9667 Profile Picture
    364 on at

    Hi Hrolfur,

    Thanks for the reply...

    Are you saying about the Number of columns?

  • Rodolfo Recalde Profile Picture
    on at

    You changed the printer.cs and nothing has changed?

    You performed the following steps?

    a. Make sure that you are compiling the project without errors. "Build" in Visual Studio.

    b. Copy your Peripherals.dll ([...] \ Retail SDK [CU] \ POS Plug-ins \ POS \ bin \ Debug) to the extensions folder (C: \ Program Files (x86) \ Microsoft Dynamics AX \ 60 \ Retail POS \ Services \ Extensions)

    I Hope This Helps!

    Regards,

    Rodolfo Recalde.

  • Vino9667 Profile Picture
    364 on at

    Dear Rodolfo Recalde,

    Thanks for the response...

    After your suggestion, I came to know while build the file, its showing some error showing some assembly reference is missing and i will attach the error list along with this, please suggest me how to add this missing assembly reference to my application.

    7573.Error.png

    Thanks in advance...

  • Community Member Profile Picture
    on at

    Hi.

    The reason for this might be that the project files *.csproj are referencing POS application files that for some reason are non-existing.  Edit the .csproj file text editor and trace where each of the broken reference is pointing to.  Compare that path to the path behind the "DataAceess" reference which in your case seems to be working.

    I also remember a case where the .NET version was different between the SDK projects you are building and the POS application files.

    And yes ... "Number of columns" :).

    H.

  • DMW Profile Picture
    on at

    here same problem when I rebuild the project

    5238.Capture.JPG

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans