Hello Everyone,
Hope doing well,
I have the requirement, where i need to generate PDF file which display the items form SharePoint list 2013, list which currently on SharePoint online office 365.I tired first add solution with Farm solution it did not works also not allowed into online  office 365.As I am trying to use sandbox solution which only works online 365, but while deploying it I got the following error:
1. Unhanded exception was thrown by the sand boxed code wrapper’s Execute method in the partial trust app domain: An unexpected error has occurred.
While looking solution i got the limitation on Microsoft site as well others blogs which consist of,
1. Code in the process cannot read or write to the file system (except that it can read and execute assemblies in the global assembly cache).
https://msdn.microsoft.com/en-us/library/office/gg615454(v=office.14).aspx
2. No support for System.IO, Therefore you Cannot read/write to the file system.
Read more:Â http://www.sharepointdiary.com/2012/03/50-limitations-of-sharepoint-sandboxed-solutions.html#ixzz3as34bfgu
How could achieve the solution to generate PDF into Office 365 online SharePoint 2013? Could you please help me out with appropriate solution?
Your help Appreciate.
Note – On premise SharePoint 2013 it works fine but not online office 365.
Thanks
Sumit
You cannot include managed code in a sandbox solution deployed to Office 365. I would recommend creating a web service to do this. This could be called from a SharePoint 2013 Workflow using the Call HTTP Web Service action. For the PDF generation itself, I’ve used a library called iTextSharp in the past with success.