Some Elaboration on Excel functions (OLE)

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: Some Elaboration on Excel functions (OLE)

Post by luisvasquezcl »

Puedes obtener los nombres de la siguiente forma:
oExcel:sheets( n ):Name
donde n debe ser un número desde 1 hasta la cantidad de hojas del libro
para conocer la cantidad de hojas del libro.
oExcel:sheets:count()
espero les sea de ayuda.
saludos cordiales,
Luis Vasquez
Tiger
Posts: 70
Joined: Mon Aug 31, 2015 11:28 am
Location: Taipei

Re: Some Elaboration on Excel functions (OLE)

Post by Tiger »

luisvasquezcl wrote:Puedes obtener los nombres de la siguiente forma:
oExcel:sheets( n ):Name
donde n debe ser un número desde 1 hasta la cantidad de hojas del libro
para conocer la cantidad de hojas del libro.
oExcel:sheets:count()
espero les sea de ayuda.
saludos cordiales,
Luis Vasquez

Hi Luis,

Sorry, I don't point out my question clearly. My question is as the picture below to set different font type and size in the excel "cell:B2". After several tried out, I found the solution to use the code like this ...

oSheet:Cells( alltrim(str(I+17)) , 6 ): Characters(Start:=1, Length:=34):Font:Size := 8
oSheet:Cells( alltrim(str(I+17)), 1 ): Characters(Start:=1, Length:=18):Font:Bold := .T.

Many thanks for your help.
Attachments
excel_test.jpg
excel_test.jpg (28.24 KiB) Viewed 3843 times
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Some Elaboration on Excel functions (OLE)

Post by Rathinagiri »

Cool!
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
serge_girard
Posts: 3165
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Some Elaboration on Excel functions (OLE)

Post by serge_girard »

Yes, nice XLS tip !

Serge
There's nothing you can do that can't be done...
Post Reply