I am trying to render a map to a memorystream to be passed later on with aspose.words to be mailmerged into a document. However, I can’t find anything about this so far as it seems I can only render to specific output files like bmp, png, svg. Is there a way to save the render to a memorystream?
Hi, @taltal045
Well, of course. Please consider the below code.
using (var stream = new MemoryStream())
{
// render in stream
var path = AbstractPath.FromStream(stream);
map.Render(path, Renderers.Png);
}
Also, we have processed your consulting request, please check by this link.
Best Regards.