Skip to Content
0

How do I populate a Formula Field?

Apr 27 at 03:05 PM

36

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Vitaly Izmaylov
May 01 at 06:07 PM
0

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/

Share
10 |10000 characters needed characters left characters exceeded