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, ...
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
  • Martin Dráb Profile Picture
    241,641 Most Valuable Professional on at
    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
    241,641 Most Valuable Professional on at
    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 265 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 215

#3
Subra Profile Picture

Subra 177 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans