I have been struggling with display a bitmap of scanned invoices. Some are 8.5 by 11, others are 8.5 by 14. Using the code below when I call oBmp:oVScroll:GoBottom() it does not go all the way to the bottom of an 8.5 by 14 document. However if I click on the scrollbar it goes all the way to the bottom of the page. I would like to bring up the window with the bitmap and scroll all the way to the bottom (usualy where the amount owed appears) without having to click. Is this possible? Thanks.
Function BmpView( cFile,cTitle )
Local oBmp := nil
Local oWin := nil
Local nDeskTopHeight := 1080
Local nScrollBarWidth := 35
Default cTitle := "View Bitmap"
Begin Sequence
Define Window oWin From 0,0 to 10,20 Title cTitle
@ 0,0 Image oBmp Filename cFile Of oWin Size 0,0 Pixel Scroll
Activate Window oWin On Init ( oWin:Move( 0,0,oBmp:nWidth + nScrollBarWidth, Min( oBmp:nHeight,nDesktopHeight ) ),oBmp:AdjClient() )
oBmp:oVScroll:GoBottom()
oBmp:oVScroll:Refresh()
End Sequence
Return oWinThanks,
Byron Hopp
Matrix Computer Services
Byron Hopp
Matrix Computer Services