I have been searching for a way to convert word/excel byte array from sql server to a pdf file and then I want to show it to the view using <object>
tag.
But I cant find any proper solution to this problem online because almost of them use non-free packages etc.
Does anybody know a way how to do it in c# without using other libraries ? If there is no way to do this please recommend me any package that is free and simple because I just want to use it for this purpose.
Refering to this question here I could use https://docs.google.com/gview?url=myDocUrl
or https://view.officeapps.live.com/op/embed.aspx?src=
but I dont know how to make them work with files saved in database as byte arrays and how to test them locally in visual studio.
If anybody knows how to use them with byte arrays please let me know as well.
Thanks in advance.