OnDemand Subreport CloseView doesn't work (VS2005)

I work with VS2005 and CR10.2 bundled in VS.

I try to close, by program, the Tab of an "OnDemand subreport" on the CR Viewer :
myViewer.ActiveViewIndex = 0 ' focus on the Main report
myViewer.CloseView(1)

There is no error, but the Tab of the Subreport is not closed ?
Is it the right syntax ?

Thanks for help !

[359 byte] By [GGus] at [2007-12-24]

Visual Studio

Site Classified