Exemple #1
0
 private void RepPreview_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
 {
     if (e.KeyData == Keys.PageDown)
     {
         crv.ShowNextPage();
     }
     else if (e.KeyData == Keys.PageUp)
     {
         crv.ShowPreviousPage();
     }
     else if (e.KeyData == Keys.Multiply)
     {
         crv.Zoom(2);
     }
     else if (e.KeyData == Keys.Add)
     {
         crv.Zoom(ZoomLevel += 25);
     }
     else if (e.KeyData == Keys.Subtract)
     {
         crv.Zoom(ZoomLevel -= 25);
     }
     else if (e.KeyData == Keys.Escape)
     {
         this.Close();
     }
     else if (e.KeyData == Keys.Enter)
     {
         rpt.Print();
     }
 }
Exemple #2
0
 private void btnPrevPage_Click(object sender, System.EventArgs e)
 {
     reportViewer1.ShowPreviousPage();
 }