web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to determine if a report will be sent to a printer?

(0) ShareShare
ReportReport
Posted on by 5

Hi!

I have a request from a customer, basically I have to handle 2 situations on a report. This report is a custom report with a .rdlc fromat which was created with the ForNav Report Designer Tool (v.6.0.0.2068, on client).


The Customers request if the report has to be printed by a printer, then i cannot use colours on the document , otherwise we mark it as an electronic invoice and we have to colour some of the content.
My problem would be at this point is that I cannot find a generic event with the right parameters that would determine wheter the report will be sent to a printer or not.

My main target for these events would've been "codeunit 44 ReportManagement" but I cannot really think of any way to make this work. My best guess qould've been the OnMergeDocument event, so I could run the same report with a global boolean variable that decides if i need to colour the report or not based on the choosen ReportAction, and after that I can overwrite the DocumentStream (picture below) with my newly generated report, but as I understand it correctly, this only works with word layouts. 

pastedimage1656512474191v1.png

My setup: BC18 latest version, OnPrem
                 ForNav Report Designer: v.6.0.0.2068

Thanks for your advices in advance,
Tomi

I have the same question (0)
  • Suggested answer
    MahGah Profile Picture
    15,529 on at

    Hi

    I am not a developer and this will not answer your question. But my question is if they have ForNav why they do not utilize Direct Printer function and then right there they can define if print is color or not. This way even if report is in color it will print black/white. 

    www.fornav.com/.../

  • Suggested answer
    YUN ZHU Profile Picture
    95,331 Super User 2025 Season 2 on at

    Hi, Is it possible to change the way of thinking and let users choose whether to print to a printer or an electronic invoice before printing?

    So you may need to create two different layouts.
    Below is a simple example.

    https://yzhums.com/25943/

    Hope this helps.

    Thanks.

    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans