Author: Pixelot12345
How to use the Excel.Application in C++Builder. Target device is Win64.
Use the ComObj, call in CreateOleObject (“Excel.Application”).
Including ComObj is required.
In C++Builder it is below.
[crayon-6ab698422b329465231378/]
Import from CSV file to Excel file.
[crayon-6ab698422b338847275159/]
We will implement this process.
Prepare the TButton.
TButton is one in a simple form.
Next is the TButton OnClick event.
[crayon-6ab698422b33b203306433/]
Sheet name is “Sheet 1”.
Next we will create two methods.
[crayon-6ab698422b33e368265906/]
Read the file with TStringList.And, you write to the specified cell.
[crayon-6ab698422b340636556015/]
Write the imported CSV file to Excel.

