Logon Error when SetTableLocation with RAS SDK
I have a lot of Reports based on TTX files. As these don't work anymore in an 64 bit environment with CRVS2010 I tried to make an update program based on an replace_click sample in this newsgroup.
My program is 32 Bit (x86) on an Windows 7 with VS2010. Cr2010 SP1 (126.96.36.199) 32 and 64 Bit is installed.
After creating an XML-file I want to set the new table location with SetTableLocation method:
I always get this Error: Logon Failed. Error in File xxx.rpt: Unable to connect: incorrect log on parameters.
I tested this with two super easy reports created with Crystal Reports 10:
First: 1 Table (based on ttx) with only one String filed. no subreports.
Second: Same report based on an XML File
With Crystal Reports 10 I can update the Report with the created XML-File.
public convert(NewFilename as String) Dim lCR As New CrystalDecisions.CrystalReports.Engine.ReportDocument lCR = New CrystalDecisions.CrystalReports.Engine.ReportDocument Try lCR.Load(NewFileName) Dim rcd As ISCDReportClientDocument rcd = lCR.ReportClientDocument For i As Integer = 0 To rcd.SubreportController.GetSubreportNames.Count - 1 ConvertReportTables(NewFileName, rcd, rcd.SubreportController.GetSubreportNames.Item(i), True) Next ConvertReportTables(NewFileName, rcd, "", False) end sub
Edited by: Jürgen Bauer on Jun 7, 2011 1:55 PM