Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Error while Converting excel to pdf in Crm 2015 plugin.

Posted on by 260

Hi,

I have a plugin code that creates an email. The plugin should attach pdf file. 

I call this plugin in request entity form if needed. I also have a download button that creates the request form for signing. The download button and the plugin uses the same c# code and same excel file.

My code uses the excel as a template and uses this excel to write infos about requests to the form. But my code does not really writes on excel, after uses this excel as template the c# code translates it to pdf file in windows/temp folder in crm application server.

So the download button gives me the request form as pdf. But the plugin doesn't. On server i got "document not saved. the document may be open or an error may have been encountered when saving" message and after that the code wants to really write to the excel template which i do not want that.

How can i solve this problem? I checked the permissins of the folders also but nothing changed.

How can i acheve this problem while using the plugin. The mail is created whitout attachments because of this problem.

6646.1.jpg

2437.2.JPG

7217.11111.JPG

22222.JPG

*This post is locked for comments

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans