当预览页面不连续显示并且缩放模式不是"适应窗体"时,设置预览页面显示的行数和列数,滑动鼠标滚轮向下直到页面底部,再向上滚,滚到一定程度页面就滚不动了,不能到顶。测试代码如下:
private void toolStripButton6_Click(object sender, EventArgs e)
{
cppcView.PreviewPane.Continuous = true;
cppcView.PreviewPane.PageLayout = C1.Win.C1Preview.PageLayoutEnum.Normal;
cppcView.PreviewPane.Cols = 1;
cppcView.PreviewPane.Rows = 1;
cppcView.PreviewPane.ZoomMode = C1.Win.C1Preview.ZoomModeEnum.WholePage;
}
private void toolStripButton5_Click(object sender, EventArgs e)
{
cppcView.PreviewPane.Continuous = true;
cppcView.PreviewPane.PageLayout = C1.Win.C1Preview.PageLayoutEnum.Custom;
cppcView.PreviewPane.Cols = 2;
cppcView.PreviewPane.Rows = 1;
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
cppcView.PreviewPane.Continuous = false;
cppcView.PreviewPane.PageLayout = C1.Win.C1Preview.PageLayoutEnum.Custom;
cppcView.PreviewPane.Cols = 2;
cppcView.PreviewPane.Rows = 2;
}
private void toolStripButton3_Click(object sender, EventArgs e)
{
cppcView.PreviewPane.Continuous = false;
cppcView.PreviewPane.PageLayout = C1.Win.C1Preview.PageLayoutEnum.Custom;
cppcView.PreviewPane.Cols = 4;
cppcView.PreviewPane.Rows = 2;
}
private void toolStripButton7_Click(object sender, EventArgs e)
{
cppcView.PreviewPane.Continuous = false;
cppcView.PreviewPane.PageLayout = C1.Win.C1Preview.PageLayoutEnum.Custom;
cppcView.PreviewPane.Cols = 4;
cppcView.PreviewPane.Rows = 3;
}
|