Help, please, you need to transfer data from ListBox (right on the screen with 1 student) and memo (With the description of this student) on the first form to the second form in the form of a table and print this table.
Screenshot of the program:

All data is loaded from text documents.
Details button code:
if (ListBox2->ItemIndex == -1) {exit;} ListBox2->ItemIndex = 0; if (ListBox2->Items->Strings[ListBox2->ItemIndex] == AnsiString("Васин А.В.")) { Memo3->Lines->Clear(); Memo3->Lines->LoadFromFile("texts/vasin.txt"); } if (ListBox2->Items->Strings[ListBox2->ItemIndex] == AnsiString("Иванов С.И")) { Memo3->Lines->Clear(); Memo3->Lines->LoadFromFile("texts/ivanov.txt"); } if (ListBox2->Items->Strings[ListBox2->ItemIndex] == AnsiString("Петров Д.П.")) { Memo3->Lines->Clear(); Memo3->Lines->LoadFromFile("texts/petrov.txt"); } if (ListBox2->Items->Strings[ListBox2->ItemIndex] == AnsiString("Сидоров В.С.")) { Memo3->Lines->Clear(); Memo3->Lines->LoadFromFile("texts/sidorov.txt"); } if (ListBox2->Items->Strings[ListBox2->ItemIndex] == AnsiString("Степанов А.С.")) { Memo3->Lines->Clear(); Memo3->Lines->LoadFromFile("texts/stepanov.txt"); }