hi;
i design a crystal report outside visual basic 6. what i did is just calling the crystal report filename. how can i change the source database of my crystal reports in runtime. im using microsoft sql server. the two database had the same table structure.
thanksWhich version of CR are you using?
If it is CR9 then
cr.Database.LogOnServer "p2ssql.dll", "Server", "Database", "UserName,"Password"
Showing posts with label crystal. Show all posts
Showing posts with label crystal. Show all posts
Sunday, March 11, 2012
Thursday, March 8, 2012
Connecting to Access2000 database at runtime from VB
Hi,
I want to connect to Crystal reports from VB.I am using CR ver 8.5 The database should be set at runtime instead of design time so that where ever I place my application the report should work from that directory (it could be d:\ or e:\ or N:\). The path should not be hardcoded in the report where we give the set location path. plssss help me out, this is very urgent
venkyHi Venky,
See if this will help:
http://www.dev-archive.com/forum/showthread.php?t=337289|||strDBPath = App.Path & "\CTS.mdb"
Set conRep = conAPP.OpenReport(App.Path & "\reports\PCCost.rpt", 1)
Set crxDatafiles = conRep.Database.Tables
crxDatafiles(1).SetLogOnInfo (strDBPath)
but still i am getting the error "File could not be found" "PCMonAmtQ" at file location "CTS.mdb"
pls let me know what is the error
thanks in advance
venky|||Hmmmm, that's a strange error message. It seems like it is looking for a file called "PCMonAmtQ". Could that be associated with your db?
I wish I could be of more help, but I am at a lose here...
Keep me posted =)
I want to connect to Crystal reports from VB.I am using CR ver 8.5 The database should be set at runtime instead of design time so that where ever I place my application the report should work from that directory (it could be d:\ or e:\ or N:\). The path should not be hardcoded in the report where we give the set location path. plssss help me out, this is very urgent
venkyHi Venky,
See if this will help:
http://www.dev-archive.com/forum/showthread.php?t=337289|||strDBPath = App.Path & "\CTS.mdb"
Set conRep = conAPP.OpenReport(App.Path & "\reports\PCCost.rpt", 1)
Set crxDatafiles = conRep.Database.Tables
crxDatafiles(1).SetLogOnInfo (strDBPath)
but still i am getting the error "File could not be found" "PCMonAmtQ" at file location "CTS.mdb"
pls let me know what is the error
thanks in advance
venky|||Hmmmm, that's a strange error message. It seems like it is looking for a file called "PCMonAmtQ". Could that be associated with your db?
I wish I could be of more help, but I am at a lose here...
Keep me posted =)
Wednesday, March 7, 2012
Connecting to a different stored procedure at runtime
Hello..
I am using Crystal Reports 10. Am running the report through some asp pages. The report is tied to a stored procedure at design time. Can I make the report connect to a different stored procedure at runtime? Both these stored procs have the same output in terms of columns. They differ only in the data.
Thanks,
ManishTry this
In your Application Use
CR.Database.tables(0)="SP Name"
I am using Crystal Reports 10. Am running the report through some asp pages. The report is tied to a stored procedure at design time. Can I make the report connect to a different stored procedure at runtime? Both these stored procs have the same output in terms of columns. They differ only in the data.
Thanks,
ManishTry this
In your Application Use
CR.Database.tables(0)="SP Name"
Sunday, February 19, 2012
Connecting crdb_p2bbde.dll to Crystal Rpts v10
Our company just upgraded to Crystal Rpts v10 and I need to connect to a Paradox database. Crystal's online help saids to connect BDE paradox driver crdb_p2bbde.dll using a 3rd party software. Has anyone done this, thanks in advance.I'm having a similar issue. Back in March I upgraded some obscure CR8.5 reports that utilize both dBase and Paradox tables to CR10. No problem.
Yesterday I revisit these reports, and I repeatedly encounter "cannot load crdb_p2bbde.dll" errors. The dll is right where its supposed to be, in \Program Files\Common Files\Crystal Decisions\2.5\bin, where it has always been.
Where on Crystal's site did you see something that recommended a "third party software"?|||Hi,
I don't know if this will help but we had a similar problem with the advantage database and crdb_p2sads.dll, the problem was there was a file missing in the windows/system32 folder (Msvcp60.dll). Depending on your operating system this one may not get installed.
Hope this helps..
Daryl..
Yesterday I revisit these reports, and I repeatedly encounter "cannot load crdb_p2bbde.dll" errors. The dll is right where its supposed to be, in \Program Files\Common Files\Crystal Decisions\2.5\bin, where it has always been.
Where on Crystal's site did you see something that recommended a "third party software"?|||Hi,
I don't know if this will help but we had a similar problem with the advantage database and crdb_p2sads.dll, the problem was there was a file missing in the windows/system32 folder (Msvcp60.dll). Depending on your operating system this one may not get installed.
Hope this helps..
Daryl..
Subscribe to:
Posts (Atom)