Home > Back-end >  C builder how to convert TXT into excel???????
C builder how to convert TXT into excel???????

Time:10-10

Dear brother, as shown in the topic, see have what good solution yet?

CodePudding user response:

His top at first!!!!!!!!!!!!!!!!

CodePudding user response:

Cb there are form a control can be realized, you look for

CodePudding user response:

I got all controls did not find!!

CodePudding user response:

TMS.Com ponent. Pack components in the AdvStringGrid can keep the form into the XLS file,

CodePudding user response:

The Variant ExcelApp Workbook1, Sheet1, WorkSheets;
ExcelApp=the Variant: : CreateObject (" Excel. Application ");
ExcelApp. OlePropertySet (" Visible ", (Variant), false);
ExcelApp. OlePropertyGet (" workbooks "). OleFunction (" Add ");
Workbook1=ExcelApp. OlePropertyGet (" ActiveWorkBook ");
WorkSheets=Workbook1. OlePropertyGet (" WorkSheets ");
Sheet1=WorkSheets. OleFunction (" Add ");
Sheet1=WorkSheets. OlePropertyGet (" Item ", 1);
Sheet1. OlePropertyGet (" Activate ");
Sheet1. OlePropertySet (" Name ", "file information");

The following code will not give, this is to use ole function can invoke the excel, TXT, needless to say, you also can use! Anyway, I don't know how can directly implement control
  • Related