Skip to main content

Notifications

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
    Martin Dráb 230,900 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.)
  • Martin Dráb Profile Picture
    Martin Dráb 230,900 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.

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,074 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,900 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans