Xlapp. Textrc [li_r li_c]='123' written into excel or error,
Code:
String ls_s, ls_t
Ls_s='123'
Xlapp. Textrc [li_r li_c]=ls_s
Xlapp. Textrc [li_r li_c]='123'
//xlapp. Entryrc [li_r li_c]='123'
Ls_t=xlapp. Textrc [li_r li_c]
Messagebox (' ', ls_t)
Also to show
While under pb classis can export,
CodePudding user response:
WPF that stuff is too slow, also is useless studied carefully, and help you UpCodePudding user response:
Why is no one understandCodePudding user response:
All code below
OLEObject xlapp
String as_filename
Long li_row
As_filename='c: \ test. XLS'
XlApp=Create OLEObject
//connected via ole excel
Li_row=xlApp. ConnectToNewObject (" TTF161. F1BookView ")
//uRegisterF1 ()
IF li_Row & lt; 0 Then
MessageBox (" prompt ", "cannot connect Formula One controls, please check whether the system has been installed or registered this control!" , StopSign!)
The Return - 1
END the IF
//xlApp. FontCharSet=0
XlApp. TextRC [1, 1]='a'
XlApp. TextRC [1, 2]='b'
XlApp. WriteEx (as_filename, 11)//generates excel file
XlApp. DisConnectObject ()
Destroy xlapp
return 1
CodePudding user response:
I have to find I send you a copy