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



  • Suggested answer
    Frank Bruemmer Profile Picture
    354 on at
    RE: Local printing question

    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.

  • André Arnaud de Calavon Profile Picture
    293,245 Super User 2025 Season 1 on at
    RE: Local printing question

    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,927 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans