huckfinn19
Programmer
Hi, I'm using a C++ crystal report viewer to view my reports...
At first, with CR 8.5 I was using file DSN as my database source for ".csv" source files. To change the source of my files programmaticaly in my viewer, I just had to call :
m_Report->Database->Tables->GetItem(i+1)->
SetTableLocation(NewLocation.AllocSysString(),"",""
NewLocation being something like :
c:\wrk\newsource.csv
and everything worked fine.
Now, I am using CR 9 and I'd like to do the same with the "Database File" type in Crystal Report. Still with .csv source files. I thought the function call would be the same, but its not working. I also tried
m_Report->Database->Tables->GetItem(i+1)->
SetTableLocation(NewPath.AllocSysString
() ,NewLocation.AllocSysString(),""
ans it still isn't working... Any ideas?
Thanks
Simon
At first, with CR 8.5 I was using file DSN as my database source for ".csv" source files. To change the source of my files programmaticaly in my viewer, I just had to call :
m_Report->Database->Tables->GetItem(i+1)->
SetTableLocation(NewLocation.AllocSysString(),"",""
NewLocation being something like :
c:\wrk\newsource.csv
and everything worked fine.
Now, I am using CR 9 and I'd like to do the same with the "Database File" type in Crystal Report. Still with .csv source files. I thought the function call would be the same, but its not working. I also tried
m_Report->Database->Tables->GetItem(i+1)->
SetTableLocation(NewPath.AllocSysString
() ,NewLocation.AllocSysString(),""
ans it still isn't working... Any ideas?
Thanks
Simon