i'm loading the document (see attached file) in my web application.
When i write the document to the output stream an save it in the webbrowser the logo in the header has a very bad resolution.
Do you have any idea why this happens?
Best regards,
Hubert
- Code: Select all
// Load the document
byte[] data = ...loaded from database where template is stored
Document document = new Document();
using (MemoryStream ms = new MemoryStream(data))
{
document.LoadFromStream(ms, FileFormat.Auto);
}
// write it to stream
using (MemoryStream ms = new MemoryStream())
{
document.SaveToStream(ms, FileFormat.Docx);
// write stream to Page response
}