Files
harbour-core/harbour/extras/hbxlsxml/tests/example3.prg
Viktor Szakats e33c57fc35 2012-09-26 01:24 UTC+0200 Viktor Szakats (harbour syenar.net)
* contrib/hbnf/aading.prg
  * contrib/hbnf/aemaxlen.prg
  * contrib/hbnf/aeminlen.prg
  * contrib/hbnf/amedian.prg
  * contrib/hbnf/any2any.prg
  * contrib/hbnf/at2.prg
  * contrib/hbnf/blink.prg
  * contrib/hbnf/calendar.prg
  * contrib/hbnf/clrsel.prg
  * contrib/hbnf/d2e.prg
  * contrib/hbnf/dectobin.prg
  * contrib/hbnf/dfile.prg
  * contrib/hbnf/diskfunc.prg
  * contrib/hbnf/doc/en/dosver.txt
  * contrib/hbnf/doc/en/proper.txt
  * contrib/hbnf/doc/en/setdate.txt
  * contrib/hbnf/doc/en/settime.txt
  * contrib/hbnf/dosver.prg
  * contrib/hbnf/e2d.prg
  * contrib/hbnf/findith.prg
  * contrib/hbnf/gcd.prg
  * contrib/hbnf/hex2dec.prg
  * contrib/hbnf/invclr.prg
  * contrib/hbnf/isshare.prg
  * contrib/hbnf/linked.prg
  * contrib/hbnf/menu1.prg
  * contrib/hbnf/metaph.prg
  * contrib/hbnf/miltime.prg
  * contrib/hbnf/mouse1.prg
  * contrib/hbnf/mouse2.prg
  * contrib/hbnf/netpv.prg
  * contrib/hbnf/ntow.prg
  * contrib/hbnf/nwlstat.prg
  * contrib/hbnf/nwsem.prg
  * contrib/hbnf/nwuid.prg
  * contrib/hbnf/pending.prg
  * contrib/hbnf/pickday.prg
  * contrib/hbnf/prtesc.prg
  * contrib/hbnf/rand1.prg
  * contrib/hbnf/savesets.prg
  * contrib/hbnf/scancode.prg
  * contrib/hbnf/setdate.prg
  * contrib/hbnf/settime.prg
  * contrib/hbnf/sleep.prg
  * contrib/hbnf/sysmem.prg
  * contrib/hbnf/tempfile.prg
  * contrib/hbnf/vertmenu.prg
  * contrib/hbnf/vidmode.prg
  * contrib/hbnf/wda.prg
  * contrib/hbnf/workdays.prg
  * contrib/hbnf/woy.prg
  * contrib/hbnf/xbox.prg
  * doc/codebloc.txt
  * extras/hbxlsxml/tests/example.prg
  * extras/hbxlsxml/tests/example2.prg
  * extras/hbxlsxml/tests/example3.prg
  * extras/httpsrv/uhttpd.prg
  * website/samples/codebloc.prg.html
  * website/samples/testbrw.prg.html
  * website/samples/testcgi.prg.html
    * more cleanup, formatting
2012-09-25 23:28:53 +00:00

85 lines
3.1 KiB
Plaintext

/*
* $Id$
*/
/*
* Harbour Project source code:
*
* Copyright 2011 Fausto Di Creddo Trautwein, ftwein@yahoo.com.br
* www - http://www.xharbour.org http://harbour-project.org
*
* Thanks TO Robert F Greer, PHP original version
* http://sourceforge.net/projects/excelwriterxml/
*
* This program is free software; you can redistribute it AND/OR modify
* it under the terms of the GNU General PUBLIC License as published by
* the Free Software Foundation; either version 2, OR( at your option )
* any later version.
*
* This program is distributed IN the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General PUBLIC License FOR more details.
*
* You should have received a copy of the GNU General PUBLIC License
* along WITH this software; see the file COPYING. IF NOT, write TO
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA( OR visit the web site http://www.gnu.org/ ).
*
* As a special exception, the Harbour Project gives permission FOR
* additional uses of the text contained IN its release of Harbour.
*
* The exception is that, IF you link the Harbour libraries WITH other
* files TO produce an executable, this does NOT by itself cause the
* resulting executable TO be covered by the GNU General PUBLIC License.
* Your use of that executable is IN no way restricted on account of
* linking the Harbour library code into it.
*
* This exception does NOT however invalidate any other reasons why
* the executable file might be covered by the GNU General PUBLIC License.
*
* This exception applies only TO the code released by the Harbour
* Project under the name Harbour. IF you copy code FROM other
* Harbour Project OR Free Software Foundation releases into a copy of
* Harbour, as the General PUBLIC License permits, the exception does
* NOT apply TO the code that you add IN this way. TO avoid misleading
* anyone as TO the status of such modified files, you must delete
* this exception notice FROM them.
*
* IF you write modifications of your own FOR Harbour, it is your choice
* whether TO permit this exception TO apply TO your modifications.
* IF you DO NOT wish that, delete this exception notice.
*
*/
/*----------------------------------------------------------------------*/
FUNCTION Main()
LOCAL xml, sheet1, format4
xml:= ExcelWriterXML():New('my file.xml')
sheet1 = xml:addSheet('Plan 1')
format4 = xml:addStyle('my style')
format4:setFontSize(20)
format4:setFontColor('yellow')
format4:bgColor('blue')
sheet1:columnWidth(1,150)
sheet1:columnWidth(2,150)
sheet1:columnWidth(3,150)
sheet1:writeString(2,3,'celula 2_3',format4)
sheet1:writeString(2,2,'celula 2_2',format4)
sheet1:writeString(2,1,'celula 2_1',format4)
sheet1:writeString(1,1,'celula 1_1',format4)
//sheet1:writeString(1,2,'celula 1_2',format4)
sheet1:writeString(1,3,'celula 1_3',format4)
sheet1:cellMerge(1,1,1,0)
xml:writeData('example3.xml')
RETURN NIL
/*----------------------------------------------------------------------*/