logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
spurgeon  
#1 Posted : Monday, July 16, 2018 10:43:07 AM(UTC)
spurgeon

Rank: Member

Groups: Registered
Joined: 2/2/2016(UTC)
Posts: 20

The PdfToolStripViewModes toolstrip has a mode where you can view two pages side-by-side with vertical scrolling. If you also select FitToPage in this mode, it always fits four pages in a 2x2 grid. How can I reproduce this programmatically with PdfViewer? I have tried every combination I can think of using PdfViewer.SizeMode, PdfViewer.TilesCount, and PdfViewer.ViewMode, but without success.

Code:
// only fits 2x1 grid of pages
pdfViewer1.TilesCount = 2;
pdfViewer1.SizeMode = SizeModes.FitToSize;
pdfViewer1.ViewMode = ViewModes.TilesVertical;

Edited by moderator Monday, July 16, 2018 9:59:39 PM(UTC)  | Reason: Not specified

Paul Rayman  
#2 Posted : Monday, July 16, 2018 10:02:16 PM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
You may found the source code of ToolStripViewModes here:
https://github.com/Patag...PdfToolStripViewModes.cs
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.