Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Printing in run-time problem Delphi XE5 rb 15.02

edited January 2014 in General
Hello!

I am working with the version of Delphi 2007 and R.B 15.02.
I have a routine to create reports at runtime and it works perfectly.

Instead, the same routine with Delphi XE5 is not running because the
connection requests with the default ADOConnection.

The error is given by invoking the CreateAutoSearchCriteria function.

ppFormato:=TppReport.Create(Nil);
ppFormato.Reset;
ppFormato.Template.DatabaseSettings.DataPipeline:=ppDBPipeLine;
ppFormato.Template.DatabaseSettings.NameField:='ItemName';
ppFormato.Template.DatabaseSettings.TemplateField:='Template';
ppFormato.Template.DatabaseSettings.Name:=stFormatName;
ppFormato.Template.LoadFromDatabase;
....
....
for I:=Low(fldNames) To High(fldNames) Do
Begin
ppFormato.CreateAutoSearchCriteria( ppFormato.DataPipeline.Name,
fldNames[I],
condition[I],
AssignValue(fldValues[I],false),
False);
End;

Thanks!

Comments

  • edited January 2014
    Hi Guillermo,

    This is likely due to the fact that ReportBuilder cannot find the
    ADOConnection object defined for the report. Check your datasettings to
    be sure the connections match. If the report is a template, you may
    need to take a look at the template definition as text to be sure the
    connection property is correct.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.