prashant786
asked on
I want to refresh data in crystal report from vb aplication
I want to refresh data in crystal report from vb aplication.
I am using MS Acess Database.
I had selected the option in crystal report option "refresh data on every print"
If I am giving discard saved data true from vb it gives the error.
Please guide me how to refresh the data from vb application.
I am using MS Acess Database.
I had selected the option in crystal report option "refresh data on every print"
If I am giving discard saved data true from vb it gives the error.
Please guide me how to refresh the data from vb application.
ASKER
There is no error
Old data is displayed. and it is not refreshed.
guide me how to refresh
Old data is displayed. and it is not refreshed.
guide me how to refresh
You said
>> If I am giving discard saved data true from vb it gives the error.
I don't think it takes a value
Try using before you open the report
crRpt.DiscardSavedData
mlmcc
>> If I am giving discard saved data true from vb it gives the error.
I don't think it takes a value
Try using before you open the report
crRpt.DiscardSavedData
mlmcc
What code are you using to display the reports?
mlmcc
mlmcc
ASKER
I am using ocx. Code is as below :
rep.destination=crpttowind ow
b=chr$(34) &text1.text & chr$(34)
d="{aa.kap}=" &b
rep.groupselectionformula = d
rep.action=1
If I am giving discard saved data then it is givin error :
unable to connect; incorrect log on parameters
So please solve my problem
rep.destination=crpttowind
b=chr$(34) &text1.text & chr$(34)
d="{aa.kap}=" &b
rep.groupselectionformula = d
rep.action=1
If I am giving discard saved data then it is givin error :
unable to connect; incorrect log on parameters
So please solve my problem
ASKER
Hellooo please answer me mlmcc
waiting for your answer
waiting for your answer
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What code are you using in VB to display the report?
mlmcc