Skip to Content
0
Feb 01, 2011 at 10:08 PM

Buffer too small for string - Crystal Report for Vs2010

180 Views

Hello,

I have recently upgrade my VS2010 project to Crystal Report for Visual Studion 2010.

I have some reports that contains more than 512 characters in the Report Comments section.

When I try to do a RptDoc.SaveAs(vPath, false) the following error is raised:

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

This line SaveAs was working has expected with Crystal Report 2008. Any idea on why it is not working anymore.

Thank you.

Charles