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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Unable to receive the attachemnt

(1) ShareShare
ReportReport
Posted on by 1,893

Dear All,

I have developed the code for save the report in pdf format.

...pdf created and it saved on automatically c:\temp....

Also I have used the functionality to send this attachment to concern person. email functionality is not working here. so i have not receive any mail.

Note: ye existing order sheet ka pdf nahi create kar reha hai...ye aaj tak jitne order sheet bane hai...sabka pdf bana de reha hai...pdf ka size bhi 8.50 mb tak ho reha hai..

manish

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Binesh Profile Picture
    7,885 on at

    Filter your data as per page you filter before saving report in pdf format, and pass filter record to report.

    Like:

    RecVar.Reset;

    RecVar.SETRANGE("No.",Docno);

    IF RecVar.FINDFIRST THEN BEGIN

       ReportVariable.SETTABLEVIEW(RecVar);

       IF NOT ReportVariable.SAVEASPDF(path) THEN

           ERROR('pdf not created');

    ......

    .....

    ...

    END;

    ------------------

    For Mail, you have to setup SMTP Mail page.

    Also

  • manish.yadav Profile Picture
    1,893 on at

    done, problem resolved.

    please close this thread.

    manish

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans