As I'm showing lots of different PDF's in multiple tabs there is a problem if the user starts scrolling or waits for a while – the different PDF’s content get mixed as there is a session state cache with only one PDF, the last loaded..or the first – whatever.
I have tried to disable caching / paging in code by doing this:
this.PdfDocumentViewer1.CacheInterval = 0; // 1200;
this.PdfDocumentViewer1.CacheTime = 0; // 1000;
this.PdfDocumentViewer1.CacheNumberImage = 0; // 1000;
this.PdfDocumentViewer1.CacheNumberStream = 0;
this.PdfDocumentViewer1.CacheStreamInterval = 1;
this.PdfDocumentViewer1.CacheStreamTime = 1;
this.PdfDocumentViewer1.ScrollInterval = 300;
I can by the way not find any documentation for the property ”ScrollInterval”.
Now even through this seems to work there is a new problem – after about a minute the pages opens an alert box informing “Page request fails, it may have been released stream”
How can I show the full PDF document and avoid paging. It would be fine to show the document without any scrollbars at all.