Free Support Forum - aspose.com

Best Practice of Storing Formatted Text Values for Slides

I want to design a database structure that stores the text values of a presentation.


My question is: Should I store the formatted text values as HTML text? to preserve the formatting


Any help would be appreciated

Hi Michael,


Thanks for inquiring Aspose.Slides.

I have observed the requirements shared by you and like to share that presentation text including text are not serializeble to byte arrays that can be stored or retrieved from database. You can export text to HTML and then save html in some form inside database. However, for some text the conversion from text to html and then html to text may not have same results as HTML is not fully supported. However, given the choices this is the only approach available. Other option is to use slide cloning feature and saving the presentation to individual slides. You can then save each presentation to byte array by saving first to Memory stream. The byte array can be stored and retrieved from database.y

Many Thanks,