Showing posts with label generating. Show all posts
Showing posts with label generating. Show all posts

Friday, July 1, 2016

Generating excel xls files

Here we generate excel files from php script. To begin we will need some main excel classes as following:
1. BIFFwriter.php (for writing BIFF (binary file format)
2. Format.php (for generating excel XF records)
3. OLEwriter.php (OLE stream for spreadsheet)
4. Parser.php (for parsing excel formula)
5. Workbook.php (for generating excel workbook)
6. Worksheet.php (for generating excel worksheet)

You may want to see some examples in which you can download with all the six files above. You can download them all here (48kb) !!.

There are also five example files included:
1. example1.php (creating first example in generating excel document and comments are also included)
2. example2.php (set and modify fonts and styles)
3. example3.php (set columns and rows)
4. example4.php (set page)
5. example5.php (apply formula)

Tuesday, June 28, 2016

Generating RTF Files cont

Instead of using RTFGen, we may also use another class namely rtfgenerator in which we can download from phpclasses.org or you can download it here (5kb)!!

After downloading, extract to your folder inside your web server and execute the index.html file and then write your sentences in the textarea provided and press the generate rtf button. That simple.

Monday, May 2, 2016

Generating RTF Files

If we want to generate rtf files or may want to generate reports based on frt files we may need working with rtfgenerator class in which we can download from www.phpclasses.com. To see or learn how it works you may take look at some examples of scripts in which include the rtfgenerator files.
You can download it here (21 kb) !!

there are 3 files of examples:
1. example1.php
2. example2.php
3. example3.php
and 3 other files of rtf generator:
1. frtf.php containing main class to generate rtf files
2. param.inc.php used to set configuration of the class
3. rtfkeywords.inc.php containing all the keywords defined by RTF Specification version 1.7