I have created a console app with Word and Excel sample. The Word sample does generate a good output because it doesn’t load external resources into the generated preview. The Excel sample generates a wrong output because it does include external resources in the generated image.
To get this sample working you have to put the files of the TestDocuments folder into c:\temp. This is important. If you choose another folder it won’t work because the Excel and Word sample documents are referring to c:\temp.
To have consistency between the Word and Excel implementation it would be nice if both implement the IResourceLoadingCallback interface. Another option could be to add a filter option to LoadDataFilterOptions. For example LoadDataFilterOptions.ExternalResources which then can be excluded with (LoadDataFilterOptions.All & ~LoadDataFilterOptions.ExternalResources). AsposeSSRFFix.zip (659.5 KB)