Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

To convert PDF to binary

Posted on by Microsoft Employee

Hello,

Can anyone suggest me how to convert reports generated in NAV 2009 as pdf to binary format?

Thanks

*This post is locked for comments

  • GwaindepyKudah Profile Picture
    GwaindepyKudah 57 on at
    RE: To convert PDF to binary

    Hi this sounds like a good idea, may you advice if its possible to extract the contents of the pdf from the blob and use them as email body? Word Layout are giving me some limitations

  • Suggested answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: To convert PDF to binary

    Hello Shweta,

    Could you speek more  why you convert pdf to binary.

    If your plan is storing pdf file in BLOB field (binary) then you can do easily.

    for that create InStream, OutStream, and after that use UPLOADINTOSTREAM.

    For more info visit UPLOADINTOSTREAM Function (File)

    You can also use BLOB.IMPORT....

    First try itself, Code something like:

    For Classic
         BLOB_Field.IMPORT(PDFFileName, FALSE);

    For RTC

    IF UPLOADINTOSTREAM('','','',PDFFileName,NVIStream) THEN BEGIN
        IF CALCFIELDS(BLOB_Field) THEN BEGIN
          BLOB_Field.CREATEOUTSTREAM(NVOStream);
          COPYSTREAM(NVOStream,NVIStream);
       END;
    END;

  • Suggested answer
    Rajasekhar@MS Profile Picture
    Rajasekhar@MS 5,567 on at
    RE: To convert PDF to binary

    Hi Shweta

    You can try the below link

    forum.mibuso.com/.../nav-2013r2-embedding-files-pdf-txt-etc-as-binaries-i-xml

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans