Thursday, March 8, 2012

Crystal Report Doubt

Dear All,

i am visual basic Programmer.But new to crystal report . I coded like below

report1.Formulas(1) = "compadd2='" & (PockAdd2) & "'" 'Place
report1.Formulas(2) = "compadd3='" & (PockAdd3) & "'" 'City
report1.Formulas(3) = "strtitle='" & (strtitle) & "'" 'Title
report1.RetrieveDataFiles
report1.Action = True

Which Shows an error "Invalid File name", While Executing the line "Report1.RetrieveDataFiles"

Have any solution for this problem.

Pls let me know

Regards

Abdul VahidTry the next :
1.- Click on Menu / Database / Verify Database
and / or
2.- Include file definition before preview report
.
Report1.DataFiles(0) = SomePath & "\Somefile.Mdb"
Report1.DataFiles(1) = SomePath1 & "\Somefile1.Mdb"

.

No comments:

Post a Comment