Is there a better (more efficient) way of achieving the same results?
- Code: Select all
cWork = "c:\myfile.tif"
ThisForm.oGdViewer1.DisplayFromFile(cWork)
ThisForm.nTotalPages = oPage.oGdViewer1.NumPages
IF ThisForm.nTotalPages > 0
oPage.oGdViewer1.DisplayFrame(1)
ENDIF
IF ThisForm.nTotalPages > 1
ThisForm.oGdViewer1.DisplayFromFile(cWork)
oPage.oGdViewer2.DisplayFrame(2)
ENDIF
