Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Posted: 04 Jun 2015 at 7:03am
I have never seen it done. Of course when you drop a field into the detail of the report. A label is created with the field name. You may be able to so something inside of a command. But never had a reason to do so.
Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Posted: 04 Jun 2015 at 12:39pm
Word merge?!? Crystal Reports by-passes the Word merge process. I have taken the text from Word documents, pasted it into a text box. Added the fields the fields I needed. Added any parameters and I was done.
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 05 Jun 2015 at 3:50am
I do not know of a way to do this but I also am not clear on the value added here of this "label insert" vs. just typing in the field name. Each report will have a different data structure and if it doesn't then hardcoding the text (typing the name in) works the same as the process you are requesting. Also, quite frequently data column headers are not what you want to display to the end user but rather a less technical or agency-centric vocabulary.
What are we missing? If we understood that perhaps a different solution would present itself...
Because at runtime, the field name may be different in our application. The data source is created using a SQL stored procedure which concatenates the table name and the field value.
The list of fields is dynamic and modifiable by the end user. So when the report runs is the only time I know what the field name is.
And at a technical level it is not a field name, but because the data source is created using a stored procedure, CR thinks it is a field.
Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Posted: 05 Jun 2015 at 1:27pm
From what I recall Crystal does not do dynamic field naming. I seem to remember a similar question some years ago. I think building some sort of temp table that gets built at run time where the temp table field names are stable, you just have to plug in the values from your data source.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum