Printing in run-time problem Delphi XE5 rb 15.02
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!
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!
This discussion has been closed.
Comments
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com