以下程序是本人在报表的画面中的一段程序代码,你可以参考看看 <br>procedure T????????.ApplicationEvents1Message(var Msg: tagMSG;<br> var Handled: Boolean);<br>Var i: SmallInt;<br>begin<br> //为了让鼠标能控制报表上下页<br> if Msg.message = WM_MOUSEWHEEL then<br> begin<br> Msg.message := WM_KEYDOWN;<br> Msg.lParam := 0;<br> i := HiWord(Msg.wParam) ;<br> if i > 0 then<br> Begin<br> Msg.wParam := VK_UP;<br> VisualReport1.PreviousPage;<br> Edit1.Text := IntToStr(VisualReport1.PageNumber);<br><br> End else<br> Begin<br> Msg.wParam := VK_DOWN;<br> VisualReport1.NextPage;<br> Edit1.Text := IntToStr(VisualReport1.PageNumber);<br> End; <br> Handled := False;<br> end;<br><br>end;<br>