I want to print or preview a report made with crystal reports 4.6 by clicking on command button on a vb6 form. I want to use version 4.6 of crystal report (don't want to update). I use an access database (called mydb.mdb).
So I creat a crystal report (called myreport.rpt), a crystal report control ( called CrystalReport1) on the vb6 form and a command button with the associated code:
ame = Dir1.Path & "\myreport.rpt"
) = Dir1.Path & "\mydb.mdb"
dData = True
CrystalReport1.action = 0
I get error 20536 : "Unable to connect: incorrect log on parameters"
I tried to use these additional commands:
id = CrystalReport1.LogOnServer
dll", "access", "mydb", "Admin", "")
CrystalReport1.Connect = "dsn=odbc;uid=admin;pwd=;d
But none of these solve the problem. And I am not shure that the arguments I wrote are good.
I know this question is already asked on this website, but everytime, the solution is a link like http://support.businessobjects.com/library/kbase/articles/c???????.asp
and when I try to follow this link, I am redirected on another website : https://websmp205.sap-ag.de/~SAPIDP/002006825000000234912001E
Thanks in advance for your help.