Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CRViewer.CloseView( ) Doesn't Work??!!

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
Hi guys,
when I try and use the CRViewer.CloseView() in my vb code to close teh cr viewer on my form, it says I need an index. So, since there is only one cr viewre, I figure its either 0 or 1, but both give me an error that they're out of range!

How am I supposed to use this part of the crviewer??!!

Thanks,
Jack
 
It clearly doesn't work. At least, not as the documentation implies. The index begins at 1.

This doesn't work either, even though the property does get set to 1:

CRViewer1.CloseView (CRViewer1.ActiveViewIndex)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top