diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/RunExamples.cs b/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/RunExamples.cs index 36837ec16..b195a84f6 100644 --- a/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/RunExamples.cs +++ b/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/RunExamples.cs @@ -51,7 +51,7 @@ static void Main() RetrieveAndPrintDocumentAttachments.Run(); RetrieveAndSaveDocumentAttachments.Run(); - //RenderDocumentAttachments.Run(); + RenderDocumentAttachments.Run(); #endregion diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp.NET6/RunExamples.cs b/Examples/GroupDocs.Viewer.Examples.CSharp.NET6/RunExamples.cs index 2d0ae822c..a30790c37 100644 --- a/Examples/GroupDocs.Viewer.Examples.CSharp.NET6/RunExamples.cs +++ b/Examples/GroupDocs.Viewer.Examples.CSharp.NET6/RunExamples.cs @@ -49,7 +49,7 @@ public static void Main(string[] args) RetrieveAndPrintDocumentAttachments.Run(); RetrieveAndSaveDocumentAttachments.Run(); - //RenderDocumentAttachments.Run(); + RenderDocumentAttachments.Run(); #endregion diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp/BasicUsage/ProcessingAttachments/RenderDocumentAttachments.cs b/Examples/GroupDocs.Viewer.Examples.CSharp/BasicUsage/ProcessingAttachments/RenderDocumentAttachments.cs index 5ddc991a7..8c8e69a35 100644 --- a/Examples/GroupDocs.Viewer.Examples.CSharp/BasicUsage/ProcessingAttachments/RenderDocumentAttachments.cs +++ b/Examples/GroupDocs.Viewer.Examples.CSharp/BasicUsage/ProcessingAttachments/RenderDocumentAttachments.cs @@ -22,6 +22,7 @@ public static void Run() { MemoryStream attachmentStream = new MemoryStream(); viewer.SaveAttachment(attachment, attachmentStream); + attachmentStream.Position = 0; RenderAttachment(attachment, attachmentStream, outputDirectory); }