Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Use the Excel.Application in C++Builder(bcc64)[JAPAN]

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-6a80eeee9997f834178175/]

Import from CSV file to Excel file.

[crayon-6a80eeee9998a767160046/]

We will implement this process.

Prepare the TButton.

TButton is one in a simple form.

 

Next is the TButton OnClick event.

[crayon-6a80eeee9998b502175195/]

 

Sheet name is “Sheet 1”.

Next we will create two methods.

[crayon-6a80eeee9998d473296477/]

Read the file with TStringList.And, you write to the specified cell.

 

[crayon-6a80eeee9998f490561323/]

Write the imported CSV file to Excel.

 

 

 

Exit mobile version