What to print several invoices via report as pdf

bastirbastir Member Posts: 27
Hi,

I've found a nice , free tool being able to create pdf files via control characters (http://www.nbsi.de/phpBB2/)

I wanted to print our invoice from the last year with this tool, but unfortunatly Navision is building only one printer job.
The characters are even recognized by the tool, but it is not able to split the Navision Job in each document file.

Do you know a possibility to say Navision that you want to print invoice (etc.) from the last year and Navision is printing them one after the other, allways in a new printjob?

I'm looking forward hearing from you.
Thanks
Sebastian

Comments

  • krikikriki Member, Moderator Posts: 9,118
    You have to create a new report that calls the real print report once for each invoice.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • ajhvdbajhvdb Member Posts: 672
    Look in my signature. We are using eDocprinter. In this you can break the jobs, but it's not free...
  • bastirbastir Member Posts: 27
    kriki wrote:
    You have to create a new report that calls the real print report once for each invoice.

    Thanks for this hint.
    I understand a little bit of CAL but don't know how to call a report from another one. Can you maybe give me some example code?

    This would be very helpfull.

    Thanks a lot.
    Sebastian
  • krikikriki Member, Moderator Posts: 9,118
    This code you put in the OnAfterGetRecord
    recMyRecord.RESET;
    recMyRecord.SETCURRENTKEY(...);
    recMyRecord.SETRANGE("Primary Key Field1","Primary Key Field1");
    recMyRecord.SETRANGE("Primary Key Field2","Primary Key Field2");
       ...
    REPORT.RUNMODAL(REPORT:"My Report",FALSE,TRUE,recMyRecord);
      // this runs the second report for each record to be printed
      // the 3rd parameter, you can also put to FALSE to use the printer in the printer selection table
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.