Posted 15 June 2023, 12:32 pm EST
The Save method on a PageReport can be passed a FileInfo object and the result is essentially the report serializing itself to XML into the file. Rather than saving to file I would like to write this information into our database so that custom reports are stored internally. Can this serialization process be redirected into some kind of variable that I can then save to the database? I see that the method can be passed an XmlWriter object, but that seems to imply that a whole new derived class will need to be written with the logic for translating the report into XML. I would just like to have it do whatever it does when saving to file, but redirect the output. Is that possible?