Save Image and Load into PDF

I am trying to save a chart as an image and load it in a pdf. I call chart.SaveAsImage("test.jpg") but when I try chart.GetStream() it says object not set to a reference. Any clue to why this is happening? 

Thanks

1 Reply

DV Divya Venkatesan Syncfusion Team May 10, 2018 11:56 AM UTC

Hi Caleb, 
 
Thanks for contacting Syncfusion support. 
 
We suspect that the issue is occurred due access permission in photo albums. So, could you please include permission for accessing photo albums in your application. This can be done by adding following code in info.plist file in iOS project. 
 
Code snippet: 
<dict>    
    <key>NSPhotoLibraryUsageDescription</key>   
    <string>This app uses photos</string>   
…..   
….   
</dict> 
 
Please let us know if you are still facing any issue in this. 
 
Regards, 
Divya Venkatesan 
 


Loader.
Up arrow icon