Thank you for sharing your thoughts,
Since the GroupDocs.Viewer can render the docs of more than 50 different formats. While, every format has a native program to display or edit the relevant doc (like xls can be open in MS Excel). Therefore, if render/display the docs of different formats is a concern, it is inevitable for a successfull rendering engine to choose the most common formats for the output. That’s why GroupDocs.Viewer is rendering the docs in most common and generic formats like HTML and Image. But it doesn’t mean that the output might be disturbed. It is guaranteed by GroupDocs that the output would be 100% accurate.
As far as rendering a doc stream by the browser is concerned. It would be depended on what formats are supporting by the browser to display the files. Say as, if you want to display the PDF files, as this format is supported by many famous browsers like chrome, firefox etc. So that you can write stream by using the below C# code.
<pre class=“lang-cs prettyprint prettyprinted” style=“margin-top: 0px; margin-bottom: 1em; padding: 5px; border: 0px; font-size: 13px; width: auto; max-height: 600px; overflow: auto; font-family: Consolas, Menlo, Monaco, “Lucida Console”, “Liberation Mono”, “DejaVu Sans Mono”, “Bitstream Vera Sans Mono”, “Courier New”, monospace, sans-serif; background-color: rgb(239, 240, 241); color: rgb(57, 51, 24); word-wrap: normal;”><code style=“margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, “Lucida Console”, “Liberation Mono”, “DejaVu Sans Mono”, “Bitstream Vera Sans Mono”, “Courier New”, monospace, sans-serif; white-space: inherit;”> Response.ClearContent();
Response.ContentType = “application/pdf”;
Response.AddHeader(“Content-Disposition”, “inline; filename=” + docName);
If the browser wouldn’t support the format of the stream, it will ask to download the file.
Hope, it might be a closer answer to your question.We are looking forward to your feedback.