Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

pdfReport - no answers in pdf

  • fmalberto
  • fmalberto's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 3 months ago - 5 years 3 months ago #177811 by fmalberto
pdfReport - no answers in pdf was created by fmalberto
Hi,

I installed pdfreport on my limesurvey installation.
I activated the survey and start submiting some awnsers.
I received an email with the attached pdf for each submit.
But the pdf has no answers (just the headers).

Anyone know what I am missing?

Limesurvey Version 3.15.5+181115
PdfReport: Latest Version

Please help!
Thank You
Last edit: 5 years 3 months ago by fmalberto.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #177814 by DenisChenu
Replied by DenisChenu on topic pdfReport - no answers in pdf
Maybe some text in question ?
Did you try with demo survey ?

gitlab.com/SondagesPro/ExportAndStats/pd...ort/tree/master/demo

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
5 years 1 month ago #179504 by haule1976
Replied by haule1976 on topic pdfReport - no answers in pdf
Dear Denis,
I have received the notification email after submitting survey. The report pdf file was attached to this email but the pdf file has not content of survey and only one page.
Could you please help me to explain this issue ?
Many thanks for your help!
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 month ago - 5 years 1 month ago #179506 by DenisChenu
Replied by DenisChenu on topic pdfReport - no answers in pdf
What did you put in the question text used for pdf report ?
see gitlab.com/SondagesPro/ExportAndStats/pdfReport#documentation
«The pdf generated take the text of this question»


Did you try with Demo survey ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 5 years 1 month ago by DenisChenu.
The topic has been locked.
More
4 years 11 months ago #182487 by haule1976
Replied by haule1976 on topic pdfReport - no answers in pdf
Yes Denis!
I created the question text which used for pdf report.
I also tried to demo survey, it works.
But pdfreport of another survey has not contents (just the headers) after submitting.
Could you please help me to guide these steps ?
Thank you very much!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #182548 by Joffm
Replied by Joffm on topic pdfReport - no answers in pdf
Hi,
this report is not an automatic report.
You have to design it with HTML and Expression Manager.

Here is a short part of a report I am creating at the moment:
<h3>{TOKEN:FIRSTNAME} {TOKEN:LASTNAME}</h3>

<hr />
<p>You were born at {substr(S2,8,2)+'.'+substr(S2,5,2)+'.'+substr(S2,0,4)} and you are {S1.shown}.<br />
Here the other results::</p>

<table border="1" collapse="collapse" width="80%">
<thead>
<tr style="background-color:#FFFF00;color:#0000FF;">
<th><span style="font-size:12pt">S3. {S3.question}</span></th>
</tr>
</thead>
<tbody>
<tr>
<td style="padding-top:5px;padding-bottom:5px;font-size:8pt">{S3.shown}</td>
</tr>
</tbody>
</table>
<p> </p>
<table border="1" collapse="collapse" width="80%">
<thead>
<tr style="background-color:#FFFF00;color:#0000FF;">
<th colspan="2"><span style="font-size:12pt;">S4. How do you rate the following car brands?</span></th>
</tr>
</thead>
<thead>
<tr>
<th style="background-color: #4C0050;color:white;width:70%">Brand</th>
<th style="text-align:center;background-color: #4C0050;color:white;width:30%">Value</th>
</tr>
</thead>
<tbody>
<tr>
<td style="font-size:9pt" width="70%">{S4_SQ001.question}</td>
<td style="text-align:center;font-size:9pt" width="30%">{S4_SQ001.shown}</td>
</tr>
<tr>
<td style="font-size:9pt">{S4_SQ002.question}</td>
<td style="text-align:center;font-size:9pt">{S4_SQ002.shown}</td>
</tr>
<tr>
<td style="font-size:9pt">{S4_SQ003.question}</td>
<td style="text-align:center;font-size:9pt">{S4_SQ003.shown}</td>
</tr>
<tr>
<td style="font-size:9pt">{S4_SQ004.question}</td>
<td style="text-align:center;font-size:9pt">{S4_SQ004.shown}</td>
</tr>
</tbody>
</table>
<br pagebreak="true" />

<p>You said you know these animals:<br />
{list(that.Q1.shown)}{if(!is_empty(Q1_other),Q1_other,"")}</p>

<table border="1" collapse="collapse" width="80%">
<thead>
<tr style="background-color:#FFFF00;color:#0000FF;">
<th colspan="2"><span style="font-size:12pt;">Q1. Which animals do you know?</span></th>

...

To get an impression how to layout tables, have a look at the examples of the TCPDF documentation:
Especially this: tcpdf.org/examples/example_048/

You see you can use all implemented functions of Expression Manager and have access to all variables.

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #182554 by DenisChenu
Replied by DenisChenu on topic pdfReport - no answers in pdf

Joffm wrote: Here is a short part of a report I am creating at the moment:

I'm happy to see it was used :).

If you find time : you can test with LimeMpdf : you have access to more class, and some boostrap class.

See pdf done with LimeMpdf (with some sample code), it can be used in option in pdfReport :

This browser does not support PDFs. Please download the PDF to view it: Download PDF



Else : i have a idea about "autogenerated" report, using a new export system if question text is empty. But need to construct the export first …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
4 years 11 months ago #182665 by haule1976
Replied by haule1976 on topic pdfReport - no answers in pdf
Many thanks Joffm!
I am trying to research your guidance. I think I am not good with html :)
Best regards,
HauLe.
The topic has been locked.
More
4 years 11 months ago #182667 by haule1976
Replied by haule1976 on topic pdfReport - no answers in pdf
Many thanks your help, Denis!
I am waiting your "autogenerated" report.
Best regards,
HauLe.
The topic has been locked.
More
4 years 8 months ago #186492 by rambo
Replied by rambo on topic pdfReport - no answers in pdf
Hi, I am not sure if I need to open another topic.... but I have one question regarding pdfReports. I am using assessment mode, so can I add assessment rules (results) in this pdf report?
p.s. I have a little break since last time I been using LimeSurvey, so on demo demo.limesurvey.org we are talking about ->survey respons->View response detail as quelXML PDF (if not can assessment result be added there)
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #186493 by DenisChenu
Replied by DenisChenu on topic pdfReport - no answers in pdf
pdfReport is an optionnal plugin …

See : gitlab.com/SondagesPro/ExportAndStats/pdfReport#documentation

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose