Access violation with TfrxDBDataset.UserName
Hi everybody,
This code works well with FR3.19
All FR variables are created dynamically.
With FR3.21 the event BeforePrint is never called.
With FR3.23 there's an access violation on
Who can explain me ?
Anybody has got the same phenomenon ?
Thank's a lot,
Xavier.
This code works well with FR3.19
All FR variables are created dynamically.
FormShow :
...
 if not Assigned(frxDBDataset1) then
  frxDBDataset1 := TfrxDBDataset.Create (Self);
 frxDBDataset1.UserName     := 'frxDBDataset1';
 frxDBDataset1.CloseDataSource := False;
 if not Assigned(frxReport1) then
  frxReport1 := TfrxReport.Create (Self);
 frxReport1.DotMatrixReport     := False;
 frxReport1.PreviewOptions.Buttons  := [pbZoom, pbTools, pbNavigator];
 frxReport1.PreviewOptions.Zoom   := 1;
 frxReport1.PrintOptions.Printer   := 'Default';
 frxReport1.ScriptLanguage      := 'PascalScript';
 frxReport1.OnAfterPrint       := frxReport1AfterPrint;
 frxReport1.OnBeforePrint      := frxReport1BeforePrint;
 frxReport1.OnAfterPrintReport    := frxReport1AfterPrintReport;
 frxReport1.Datasets.Add(frxDBDataset1);
...
With FR3.21 the event BeforePrint is never called.
With FR3.23 there's an access violation on
frxDBDataset1.UserName     := 'frxDBDataset1';
Who can explain me ?
Anybody has got the same phenomenon ?
Thank's a lot,
Xavier.
Comments
With FR3.21 and FR3.23 there's an access violation.