Would this work? Store a large text string in a SQL server database table with the hopes of "tagging" a certain part of it with the name of a formula (stored from the RPT file) so that when the text string is displayed it shows the main string text characters plus the true value from the formula? This would be something like a mail-merge operation, using the value of a formula to fill parts of the text with a correct name. I tried putting the formula name in the body of the string (as shown below) but it didn't work.
I know that you can put a textbox on the report and paste a formula name into the stream of the textbox characters and it will properly display that value at runtime. But I was wondering how to do it with a value from the database. I also know that you can pass in new values to a formula from outside Crystal to make alternate values appear. But how can a formula be used as such in a mail-merge type capacity by using the value of the formula field on the report.
I have four reports that basically use the same main text string, but I need to display different company names based on other criteria. So I was hoping to find an easy way to save the main text once and just insert the formula value from each of the four reports into the same database string.
Example text: "Please make payment to the @FromCompanyName location before the end of the month."
I need the value of the formula @FromCompanyName to be displayed inside the text string when printing the report. Any suggestions would be helpful.
Gregoriw
I know that you can put a textbox on the report and paste a formula name into the stream of the textbox characters and it will properly display that value at runtime. But I was wondering how to do it with a value from the database. I also know that you can pass in new values to a formula from outside Crystal to make alternate values appear. But how can a formula be used as such in a mail-merge type capacity by using the value of the formula field on the report.
I have four reports that basically use the same main text string, but I need to display different company names based on other criteria. So I was hoping to find an easy way to save the main text once and just insert the formula value from each of the four reports into the same database string.
Example text: "Please make payment to the @FromCompanyName location before the end of the month."
I need the value of the formula @FromCompanyName to be displayed inside the text string when printing the report. Any suggestions would be helpful.
Gregoriw