Home End User
New Blog Post: Email: Multi-Service

Cannot Assign tfieldlist to tstringlist

Hi,
I am migrating application from delphi 4 to delphi 10.4.We are using report builder in our application and template of reports are stored in database. When we are tring to open report giving this error "Cannot Assign Tfieldlist to Tstringlist" .When we look into the column of template and we have found that the error coming after addition of TppDBCalc object which is in TppSummaryBand of report as shown below.

object ppSummaryBand1: TppSummaryBand
mmBottomOffset = 0
mmHeight = 36513
mmPrintPosition = 0
object ppLabel7: TppLabel
UserName = 'Label7'
Alignment = taRightJustify
Caption = 'Nombre total de rapports transcrits : '
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Name = 'Arial'
Font.Size = 10
Font.Style = [fsBold]
Transparent = True
mmHeight = 4233
mmLeft = 794
mmTop = 11113
mmWidth = 61119
BandType = 7
end
object ppDBCalc1: TppDBCalc
UserName = 'DBCalc1'
Alignment = taRightJustify
DataField = 'COUNT(RT.NO_REQUETE)'
DataPipeline = plListeDemandeeMemoire
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack
Font.Name = 'Arial'
Font.Size = 10
Font.Style = [fsBold]
Transparent = True
mmHeight = 4233
mmLeft = 61913
mmTop = 11113
mmWidth = 18256
BandType = 7
end
end

Comments

  • Hi Rajeev,

    If you trace into the RB source, where is the error occurring? If you save this template to file and try to load it manually, do you get the same issue? If so, please put together a simple application that demonstrates this problem (perhaps with some sample data) and send it to us in .zip format so we can research what is happening.

    It sounds like your templates could be well over 20 years old and while we do our best to keep ReportBuilder backward compatible, this is quite a jump. Some of your templates may require a manual update or recreation.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.