pdfReport - no answers in pdf

More
5 months 3 weeks ago - 5 months 3 weeks ago #177811 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 months 3 weeks ago by fmalberto.

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
5 months 3 weeks ago #177814 by DenisChenu
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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
4 months 3 days ago #179504 by haule1976
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!

Please Log in or Create an account to join the conversation.

More
4 months 3 days ago - 4 months 3 days ago #179506 by DenisChenu
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 .
An error happen ? Before make a new topic : remind the Debug mode .
Last edit: 4 months 3 days ago by DenisChenu.

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #182487 by haule1976
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!

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks 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: https://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

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #182554 by DenisChenu

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 .
An error happen ? Before make a new topic : remind the Debug mode .
Attachments:

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #182665 by haule1976
Many thanks Joffm!
I am trying to research your guidance. I think I am not good with html :)
Best regards,
HauLe.

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #182667 by haule1976
Many thanks your help, Denis!
I am waiting your "autogenerated" report.
Best regards,
HauLe.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!