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-68cc61a52346e123732625/]

Import from CSV file to Excel file.

[crayon-68cc61a523475939431662/]

We will implement this process.

Prepare the TButton.

TButton is one in a simple form.

 

Next is the TButton OnClick event.

[crayon-68cc61a523477044060897/]

 

Sheet name is “Sheet 1”.

Next we will create two methods.

[crayon-68cc61a523478583847366/]

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

 

[crayon-68cc61a52347f215571495/]

Write the imported CSV file to Excel.

 

 

 

Exit mobile version