Hi all,
I’m new to Navision. I’m working on a report of Nav 2009 R2. I would like to know, how can I make a report to print only once. Next time when the end user tries to print the report, it should throw an error message. How this could be achieved. Please guide me. Thanks in advance
Regards,
Hareesh
You can read this blog to log the report usage?
http://blogs.msdn.com/b/nav/archive/2011/06/23/how-to-log-report-usage.aspx
and you can search each time while running the report whether there is already an record for the report and show error…
Hi Mohana,
Thanks for the reply. Actually I don’t want to create a new table for this. Is there any other way where I can write the code inside the report only?
Thanks in advance…
Regards,
Hareesh
Another option would be to add a counter field to the primary record in your report (if it doesn’t already have one), and then increment the counter each time the report runs. Take a look at the “No. Printed” field in most of the document header tables, and see related Invoice reports to learn how they increment this counter.
I’m always wary about this type of change. Make sure you include a way to turn this limitation off.
What if they is a paper jam or someone spills a cup of coffee on the report…then what?
Hi All,
Thanks for the suggestions. I did it by creating a boolean field in user setup table and then by using that field along with “No. Printed” counter.
Thanks & Regards,
Hareesh