Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

OLEDB(ADO)->Next->Advanced Information->Connect Timeout)

$
0
0

In a button click we are downloading crystal report. Recently we are facing some issue due to slow internet connection and found report is showing error due to time out .

How can I increase the logon timeout in the below code?I can solve my issue , If I will give connection timeout more than 15.

Can anyone help me?I made changes in connection timeout from 15 to 0 (DATABASE->VERIFY DATABASE->OLEDB(ADO)->Next->Advanced Information->Connect Timeout)

and after saving also it is turning to 15 as default value.

code below

 crd.Load(Server.MapPath(reportname))
crd.SetDatabaseLogon("loginname", "pass", ServerNameForCrystalReport, "DB")
                crd.SetParameterValue(0, val1)
                crd.SetParameterValue(1, val2)
                crd.SetParameterValue(2, val3)
                crd.SetParameterValue(3, val4)
                crd.SetParameterValue(4, val5)
                crd.SetParameterValue(5, val6)
                crd.SetParameterValue(6, val7)
                crd.SetParameterValue(7, val8)
                crd.SetParameterValue(8, val9)
                crd.SetParameterValue(9, val10)
                Download(crd)


Viewing all articles
Browse latest Browse all 1507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>