Printer Notification

bernajacbernajac Member Posts: 20
edited 2003-11-20 in Navision Attain
I have some code that calls a report and depending on if the report fiscally prints it must update the Sales Header. Is there a way to tell if a report has printed successfully? I have setup a local printer that is not connected to my pc but when I use this printer to print report, it does not come up with an error although the report is not printed and then the Sales Header is updated to “Printed” but there was no hard copy.

Does anyone know how to test if the printer actually printed or not?

Comments

  • eromeineromein Member Posts: 589
    I don't think it's possible. Unless you ask the user so confirm it has been printed. This is also done when printing a test page to a printer. But if it's a nice solution?.......
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • Jeff_FierceJeff_Fierce Member Posts: 32
    edited 2003-11-20
    If using Windoze (NT, 2000, XP) it can be configured that the printer gives a feedback about success or failure of a printjob even if it's a network printer or another user's printer: Choose Printers, File->(Properties of) Printserver, advanced options, checkbox "message, if remote jobs were printed" [Retranslation German-English, may read diffrent.] May this help?
  • Timo_LässerTimo_Lässer Member Posts: 481
    Due to the Windows printer spooler it is not possible to check wether the report has been printed. :cry:
    Navision put the print job to the Windows printer spooler and if the printer spooler has accepted the job, Navision think it has been printed.
    If the printer is not connected to the PC or work in offline mode, Navision will not be informed about that.

    As eromein has written, the only solution is to show a confirm dialog where the user must confirm the real printout. :roll:
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
Sign In or Register to comment.