how to print twice in report?

bangswitbangswit Member Posts: 265
hi everyone...
anybody know how to print twice?
for example i have report Sales order
and i want if print... it would be printed twice
1st with the header Sales Order... and The other one is SO
anything besides that is the same
thanks

Comments

  • AndwianAndwian Member Posts: 627
    I believe this is similar with Order Confirmation report, where:
    1. you can set 1 as No. of Copies on Option tab of the request form,
    2. and then it will print Order Confirmation - COPY on the >1 pages.
    Regards,
    Andwian
  • bangswitbangswit Member Posts: 265
    but i only need two
    with different header....
    in order confirmation is the same header , right?
  • AndwianAndwian Member Posts: 627
    Andwian wrote:
    I believe this is SIMILAR with Order Confirmation report
    The points are:
      1. You can make the No. of Copies initiated and fixed by 1 2. Create the report title as the variable, instead of the label. 3. Print the variable as the value you want, when it is not the first page.
    Regards,
    Andwian
  • bangswitbangswit Member Posts: 265
    I already take a look at the Order Confirmation report
    but i haven't find the command for do the print


    CopyLoop - OnPreDataItem()
    NoOfLoops := ABS(NoOfCopies) + 1;
    CopyText := '';
    SETRANGE(Number,1,NoOfLoops);

    I change

    CopyLoop - OnPreDataItem()
    CopyText := '';
    SETRANGE(Number,1,2);

    ********************************

    CopyLoop - OnAfterGetRecord()
    IF Number > 1 THEN
    CopyText := Text003;
    CurrReport.PAGENO := 1;

    I Change
    CopyLoop - OnAfterGetRecord()
    IF Number > 1 THEN
    CopyText := 'Copy';
    CurrReport.PAGENO := 1;
  • AndwianAndwian Member Posts: 627
    bangswt wrote:
    but i haven't find the command for do the print

    Of course you could not find the PRINT code in your C/AL Code. Have a look at Report Section.
    Regards,
    Andwian
  • bangswitbangswit Member Posts: 265
    Andwian wrote:
    bangswt wrote:
    but i haven't find the command for do the print

    Of course you could not find the PRINT code in your C/AL Code. Have a look at Report Section.
    okay... i get the answer
    there is not in report section
    but dataitem integer (copyloop)
    thanks for your help
  • jannestigjannestig Member Posts: 1,000
    Or better yet use the functionality in place to help you do it.

    If i read correctly you require 2 reports ?

    Administration > Application setup > Sales & Marketing > Report selections

    Select Sales order etc Then enter the 2 reports numbers as sequence 1 and 2 and when ever you print of that document type
    you will have the two reports print out. ](*,)
  • bangswitbangswit Member Posts: 265
    jannestig wrote:
    Or better yet use the functionality in place to help you do it.

    If i read correctly you require 2 reports ?

    Administration > Application setup > Sales & Marketing > Report selections

    Select Sales order etc Then enter the 2 reports numbers as sequence 1 and 2 and when ever you print of that document type
    you will have the two reports print out. ](*,)
    but i only create 1 report
    if sequance 1 --> report 50001
    and sequance 2 --> report 50001
    it doesn't work
  • jannestigjannestig Member Posts: 1,000
    Thats why i said if you need 2 reports, not 2 copies of the same report

    If you really wanted to use this method export the report reimport that copy with a new number EG 50001

    Set the the duplicate report as sequence 2 and then you will have 2 reports printed.

    Otherwise you will have to add the number of copies functionality to the report
  • bangswitbangswit Member Posts: 265
    jannestig wrote:
    Thats why i said if you need 2 reports, not 2 copies of the same report

    If you really wanted to use this method export the report reimport that copy with a new number EG 50001

    Set the the duplicate report as sequence 2 and then you will have 2 reports printed.

    Otherwise you will have to add the number of copies functionality to the report
    ow okay
    that's all right
    i already find the solution using integer
    thanks anyway
Sign In or Register to comment.