Print report to different printers

omardomard Member Posts: 20
edited 2008-07-23 in NAV Tips & Tricks
Hi All

I need ideas on how to print the same report to two different printers. Basically I have a button, that when clicked I need to send the same report to multiple printers.

I would not like to create two objects numbers to use the Navision printer selections table, so if anyone has a better idea I would appreciate.

THANKS!
let's navigate!

Answers

  • krikikriki Member, Moderator Posts: 9,094
    You can put some code behind the button, that before calling the report, creates/modifies a record in table 78:"Printer Selection".
    This defines which printer to use by the report.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • omardomard Member Posts: 20
    great post kriki!!

    =D> and i have to add one more round of =D>

    worked wonderfully
    let's navigate!
  • krikikriki Member, Moderator Posts: 9,094
    Sounds like it is good for the Tips&Tricks forum!

    [Topic moved from Navision forum to Navision Tips & Tricks forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • ramesh.aynramesh.ayn Member Posts: 41
    Hi

    i need detailed info regarding this one, i understand that we can define user wise report ids in one table

    how it linked to the runtime when actually a report runs,how it selects dynamically?

    for one user if i want to print the same report in diff printers at a time
    is it possible?

    Thanks,
    Ramesh
  • krikikriki Member, Moderator Posts: 9,094
    The automatic selecting the printer has handled by function "FindPrinter" in codeunit 1.



    You need to run the report multiple times : once for each printer.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • ajhvdbajhvdb Member Posts: 672
    To give you an idea, here is a snippet of code to use :) : http://www.mibuso.com/forum/viewtopic.p ... highlight=

    Ps.
    Thinking about this. Maybe it's better to create a function in cu1 called setprinter(printername) and use the global var in function FindPrinter.
Sign In or Register to comment.