# Print the report only once

**URL:** <https://www.dynamicsuser.net/t/print-the-report-only-once/53715>\
**Category:** Technical Forum\
**Created:** [July 4, 2014, 1:41pm UTC](https://www.dynamicsuser.net/t/print-the-report-only-once/53715 "2014-07-04T13:41:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hareesh](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@Hareesh](https://www.dynamicsuser.net/u/Hareesh)\
**Post date:** [July 4, 2014, 1:41pm UTC](https://www.dynamicsuser.net/t/print-the-report-only-once/53715/1 "2014-07-04T13:41:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mohana\_cse06](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@mohana\_cse06](https://www.dynamicsuser.net/u/mohana_cse06)\
**Post date:** [July 4, 2014, 2:58pm UTC](https://www.dynamicsuser.net/t/print-the-report-only-once/53715/2 "2014-07-04T14:58:49Z")

</div>

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](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…

---

<div class="post-metadata">

**Author:** ![Hareesh](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@Hareesh](https://www.dynamicsuser.net/u/Hareesh)\
**Post date:** [July 8, 2014, 11:05am UTC](https://www.dynamicsuser.net/t/print-the-report-only-once/53715/3 "2014-07-08T11:05:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![George\_Love](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@George\_Love](https://www.dynamicsuser.net/u/George_Love)\
**Post date:** [July 8, 2014, 4:13pm UTC](https://www.dynamicsuser.net/t/print-the-report-only-once/53715/4 "2014-07-08T16:13:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Savatage](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Savatage](https://www.dynamicsuser.net/u/Savatage)\
**Post date:** [July 8, 2014, 5:42pm UTC](https://www.dynamicsuser.net/t/print-the-report-only-once/53715/5 "2014-07-08T17:42:42Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Hareesh](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@Hareesh](https://www.dynamicsuser.net/u/Hareesh)\
**Post date:** [July 9, 2014, 12:12pm UTC](https://www.dynamicsuser.net/t/print-the-report-only-once/53715/6 "2014-07-09T12:12:16Z")

</div>

Hi All,

---

<div class="post-metadata">

**Author:** ![Hareesh](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@Hareesh](https://www.dynamicsuser.net/u/Hareesh)\
**Post date:** [July 9, 2014, 12:25pm UTC](https://www.dynamicsuser.net/t/print-the-report-only-once/53715/7 "2014-07-09T12:25:36Z")

</div>

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
