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

Sat Feb 27, 2016 10:41 pm

Hello.

I have two question:
1.
What should I do to enabled ScrollBars (both) always?

2.
Can I move page programmatically ?
I would create function on ClickMouse to move size (if page is largest then screen)

TomaszF
 
Posts: 2
Joined: Sat Feb 27, 2016 10:34 pm

Sun Feb 28, 2016 4:08 pm

I can help you with topic 2)

Yes, You can use the methods goToNextPage(), goToPreviousPage(), goToPage(pageNumber).
What do You mean with "to move size..."?

Regards
Kai

tonschnoer
 
Posts: 2
Joined: Sat Feb 27, 2016 8:22 am

Sun Feb 28, 2016 5:20 pm

I'm sorry, it's mistake.

"I would create function on ClickMouse to move page (if page is largest then screen)" - it's correct.

So methods goToNextPage(), goToPreviousPage(), goToPage(pageNumber) are not usable in this case.

TomaszF
 
Posts: 2
Joined: Sat Feb 27, 2016 10:34 pm

Mon Feb 29, 2016 8:06 am

Hi tonschnoer and TomaszF,

Thanks tonschnoer’s answer.
TomaszF, for your first issue, sorry that there is no option to enabled ScrollBars (both) when the tool’s width and heigh are enough for the document.
For your second issue, you can use hand tool to move page, here is sample code for your reference:
Code: Select all
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (this.pdfDocumentViewer1.IsDocumentLoaded)
            {
                this.pdfDocumentViewer1.EnableHandTool();
            }
        }
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            if (this.pdfDocumentViewer1.IsDocumentLoaded)
            {
                this.pdfDocumentViewer1.EscapeHandTool();
            }
        }


Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Tue Mar 01, 2016 9:39 am

Hi,

Has your issue been resolved ?
Thanks for your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Return to Spire.PDFViewer