My requirment is that i want to convert base64 string to pdf in dynamics 365 f&o and want to print that pdf file on user screen. Again! Base64 to pdf not pdf to base64.
Thanks,
Layan Jweihan Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future. You can do this bytickingthe box "Does this answer your question"
Suggested answer
Martin Dráb230,458Most Valuable Professional
on at
I'll assume that you have a string containing contents of a PDF file encoded with Base64. If not, then your question doesn't make sense.
There are several ways how to convert a Base64 string to an X++ container or .NET byte array. For example, you can use base64str2con() method.
This thread is just about How to Convert Base64 to PDF through X++, but let me give you a hint for your next step, i.e. sending to a printer. You will find an example in How-to send PDF document to a printer from X++.
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.