Skip to Content

How do I populate a Formula Field?

I have a BASIC program that contains some Crystal Reports and I’m getting ready to add some more. Since all of the new reports use the same fields in the SQL database I would like to create one report and change the report title to match the data being retrieved by the LINQ query. For example: one report might be titled “AFL Systems Report” containing the “AFL System information” and another might be titled “PAF System Report” containing the “PAF System information.” On the report I created a Formula field named “SpecialReportTitle”. I placed the field on the report, but how do populate it?

I have the following code in the Main form which is called from a menu. CRV references the form containing the Report Viewer.

With CRV

.ReportData = arlReportData

Dim strTEMP As String = String.Format("{0}\Reports\{1}.rpt", My.Application.Info.DirectoryPath, strReportName)

.ReportName = strTEMP

.ShowDialog()

.Dispose()

End With

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 01 at 06:07 PM

    Added SDK tag to the question and not sure if it helps, but found the following post on LINQ:

    https://blogs.sap.com/2010/10/22/using-linq-with-the-crystal-reports-sdks/

    Add comment
    10|10000 characters needed characters exceeded