View Issue Details

IDProjectCategoryView StatusLast Update
04831User patchesStatisticspublic2012-06-21 14:16
ReporterIngrimmsch Assigned To 
PrioritynormalSeverityminor 
Status confirmedResolutionopen 
Product Version1.90 
Target VersionFixed in Version 
Summary04831: Powerpoint Export
Description

I want to program a Powerpoint Export in the Statistic section.

I want to use the free PHP Class PHPPowerpoint: http://phppowerpoint.codeplex.com/

The plan is to modify the statistics.php to make a new radio button and the statistics_function.php where i implement the Powerpoint export. under /admin/classes will be a new folder /PHPPowerpoint with the PHPPowerpoint classes.

I think that are all files i need to modify. If i see during the programming process that i need more files to modify, i will inform you as soon as possible

The Export should be equal to the PDF-Export only in Powerpoint.

If you need more Infos feel free to ask

TagsNo tags attached.
Complete LimeSurvey version number (& build)9561

Activities

c_schmitz

c_schmitz

2010-12-22 20:28

administrator   ~13820

Always base your changes on the limesurvey_dev branch in Subversion:

https://limesurvey.svn.sourceforge.net/svnroot/limesurvey/source/limesurvey_dev

If you attach a patch please create the patch with your subversion client.

Ingrimmsch

Ingrimmsch

2010-12-23 10:36

reporter   ~13824

ok i take this code if i got a working version and implement my code in this. I havent a subversion client. If you prefer anything what is free i can use this

c_schmitz

c_schmitz

2010-12-23 10:40

administrator   ~13825

Last edited: 2010-12-23 10:40

View 2 revisions

Start here:

http://docs.limesurvey.org/tiki-index.php?page=Accessing+the+source+code&structure=LimeSurvey+development

Ingrimmsch

Ingrimmsch

2010-12-23 10:57

reporter   ~13827

ok i let you know if i get my work done

Ingrimmsch

Ingrimmsch

2011-02-21 12:41

reporter   ~14258

Hi,
i have a question about the statistics_function.php

There is a switch that i dont know how to activate it.

The Beginning is:

//check if aggregated results should be shown
elseif (isset($showaggregateddata) && $showaggregateddata == 1)
{
if(!isset($showheadline) || $showheadline != false)
{
if($qtype == "5" || $qtype == "A")
{
switch($outputType)
{
case 'xls':

                                        $headXLS = array();
                                        $headXLS[] = array($statlang->gT("Answer"),$statlang->gT("Count"),$statlang->gT("Percentage"),$statlang->gT("Sum"));

                                        ++$xlsRow;
                                        $sheet->write($xlsRow,0,$statlang->gT("Answer"));
                                        $sheet->write($xlsRow,1,$statlang->gT("Count"));
                                        $sheet->write($xlsRow,2,$statlang->gT("Percentage"));
                                        $sheet->write($xlsRow,3,$statlang->gT("Sum"));

                                        break;
                                    case 'pdf':

                                        $headPDF = array();
                                        $headPDF[] = array($statlang->gT("Answer"),$statlang->gT("Count"),$statlang->gT("Percentage"),$statlang->gT("Sum"));

                                        break;

What type of survey questions and results i must have to jump in this switch?

c_schmitz

c_schmitz

2011-03-28 02:24

administrator   ~14579

($qtype == "5" || $qtype == "A") are 5 Point Choice and Array 5 Point Choice
What is the status on your patch?

c_schmitz

c_schmitz

2011-04-17 16:26

administrator   ~14836

Ingrimmsch?

Ingrimmsch

Ingrimmsch

2011-05-05 14:16

reporter   ~14930

Hi, i finished the patch.

There are some cases which i dont know for what they are... so i made there new powerpoint sites with a text like "Das ist die Nr. 5"

If somebody get such a page plz notify me. If possible with a table dump from the survey.

to use the powerpoint export your webserver

requires

PHP version 5.2 or higher
PHP extension php_zip enabled
PHP extension php_xml enabled
PHP extension php_gd2 enabled (if not compiled in)

and limesurvey need write rules on the admin folder

Ingrimmsch

Ingrimmsch

2011-05-05 14:18

reporter  

pptExport2.patch (596,995 bytes)
Ingrimmsch

Ingrimmsch

2011-05-05 14:18

reporter   ~14931

Sry missed somehting in the first patch plz delete the first

Issue History

Date Modified Username Field Change
2010-12-22 12:34 Ingrimmsch New Issue
2010-12-22 20:28 c_schmitz Note Added: 13820
2010-12-22 20:28 c_schmitz Assigned To => c_schmitz
2010-12-22 20:28 c_schmitz Status new => feedback
2010-12-23 10:36 Ingrimmsch Note Added: 13824
2010-12-23 10:36 Ingrimmsch Status feedback => assigned
2010-12-23 10:40 c_schmitz Note Added: 13825
2010-12-23 10:40 c_schmitz Note Edited: 13825 View Revisions
2010-12-23 10:57 Ingrimmsch Note Added: 13827
2011-02-21 12:41 Ingrimmsch Note Added: 14258
2011-03-28 02:24 c_schmitz Note Added: 14579
2011-03-28 02:24 c_schmitz Status assigned => feedback
2011-04-17 16:26 c_schmitz Note Added: 14836
2011-05-05 14:14 Ingrimmsch File Added: pptExport.patch
2011-05-05 14:16 Ingrimmsch Note Added: 14930
2011-05-05 14:16 Ingrimmsch Status feedback => assigned
2011-05-05 14:18 Ingrimmsch File Added: pptExport2.patch
2011-05-05 14:18 Ingrimmsch Note Added: 14931
2011-05-07 13:06 c_schmitz File Deleted: pptExport.patch
2012-06-21 14:16 c_schmitz Assigned To c_schmitz =>
2012-06-21 14:16 c_schmitz Status assigned => confirmed