Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

How can I print or execute nav report through web services?

Posted on by 819

 

Hello

my problem is create an asp web page with a button ("print") that allows visualize Nav report or print.

 

For this,

1 / I created a simple unit code "Report.SaveAsHTML (50003, 'C: \ report.html)."

---> When I run the code unit, I have the HTML file. but when I run the code from the web I get the following        problem : "The method SAVEAS HTML () is deprecated".

2/ i created code unit to save report aspdf but it don't get the file.

i want to know if it's possible to create a URL to publish the report. or save the report in pdf or any other solution.

please help me.

 

Thank you.

 

*This post is locked for comments

  • Suggested answer
    Nick Haman Profile Picture
    Nick Haman on at
    Re: How can I print or execute nav report through web services?

    Thank you for the update and happy it is working. I will mark the post as Answered.

    Nick

  • Gabsi Mohamed Profile Picture
    Gabsi Mohamed 819 on at
    Re: How can I print or execute nav report through web services?

    M.Nick ,Thank You for your reply.

    I tried this code, is cool,

    the problem: the address is not found,  PDF is located in the temporary file.

    I change the address tmp by another physical, and in c #, I got the path and i get the report through web service, cool, thank you

  • Nick Haman Profile Picture
    Nick Haman on at
    Re: How can I print or execute nav report through web services?

    Gabsi, Thank you for posting on the Forum. Have you looked at the blog site where there is a Walkthrough sample of creating a .pdf file?

    blogs.msdn.com/.../9909863.aspx

    You should be able to create reports via Web Services, check out the above link which should help get you started.

    Nick

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans