purrepirre
Programmer
I am using CR 8.5
I'm trying to change the database my reports are using from my local SQLServer test-database to the SQLServer at my customer.
In a best case senario this could be done dynamicly in code
The code i have tried so far (see below) seems to do nothing, no error but the reports still use the same db as before.
CODE
///////////////////////////////////
/////////////////////////////
I am not using the RDC-designer, would that change anything?
(at this point I would prefer to keep on not using the designer)
I am also using a stored procedure as my only datasource
Thankful for any Help
I'm trying to change the database my reports are using from my local SQLServer test-database to the SQLServer at my customer.
In a best case senario this could be done dynamicly in code
The code i have tried so far (see below) seems to do nothing, no error but the reports still use the same db as before.
CODE
///////////////////////////////////
Code:
Dim CRReport As CRAXDRT.Report
Dim CRapp As CRAXDDRT.Application
Dim param As CRAXDDRT.ParameterFieldDefinition
Dim crTable As CRAXDRT.DatabaseTable
Set CRapp = New CRAXDDRT.Application
Set CRReport = CRapp.OpenReport(REPORT_PATH & "\Notes.rpt", 1)
CRReport.Database.Tables.Item(1).SetLogOnInfo "<Server Name>", "<DB_Name>", "<DBUser Name>", "<Passw>"
I am not using the RDC-designer, would that change anything?
(at this point I would prefer to keep on not using the designer)
I am also using a stored procedure as my only datasource
Thankful for any Help