AutoOrientPage Example for Visual Basic
Private Sub Command2_Click() Dim nRet As Long nRet = RasterDoc.AutoOrientPage(0) If nRet <> 0 Then MsgBox "Failure while auto orienting the current page" End IfEnd Sub