Auto Stapling Report when Printing

coppencoppen Member Posts: 4
Does anyone have experience sending a report and having it automatically staple in the printer? We bought the HP 9050 with a stapler stacker which will staple a report when it is finished printing. I would like to send a command to the printer to staple the report at the end of each group. I am grouping Whse Picks by Ship to Code so at the end of each ship to code, the printer needs to staple. any ideas on how to configure the printer and navision would be helpful

Comments

  • ara3nara3n Member Posts: 9,256
    what is the special Command or character that you need to send to the printer?
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • coppencoppen Member Posts: 4
    I don't know. the printer manual has some doucmentation but it is not clear at all.
  • ajhvdbajhvdb Member Posts: 672
    On the PC we installed an extra printer (same driver) and if they want to staple it, they need to print to this printer. In this printer we changed some settings.
  • coppencoppen Member Posts: 4
    i set up the driver and it is stapling the whole report. i want the report to be stapled in sections so i would need to explicitly send the command.
  • ajhvdbajhvdb Member Posts: 672
    In 2.60 we did this for a client by a main report and from there starting 4 reports for every part of that section and connecting it to a different printer.

    I know it is not the greatest solution but it is working now for more then 5 years.
  • ara3nara3n Member Posts: 9,256
    You can have two reports One that runs the other report with filters. That way you'll get multiple print jobs and the printer will staple each print job.

    So to repeat. The first report will filter the second report by sections. And then print that one section. The printer will staple that print job.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ricky76ricky76 Member Posts: 204
    Can you tell me how to filter the second report based on the selection of the first report?
  • ara3nara3n Member Posts: 9,256
    OBJECT Report 50010 example report
    {
      OBJECT-PROPERTIES
      {
        Date=11/06/07;
        Time=[ 6:07:03 PM];
        Modified=Yes;
        Version List=;
      }
      PROPERTIES
      {
      }
      DATAITEMS
      {
        { PROPERTIES
          {
            DataItemTable=Table112;
            OnAfterGetRecord=BEGIN
                               SalesInvHeader := "Sales Invoice Header";
                               SalesInvHeader.SETRECFILTER;
                               REPORT.RUNMODAL(REPORT::"Sales Invoice",FALSE,TRUE,SalesInvHeader);
                             END;
    
          }
          SECTIONS
          {
            { PROPERTIES
              {
                SectionType=Body;
                SectionWidth=12000;
                SectionHeight=846;
              }
              CONTROLS
              {
              }
               }
          }
           }
      }
      REQUESTFORM
      {
        PROPERTIES
        {
          Width=9020;
          Height=3410;
        }
        CONTROLS
        {
        }
      }
      CODE
      {
        VAR
          SalesInvHeader@1000000001 : Record 112;
    
        BEGIN
        END.
      }
    }
    
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.