1670867 - Error: Buffer too small for string when adding a SummaryInfo string

SAP Knowledge Base Article - Public

1670867 - Error: Buffer too small for string when adding a SummaryInfo string

Symptom

  • Using Visual Studio 2010 and Crystal Reports for Visual Studio 2010 (CRVS2010)
  • When adding a  string of over 480 characters to the Summary Info field the following error is thrown:

Buffer too small for string or missing null byte.atCrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.SaveAs in :line 0atCrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.SaveAsin :line 0at CrystalDecisions.CrystalReports.Engine.ReportDocument.SaveAsin :line 0

Environment

  • Crystal Reports for Visual Studio 2010
  • Visual Studio 2010

Reproducing the Issue

  •  To set the Comments field use the following code:
rptClientDoc.ModifySummaryInfo(sumInfo);

 

Resolution

  • The issue is resolved in Service Pack 2 for Crystal Reports for Visual Studio 2010
  • Reference: ADAPT01587508

Keywords

CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 Crystal Reports for .NET Framework 4.0 crforvs 13 information summary info bufer , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio