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

Access Violation - Set DataSetting

edited June 2006 in DADE
RB 10.03

Hi,

I have a strange behavior when at runtime when I close TppDesigner Form and
I navigated on Data Page Form Designer and I perform second time next code
at runtime, before to reopen Form Designer.
begin
try
//Clear Previos Report and Data
FppREPORTEuro.Template.New;
FppREPORTEuro.FreeModules;

//Load Report
FppREPORTEuro.Template.Format:= ftBinary;
FppREPORTEuro.Template.LoadFromStream(FMemStream);

//Set DataSetting

{ACCESS VIOLATION AFTER I CLOSE FORM TPPDESIGNER AND I PERFORM NEXT
CODE.
IF I DON'T GO IN DATA PAGE OF FORM DESIGNER IT WORK FINE}

FppDESIGNEur.DataSettings.AllowEditSQL:= True;
FppDESIGNEur.DataSettings.CollationType:= ctASCII;
FppDESIGNEur.DataSettings.DatabaseType:= dtInterBase;
FppDESIGNEur.DataSettings.GuidCollationType:= gcString;
FppDESIGNEur.DataSettings.IsCaseSensitive:= True;
FppDESIGNEur.DataSettings.SessionType:= 'FIBSession';
FppDESIGNEur.DataSettings.SQLType:= sqSQL2;
FppDESIGNEur.DataSettings.UseDataDictionary:= False;
FppDESIGNEur.DataSettings.DatabaseName:= 'FBEurDataBase'; }

{END ACCESS VIOLATION }

FppREPORTEuro.AutoStop:= False;
FppREPORTEuro.PrinterSetup.DocumentName:= FBDataREPNOME.AsString;
FppREPORTEuro.ArchiveFileName:=
GetFileNameStampe(FppREPORTEuro.PrinterSetup.DocumentName);
FppREPORTEuro.OutlineSettings.CreatePageNodes:= True;
FppREPORTEuro.OutlineSettings.Enabled:= False;
FppREPORTEuro.OutlineSettings.Visible:= False;
FppREPORTEuro.PreviewFormSettings.ZoomSetting:= zsPageWidth;

Comments

This discussion has been closed.