Skip to content

Cannot access a closed Stream. - Multi page snippits #6

@stephenhendry

Description

@stephenhendry

I have found a bug with multipage documents that contain snippets. Once you go over one page you then get the error:

Cannot access a closed Stream.

To reproduce this change GetModel() in PdfController.cs to

        private DemonstrationModel GetModel()
        {
            return new DemonstrationModel
            {
                People = new List<string> { "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", "Alice", "Bob", "Charlie", }
            };
        }

Then go to /Pdf/ControllerlessPdfWithLayout.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions