Is there a way to get the field names in the crystal report programmatically?

I have great reports. I need a list of "displayed" column names, not the actual fields (which I know how to get). Is there any way to get this information programmatically? I need to get them so that the end user can decide which columns can be deleted. I use the crystal report 8.5. Thanks

+4
source share
1 answer

It may be worth it. First export the report definition (File β†’ Export β†’ Export Report β†’ Format: report definition). This should pop up a text file with pretty little information about the report, including all the data fields that are referenced. You can write a simple script to parse the file and spit out all of these fields.

I have never tried this before, so your mileage may vary. What you need to think about is what you mean by β€œdisplayed” fields. Fields cannot be directly displayed in the report, but can be used to calculate the formulas or summaries that are displayed. You need to think about this, as well as how your specific reports are written when you write your script.

+1
source

Source: https://habr.com/ru/post/1394447/


All Articles