TAdvGridPrintSettingsDialog

Hello



I have problem with TAdvGridPrintSettingsDialog



The execute in IDE works.



But when i run the dialog in my application i get

Access violation



After that



The execute in IDE has lost many data



HELP!!!!!



Robban

I have tested runtime use of TAdvGridPrintSettingsDialog and I cannot see any problem here.
Are you using the latest version and if so, do you have step by step information (+ information on what version of Delphi you use etc...) how we can reproduce this problem here?

I use Delphi XE3 and AdvGrid 7.4.2.0



If i make the most simpleapp , same problem happens



Robban

unit Unit1;



interface



uses

Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,

Vcl.Controls, Vcl.Forms, Vcl.Dialogs, asgprint, asgprev, Vcl.Grids, AdvObj, BaseGrid, AdvGrid,

Vcl.ComCtrls, Vcl.ToolWin;



type

TForm1 = class(TForm)

    AdvStringGrid1: TAdvStringGrid;

    AdvPreviewDialog1: TAdvPreviewDialog;

    AdvGridPrintSettingsDialog1: TAdvGridPrintSettingsDialog;

    ToolBar1: TToolBar;

    ToolButton1: TToolButton;

    procedure ToolButton1Click(Sender: TObject);

private

    { Private declarations }

public

    { Public declarations }

end;



var

Form1: TForm1;



implementation



{$R *.dfm}



procedure TForm1.ToolButton1Click(Sender: TObject);

begin

AdvGridPrintSettingsDialog1.Execute;

end;



end.

I tested also example asg16

Same problem

I can only suspect you do not have a clean install.
I especially retested this here once more in XE3 and this works without any issue. Moreover, this dialog was not changed for the last few versions and not a single other user reported such problem.
I'd suggest to search your hard disk for duplicated of ASGPRINT.* and delete ALL old version files and also review your library path to ensure it does not longer point to old versions.

I reinstalled and then it worked



Thank you



Robban