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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How to send URL attachments to printer

(0) ShareShare
ReportReport
Posted on by 11
Hi All,
 
We have a case where we need to send URL attachments to a network printer.
This attachment is located in sharepoint.
 
When creating a memory stream, I am getting below error message.
 
I believe this is because the Sharepoint is blocked by our firewall.
Is there any way to access the same.
 
Regards,
Ajay K S
I have the same question (0)
  • Martin Dráb Profile Picture
    236,863 Most Valuable Professional on at
    How to send URL attachments to printer
    Consider using getting the file from SharePoint, putting the contents to DocumentContract class (Microsoft.Dynamics.AX.Framework.DocumentContract) and pass it to SrsReportRunPrinter::sendDocumentContractToDocumentRouter(). This will utilize the way how F&O print files - through the document routing agent, and you'll resolve authentication and such things already in F&O. You can find more details in Printing PDF Attachments in MSDyn365FO or How-to send PDF document to a printer from X++.
     
    By the way, your question is about F&O, but this forum is about D365 in general (i.e. also about other products such as Business Central or Sales). Please ask F&O-specific questions in F&O forums, such as the Finance forum.
  • Martin Dráb Profile Picture
    236,863 Most Valuable Professional on at
    How to send URL attachments to printer
    Moved from D365 general forum to the Finance forum. (Moderators just got this option.)

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

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

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 636

#3
Martin Dráb Profile Picture

Martin Dráb 553 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans