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

Announcements

No record found.

News and Announcements icon
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
    303,362 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 509 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 375

#3
Adis Profile Picture

Adis 268 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans