Information générale
Catégorie:
Crystal Reports
Craig,
Will do on the email and thanks for the clarification on the two craxdrts.
I use the following:
oCryRpt = CREATEOBJECT("CrystalRuntime.Application")
ocryrpt.LogOnServerEx("p2sodbc.dll","HEMSENT","HEMSENT") &&SQL ODBC connection
oCryRpt.SetMatchLogOnInfo(1)
*Is it correct that this last line opens up a shared connection to the HEMSENT server/HEMSENT database to any report that calls this application object? Meaning I do not have to set the login for report and subreport databases?
orpt = oCryRpt.OpenReport("C:\projects\crystal reports\reports\wo.rpt")
odb = orpt.database()
lotables = odb.Tables()
*These last few commands should open up, through the application logon to the server, the database and tables associated with the report. Unfortunately, I get an empty object back for lodb, odb and lotables.
Again, I appreciate the assistance.
Regards,
Jim
>>Craig,
>>
>>You are right and much appreciated advice! VFP 8.0 did this automatically when I entered the type libraries. Man oh Man hours have gone by.... A timely book thanks for the effort.
>
>Thanks. I hope the book helps you.
>
>>
>>By the way, I believe the CRAXDRT listing is the 8.x stuff the CRAXDDRT is the 9.x stuff. This is so you can run both versions.
>
>Nope, that's not correct. CRAXDRT is the standard RDC. If you use any of the runtime design features, you also need CRAXDDRT.
>
>>
>>I have a few noted spelling and typos do I list those at Hentzenwerke?
>
>Email them to me privately.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement