Topic: Помощь 2 с проектом для Новичка

Пожалуйста помогите мне с проектом.

Как передать статические переменные в диалоговое окно отчета (исключая базу данных)
Изображение вместе с проектом.

Post's attachments

Attachment icon prj2.zip 457.01 kb, 62 downloads since 2023-08-21 

2 (edited by Новичок 2023-08-21 14:18:12)

Re: Помощь 2 с проектом для Новичка

Фото из проекта

http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&item=9801&download=0

Post's attachments

Attachment icon 112.jpg 143.85 kb, 21 downloads since 2023-08-21 

Re: Помощь 2 с проектом для Новичка

Кажется это не выполнимо
https://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gif

Re: Помощь 2 с проектом для Новичка

Новичок wrote:

Кажется это не выполнимо
https://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gif

скрипт отчета
<переменная>

procedure DialogPage1OnActivate(Sender: TfrxComponent);
begin
  Edit1.text := <FIO>;
  Edit2.text := <SHOP>;
  Edit3.text := <SIGIN>;      
end;

   
создаем переменные для отчета

procedure Form1_Button2_OnClick (Sender: TObject; var Cancel: boolean);
var
fio,shop,sigin:string;
begin
  test := TIniFile.Create(ExtractFilePath(Application.ExeName) + 'set.pas');

  Form1.frxReport.Variables.Clear;
  Form1.frxReport.Variables[' ' + 'Components'] := Null;
  fio := test.ReadString('Form1', 'Edit1', '');
  Form1.frxReport.Variables['FIO'] := ''''+fio+'''';
  shop := test.ReadString('Form1', 'Edit2', '');
  Form1.frxReport.Variables['SHOP'] := ''''+shop+'''';
  sigin := application.user.username;
  Form1.frxReport.Variables['SIGIN'] := ''''+sigin+'''';
end;
Post's attachments

Attachment icon test.rar 127.51 kb, 73 downloads since 2023-08-21 

5 (edited by pavlenko.vladimir.v 2023-08-21 19:47:54)

Re: Помощь 2 с проектом для Новичка

Новичок wrote:

Кажется это не выполнимо
https://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gifhttps://san2.ru/smiles/sorry.gif

http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&amp;item=9805&amp;download=0

Post's attachments

Attachment icon Без имени.png 181.32 kb, 17 downloads since 2023-08-21 

6 (edited by Новичок 2023-08-21 21:05:26)

Re: Помощь 2 с проектом для Новичка

скрипт отчета
<переменная>

procedure DialogPage1OnActivate(Sender: TfrxComponent);
begin
  Edit1.text := <FIO>;
  Edit2.text := <SHOP>;
  Edit3.text := <SIGIN>;      
end;

   
создаем переменные для отчета

procedure Form1_Button2_OnClick (Sender: TObject; var Cancel: boolean);
var
fio,shop,sigin:string;
begin
  test := TIniFile.Create(ExtractFilePath(Application.ExeName) + 'set.pas');

  Form1.frxReport.Variables.Clear;
  Form1.frxReport.Variables[' ' + 'Components'] := Null;
  fio := test.ReadString('Form1', 'Edit1', '');
  Form1.frxReport.Variables['FIO'] := ''''+fio+'''';
  shop := test.ReadString('Form1', 'Edit2', '');
  Form1.frxReport.Variables['SHOP'] := ''''+shop+'''';
  sigin := application.user.username;
  Form1.frxReport.Variables['SIGIN'] := ''''+sigin+'''';
end;



http://myvisualdatabase.com/forum/img/avatars/98415.jpg
Владимир

Вы как всегда меня выручаете
Огромное спасибо ВАМ
https://san2.ru/smiles/thank-you.gif https://san2.ru/smiles/thank-you.gif https://san2.ru/smiles/thank-you.gif


У меня все работает, еще раз огромное спасибо.