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 :
Finance | Project Operations, Human Resources, ...
Answered

Local printing question

(0) ShareShare
ReportReport
Posted on by 55

Hello Community,

I'm aware that DRA is used to access network printers. But is it possible to print (non-interactively - to a fixed printer - no dialog) from a user session to a local (usb) printer ?

I tried this code below to print on what is my local printer name, but D365 says it can't find it. 

public static void main(Args _args)
{
SrsReportRunController controller = new SrsReportRunController();
SRSPrintDestinationSettings printSettings;

// set report name
controller.parmReportName(ssrsReportStr(LedgerBalanceSheet,Report));

// get print settings from contract
printSettings = controller.parmReportContract().parmPrintSettings();

// set printer as the destination
printSettings.printMediumType(SRSPrintMediumType::Printer);
printSettings.printerName("Canon TR8500 series"); // specify your printer name
printSettings.printLandscape(true); // print in landscape orientation
printSettings.numberOfCopies(1); // print 2 copies
// printSettings.setPaperTray(1); // print to paper tray with index = 1

printSettings.collate(true); // collate printed copies

// suppress the parameter dialog to send directly to printer
controller.parmShowDialog(false);

// start operation
controller.startOperation();

Best regards



I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    Hi Darrell,

    As Dynamics 365 is a cloud solution where the print jobs are executed on Azure, the application is not aware of local printers. For that purpose, you need to use the Document Routing Agent.

  • Suggested answer
    Frank Bruemmer Profile Picture
    354 on at

    Sorry, but local printing is not really an option. The only way to print locally is to print to the screen first and then to a local printer.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans