crystal report viewer connection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Smiles

    #1

    crystal report viewer connection

    Hi there,

    thanks for help in advance.

    here is my case.

    i have form1, defines the selectionformul a of form2.crystalre portview

    form1:
    form2.crystalre portviewer1.sel ectionformla = strSelection
    form2.crystalre portviewer1.ref reshreport()
    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


  • Bernie Hunt

    #2
    Re: crystal report viewer connection

    Smiles,

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

    Bernie


    "Smiles" <noreply@norepl y.com> wrote in news:#fluEQGaGH A.1200
    @TK2MSFTNGP03.p hx.gbl:
    [color=blue]
    > Hi there,
    >
    > thanks for help in advance.
    >
    > here is my case.
    >
    > i have form1, defines the selectionformul a of form2.crystalre portview
    >
    > form1:
    > form2.crystalre portviewer1.sel ectionformla = strSelection
    > form2.crystalre portviewer1.ref reshreport()
    > 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
    >
    >
    >[/color]

    Comment

    Working...