Okay
  Public Ticket #1502181
My template is not working with singel file
Closed

Comments

  • BestSolution started the conversation

    Hi.

    I have create a table in wpDataTable that always returning one row.

    I want to make a report with singel file (not zip file) in word. Im not able to get any content from my table when I run this report. I have enclose my template in seperate file.

    When I make a report from the template without .all after field name, it's working fine. But I don't want a zip file.

    Will you check my template file? Tell me what I'm doing wrong?


    Is there any way to preview the report online without downloading the file? 

    Is there any way to export the file to pdf and view the pdf file?


    Best regards Vilfred.

  • [deleted] replied

    Hi BestSolution,

    Is it possible for you to give me temporary admin access to your website so I can see the data and better understand what happening? If this is not an option could you send me a data so I can try to recreate it in my local environment 

  •   BestSolution replied privately
  • BestSolution replied

    Site name bestsolution.no

    regards Vilfred

  • [deleted] replied

    Hi Vilfred,

    This was a little problem with formatting. I just removed formatting from our variables and it starts to work as it should. Best practice is to  avoid formatting of variables because some invisible characters could be applied in process which breaks report after data switching 

  • BestSolution replied

    Thank you. Now it's working.

    In the database field I have copy text from a word document and past to the field. I lost line break when I includ this field in the report. 

    When I display the table with wpDataTables, it's look nice with line break (cr or </br> in html)

    It's some way to keep the formatted text as it is when I use database field in the report?

    - Vilfred


  • [deleted] replied

    Hi Vilfred,

    There is no option to preserve line breaks from source file in the report but it is very good idea and we will take a look at it.