Home All Groups Group Topic Archive Search About

crystal report viewer connection

Author
25 Apr 2006 12:30 PM
Smiles
Hi there,

thanks for help in advance.

here is my case.

i have form1, defines the selectionformula of form2.crystalreportview

form1:
form2.crystalreportviewer1.selectionformla = strSelection
form2.crystalreportviewer1.refreshreport()
form2.show()
me.close()


form2:
have nothing coded, but just a reportviewer.
with odbc connection to a mdb file.

after closing form2, by clicking on the window form close_button,
but, the connection is here. (mdb showing an ldb)

does anyone have the solution to close the data connection,
after closing the form2.

Thanks.


Smiles

Author
1 May 2006 4:52 PM
Bernie Hunt
Smiles,

Did you try manually closing the connection in the form2_Closed event
handler?

Bernie


"Smiles" <nore***@noreply.com> wrote in news:#fluEQGaGHA.1200
@TK2MSFTNGP03.phx.gbl:

Show quoteHide quote
> Hi there,
>
> thanks for help in advance.
>
> here is my case.
>
> i have form1, defines the selectionformula of form2.crystalreportview
>
> form1:
> form2.crystalreportviewer1.selectionformla = strSelection
> form2.crystalreportviewer1.refreshreport()
> form2.show()
> me.close()
>
>
> form2:
> have nothing coded, but just a reportviewer.
> with odbc connection to a mdb file.
>
> after closing form2, by clicking on the window form close_button,
> but, the connection is here. (mdb showing an ldb)
>
> does anyone have the solution to close the data connection,
> after closing the form2.
>
> Thanks.
>
>
> Smiles
>
>
>