About Crystal Report's Viewer.CloseView(Index) Met
My Self Sanjeev. I developed 1 appl'n using Visual Basic 6.0 And Crystal Report 8.5. I used Crystal Report Viewer Control to View the report. By using the criewer.ViewReport() method i view the reports. Now i want to Close the View only. So I used CrViewer.CloseView(Index) Method. But in this Method Index is as integer type parameter. I give it as 1,-1,0 and also the ActiveIndex as an Index. But it gives error "Subscript Out Of Range". If i give it null then it show the error for "DataType Mismatch". It should not accept the string type variable or string.
So Please Help me to Solve this problem. What Should me the parameter for CrViewer.CloseViw(?????) method.