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-6768509db831e009592723/]

Import from CSV file to Excel file.

[crayon-6768509db8324571701494/]

We will implement this process.

Prepare the TButton.

TButton is one in a simple form.

 

Next is the TButton OnClick event.

[crayon-6768509db8326535256094/]

 

Sheet name is “Sheet 1”.

Next we will create two methods.

[crayon-6768509db8327362627928/]

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

 

[crayon-6768509db8329355076978/]

Write the imported CSV file to Excel.

 

 

 

Exit mobile version