Check this
C# Crystal Reports Dynamic Logon parameters[
^]
EDIT
---------
I'm an idiot.
Based on your code, you forgot to uncomment/comment the SetLogOnInfo lines.
report.Database.Tables.Item(1).SetLogOnInfo "", "", "admin", ""
Because report needs the database file to connect but in above uncommented line, those fields're empty. So I think you should comment the below line & uncomment the above line(which has db details).