Print out report

vijayandersonvijayanderson Member Posts: 207
edited 2008-06-13 in Navision Financials
Hey Friends

My Client requirement is such that when printing the Sales Invoice,they need five copy,but in each copy they need a different name (print copy name) in the printed report by single click.

Example :-

1.original
2.Duplicate
3.Triplicate
4.Quadrapliate and
5.Transporters copy

There is any option in Navision,if no, is there any solution for it.

Thank you

regards,
Vijayan.R.V

Answers

  • garakgarak Member Posts: 3,263
    Do you know how the standard navision handle this :?:

    Take a look, for example, in Report 204 -> CopyLoop - OnAfterGetRecord()

    Here you can see following:
    ...
    IF Number > 1 THEN
      CopyText := Text003;
    ...
    

    So, if you have x copys, and for every copy must the CopyText have other Words, than you can here change this .....

    Regards
    Do you make it right, it works too!
  • NL4385NL4385 Member Posts: 12
    Message deleted.

    Regards,
    Cor
  • rajpatelbcarajpatelbca Member Posts: 178
    yes but don't ferget to fix no. of copies if you forget it then it will refer "invoice copies" field form customer card or you can default set this field as 5.
    Experience Makes Man Perfect....
    Rajesh Patel
  • vijayandersonvijayanderson Member Posts: 207
    If yes can you say to to go about it.. can you send the code if there is any customization. it would be of great help.
  • rajpatelbcarajpatelbca Member Posts: 178
    hi vijayanderson,

    there is nothing do with inbuit report just u have to set the variable NoofCopies to copies you want to print - 1 in your case put 4. and add following code in onaftergetrecord of copyloop

    IF Number = 1 THEN
    CopyText :='original';
    if number = 2 then
    CopyText :='Duplicate';

    etc...

    hope it helps you.
    Experience Makes Man Perfect....
    Rajesh Patel
  • garakgarak Member Posts: 3,263
    Do you not read my post above :?:
    Do you make it right, it works too!
  • rajpatelbcarajpatelbca Member Posts: 178
    hi garak,
    you are right i have seen that and understand it very well that u have given correct answer.
    even though he is asking for what what he want to do ? :mrgreen:
    Experience Makes Man Perfect....
    Rajesh Patel
  • garakgarak Member Posts: 3,263
    what he should do is: read the posts and than activate the brain ;-)
    Do you make it right, it works too!
  • rajpatelbcarajpatelbca Member Posts: 178
    ya i am agree with you. :mrgreen:
    Experience Makes Man Perfect....
    Rajesh Patel
  • TomasTomas Member Posts: 420
    garak wrote:
    Do you know how the standard navision handle this :?:

    Take a look, for example, in Report 204 -> CopyLoop - OnAfterGetRecord()

    Here you can see following:
    ...
    IF Number > 1 THEN
      CopyText := Text003;
    ...
    

    So, if you have x copys, and for every copy must the CopyText have other Words, than you can here change this .....

    Thanks Garak for the tip. Even though I didn't need to use it before, but it's good to know some things that can easily be done by default.

    I think this is a good tip (especially for beginners).
  • vijayandersonvijayanderson Member Posts: 207
    Hey Thanks for your reply.. It solved my problem.
Sign In or Register to comment.