Receipt Printer to Cut twice for Two copies

kolaboykolaboy Member Posts: 446
Hi Experts,
I have a problem with printing receipt from Navision 4.0.
We have an Itach Posjet1000 receipt printer which we have configured in navision 4.0 to print receipt. The printer is printing the receipt and cutting it fine.

Our problem is we want it to cut the receipt twice so that there can be two copies of the receipt. But right now is only cutting it ones.

Is there any way in Navision that can let us have the receipt cut twice?
Thanks.

Comments

  • ara3nara3n Member Posts: 9,256
    My guess one report gets printed and at the end of report the paper gets cut. You need to split the report so that one prints the receipt only and second prints copy only. So that at the end of each report the paper gets cut.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • kolaboykolaboy Member Posts: 446
    ara3n,
    I want the receipt to cut twice to have two copies of the same receipt when the cashier post the entries at once. Not going back and print the copy of the cashiers receipt. I don't know if you understand.

    can you give me a hint or explain how to go about with this in a step form please.
  • ara3nara3n Member Posts: 9,256
    Are you using LS Retail?
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • kolaboykolaboy Member Posts: 446
    I am Using the Customer Receipt report which is design using the Cust. ledger Entry table. Here is the export of the Report:
    OBJECT Report 50000 Cust. Reciept
    {
      OBJECT-PROPERTIES
      {
        Date=21/10/06;
        Time=13:21:12;
        Modified=Yes;
        Version List=;
      }
      PROPERTIES
      {
        UseReqForm=Yes;
        UseSystemPrinter=Yes;
      }
      DATAITEMS
      {
        { PROPERTIES
          {
            DataItemTable=Table21;
            DataItemTableView=SORTING(Entry No.);
            NewPagePerRecord=Yes;
            OnAfterGetRecord=BEGIN
                               IF "Cust. Ledger Entry"."Amount (LCY)" < 0 THEN
                                 "Cust. Ledger Entry"."Amount (LCY)":="Cust. Ledger Entry"."Amount (LCY)" * -1;
    
                               IF Customer.GET("Cust. Ledger Entry"."Customer No.") THEN
                                 CustName := Customer.Name
                               ELSE
                                 CustName := '';
                               IF Cashier.GET("Cust. Ledger Entry"."User ID") THEN
                                  CashName := Cashier.Name
                               ELSE
                                  CashName := '';
                             END;
    
            ReqFilterFields=Document No.;
          }
          SECTIONS
          {
            { PROPERTIES
              {
                SectionType=Header;
                PrintOnEveryPage=Yes;
                SectionWidth=18150;
                SectionHeight=2538;
                OnPreSection=BEGIN
                               COMPINFO.GET;
                               COMPINFO.CALCFIELDS(Picture);
                             END;
    
              }
              CONTROLS
              {
                { 1000000002;TextBox;15000;0    ;3150 ;423  ;HorzAlign=Right;
                                                             SourceExpr=FORMAT(TODAY,0,4) }
                { 1000000004;TextBox;17700;423  ;450  ;423  ;CaptionML=ENU=Page;
                                                             SourceExpr=CurrReport.PAGENO }
                { 1000000005;Label  ;16950;423  ;750  ;423  ;ParentControl=1000000004 }
                { 1000000006;TextBox;15900;846  ;2250 ;423  ;HorzAlign=Right;
                                                             SourceExpr=USERID }
                { 1000000022;Label  ;0    ;1692 ;3150 ;423  ;FontSize=9;
                                                             FontBold=Yes;
                                                             FontUnderline=Yes;
                                                             CaptionML=ENU=Official Receipt }
                { 1000000034;Label  ;0    ;0    ;5400 ;1692 ;Border=No;
                                                             BorderStyle=Normal;
                                                             FontSize=12;
                                                             FontBold=Yes;
                                                             MultiLine=Yes;
                                                             CaptionML=ENU="SOCIAL SECURITY AND  HOUSING FINANCE CORPORATION " }
              }
               }
            { PROPERTIES
              {
                SectionType=Body;
                SectionWidth=18150;
                SectionHeight=8037;
              }
              CONTROLS
              {
                { 1000000008;TextBox;3150 ;0    ;4650 ;423  ;HorzAlign=Left;
                                                             SourceExpr="Document No." }
                { 1000000009;Label  ;0    ;0    ;3000 ;423  ;ParentControl=1000000008;
                                                             CaptionML=ENU=Receipt No. }
                { 1000000011;TextBox;3150 ;423  ;2700 ;423  ;HorzAlign=Left;
                                                             SourceExpr="Posting Date" }
                { 1000000012;Label  ;0    ;423  ;3000 ;423  ;ParentControl=1000000011;
                                                             CaptionML=ENU=Date }
                { 1000000014;TextBox;3150 ;846  ;3450 ;423  ;HorzAlign=Left;
                                                             SourceExpr="Customer No." }
                { 1000000015;Label  ;0    ;846  ;3000 ;423  ;ParentControl=1000000014 }
                { 1000000017;TextBox;3150 ;2115 ;3750 ;423  ;HorzAlign=Left;
                                                             SourceExpr=["Amount (LCY)" ] }
                { 1000000018;Label  ;0    ;2115 ;3000 ;423  ;ParentControl=1000000017;
                                                             CaptionML=ENU=Amount (GMD) }
                { 1000000023;TextBox;3150 ;2538 ;4950 ;423  ;HorzAlign=Left;
                                                             SourceExpr=Description }
                { 1000000024;Label  ;0    ;2538 ;3000 ;423  ;ParentControl=1000000023;
                                                             CaptionML=ENU=Desc }
                { 1000000026;TextBox;3150 ;2961 ;4950 ;423  ;HorzAlign=Left;
                                                             SourceExpr="Dimension Name" }
                { 1000000027;Label  ;0    ;2961 ;3000 ;423  ;ParentControl=1000000026;
                                                             CaptionML=ENU=FUND }
                { 1000000000;TextBox;3150 ;1269 ;4650 ;423  ;HorzAlign=Left;
                                                             SourceExpr=CustName }
                { 1000000007;Label  ;0    ;1269 ;3000 ;423  ;ParentControl=1000000000;
                                                             CaptionML=ENU=Customer Name }
                { 1000000010;TextBox;3150 ;3807 ;2700 ;423  ;HorzAlign=Left;
                                                             SourceExpr="Start Period Name" }
                { 1000000013;Label  ;0    ;3807 ;3000 ;423  ;ParentControl=1000000010;
                                                             CaptionML=ENU="Start Period " }
                { 1000000019;Label  ;0    ;5499 ;4650 ;423  ;HorzAlign=Left;
                                                             CaptionML=ENU=___________________________________ }
                { 1000000025;Label  ;0    ;5922 ;4650 ;423  ;HorzAlign=Left;
                                                             CaptionML=ENU=Cashier's Stamp & Signature: }
                { 1000000016;TextBox;3150 ;4230 ;2700 ;423  ;HorzAlign=Left;
                                                             SourceExpr="End Period Name" }
                { 1000000020;Label  ;0    ;4230 ;3000 ;423  ;ParentControl=1000000016;
                                                             VertAlign=Center;
                                                             FontBold=Yes;
                                                             MultiLine=Yes;
                                                             CaptionML=ENU=End Period }
                { 1000000001;TextBox;3150 ;3384 ;4950 ;423  ;HorzAlign=Left;
                                                             SourceExpr="Global Dimension 2 Code" }
                { 1000000003;Label  ;0    ;3384 ;3000 ;423  ;ParentControl=1000000001;
                                                             VertAlign=Center;
                                                             FontBold=Yes;
                                                             MultiLine=Yes }
                { 1000000029;Label  ;0    ;7191 ;7050 ;423  ;VertGlue=Top;
                                                             HorzAlign=Left;
                                                             VertAlign=Center;
                                                             CaptionML=ENU=______________________________________________________________________________ }
                { 1000000030;TextBox;1500 ;6768 ;3450 ;423  ;HorzGlue=Left;
                                                             VertGlue=Top;
                                                             HorzAlign=Left;
                                                             SourceExpr=CashName }
                { 1000000031;Label  ;0    ;6768 ;1500 ;423  ;HorzGlue=Left;
                                                             VertGlue=Top;
                                                             ParentControl=1000000030;
                                                             HorzAlign=Left;
                                                             VertAlign=Center;
                                                             FontSize=9;
                                                             FontBold=Yes;
                                                             MultiLine=Yes;
                                                             CaptionML=ENU=Cashier : }
                { 1000000032;TextBox;3150 ;1692 ;4650 ;423  ;HorzAlign=Left;
                                                             SourceExpr="External Document No." }
                { 1000000033;Label  ;0    ;1692 ;3000 ;423  ;ParentControl=1000000032;
                                                             HorzAlign=Left;
                                                             VertAlign=Center;
                                                             FontBold=Yes;
                                                             MultiLine=Yes;
                                                             CaptionML=ENU=Cheque No. }
              }
               }
          }
           }
      }
      REQUESTFORM
      {
        PROPERTIES
        {
          Width=9020;
          Height=3410;
        }
        CONTROLS
        {
        }
      }
      CODE
      {
        VAR
          CustName@1000000000 : Text[100];
          Customer@1000000001 : Record 18;
          COMPINFO@1000000002 : Record 79;
          dimen@1000000003 : Record 349;
          DimenName@1000000004 : Text[50];
          DimenCode@1000000005 : Code[10];
          Cashier@1000000006 : Record 2000000002;
          CashName@1000000007 : Text[100];
          Amount@1000000008 : Text[30];
    
        BEGIN
        END.
      }
    }
    
    

    Please any Idea. I want when the cashier post the journal, It should print the report in two copies. It should cut at the end of each copy of the report.
    Thanks.
  • ara3nara3n Member Posts: 9,256
    print the report twice. It will do the cutting.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • kolaboykolaboy Member Posts: 446
    It can only print and cut once when the journal is posted. How can we make it print and cut twice in navision:

    Is there any script that one should write or any setting that can be done in navision to let the navision print and cut twice.

    How can i make navision to print twice.
    Print a receipt and going to tha copy of cashiers recipt to print another one again seems to tedious.

    any ideas please.
  • ara3nara3n Member Posts: 9,256
    well you need to change the code to print the report twice.
    The other option is find the special character that is sent to the printer to cut the paper, and add it to report.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • kolaboykolaboy Member Posts: 446
    well you need to change the code to print the report twice.
    The other option is find the special character that is sent to the printer to cut the paper, and add it to report.
    

    This is exactly why i Post the object here so that you can help me to see how i can change my code to print twice.

    What is that special character that is sent to the printer to cut the paper? Can you please tell me where i can fine it. I have checked report properties but can't find anything that could do that.

    I must tell you that i am a newbies in navision and i am trying to learn through your helps. So please i need your assistants in this problem.
  • ara3nara3n Member Posts: 9,256
    Create a new report that calls your report twice with right filters. Set it as report to print instead your current 50000 report.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • kolaboykolaboy Member Posts: 446
    To be candit with you i don't know how to go about it.
    Can you please!!! tell me how to go about this in Step by step form, in that way i will understand. Please!!!!!!
    Thanks
Sign In or Register to comment.