Spire.PDFViewer is a powerful PDF Viewer component for .NET. It allows developers to load PDF document from stream, file and byte array.

Mon Jan 22, 2018 6:11 pm

Hi,

When using Spire.PDFViewer the first PDF is loaded, but once trying to load new PDF the first one stays in the viewer. We have tried disposing, setting the viewer to null, loading a new control via run time, and it still does it.

Is there a fix to this behavior?

support@atlas.us.com
 
Posts: 5
Joined: Thu Jun 30, 2016 10:55 pm

Tue Jan 23, 2018 6:28 am

Hello,

Thanks for your inquiry. I have noticed the issue when using LoadFromStream to load different files and our DEV team are investigating it. On the other hand, you could use LoadFromFile to view different files in a shared folder of your web application. Please refer to the below code snippet.
Code: Select all
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //The interval time of emptying caching, specified in seconds.
                this.PdfViewer1.CacheInterval = 1200;
                //caching time of an image, specified in seconds.
                this.PdfViewer1.CacheTime = 1000;
                //Cache the number of Image, default is 1000.
                this.PdfViewer1.CacheNumberImage = 1000;
                //The time of responding to event after stop scrolling, specified in milliseconds.default is 500.
                this.PdfViewer1.ScrollInterval = 300;
                //Zoom value of page, default is 1.
                this.PdfViewer1.ZoomFactor = 1;
                this.PdfViewer1.CustomErrorMessages = "Error information";
                this.PdfViewer1.ScrollBars = ScrollBars.None;

                this.PdfViewer1.LoadFromFile(@"files\test1.pdf");
 
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {

            this.PdfViewer1.LoadFromFile(@"files\test2.pdf");
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            this.PdfViewer1.LoadFromFile(@"files\test3.pdf"");
        }


Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Thu Jan 25, 2018 6:38 am

Hello,

Greeting from E-iceblue.
Is the solution I provided helpful to you?
Your feedback will be greatly appreciated.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Fri Jan 26, 2018 5:30 pm

Hey Simon,

Due to the nature of our application, we need it to display pdfs from a particular local path and not from the folder of the application. It was loading fine until the new spire version.

It would be helpful if you can provide us with an estimated date for it to be fixed and passed along.

Thanks,
Last edited by support@atlas.us.com on Mon Jan 29, 2018 4:46 pm, edited 1 time in total.

support@atlas.us.com
 
Posts: 5
Joined: Thu Jun 30, 2016 10:55 pm

Mon Jan 29, 2018 7:50 am

Hello,

Thanks for your feedback. Actually, the issue has been resolved by our DEV team. We will prepare the hotfix ASAP. Once it's available, we will inform you immediately.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Tue Feb 06, 2018 6:52 am

Hello,

The new version is available now. Welcome to download it.
http://www.e-iceblue.com/downloads/Temp ... .12.66.zip

Best regards,
Simon
E-icelbue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Fri Feb 09, 2018 7:28 am

Hello,

Greeting from E-iceblue.
Has the hotfix resolved your issue?
Your feedback will be greatly appreciated.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Sun Feb 11, 2018 8:18 am

Hello,

The Office version is available now. Welcome to download Spire.Office Platinum (DLL Only) Version:2.16.27.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Return to Spire.PDFViewer