R
R
Rick132020-05-11 04:17:40
Delphi
Rick13, 2020-05-11 04:17:40

How to display the selected DBGRID row in Excel?

Delphi 7
5eb8a6626fcd7303128256.jpeg

There are DBGrid1 components. ADOQuery1,DataSource2. SQL code in ADOQuery1:
SELECT [Заказ наряд].[Дата обращения], Запчасти.Стоимость AS [Sum-Стоимость1], Услуги.Стоимость
FROM Услуги INNER JOIN (Запчасти INNER JOIN [Заказ наряд] ON Запчасти.Код = [Заказ наряд].[Код запчасти]) ON Услуги.Код = [Заказ наряд].[Код услуги];

How to display the selected DBGRID row in Excel?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hemul GM, 2020-05-11
@Rick13

Google "Delphi working with Excel". Reading string fields: ADOQuery1.Fields['field name'].AsString

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question