Strange behaviour when printing repeater table

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

fronsky
Ebase User
Posts: 86
Joined: Thu Mar 08, 2018 2:52 pm

Strange behaviour when printing repeater table

#1

Postby fronsky » Tue Dec 10, 2019 3:51 pm

I want to pdfprint a form with a repeater containing a table.

When printing, a new page is created just after having printed the table header, already at the beginning of the page. The rows with data are printed on the next page. All rows fit on that second page. This doesn't look well. Strangely when having more rows than that can fit on a page, the rows are printed immediately after the header. This is how it should look.

Can I change this behaviour?
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

Re: Strange behaviour when printing repeater table

#2

Postby Segi » Tue Dec 10, 2019 6:07 pm

If you go to the repeater properties, at the very bottom, there's a property that says "Page Break Only on new row" is this checked ?
0 x

fronsky
Ebase User
Posts: 86
Joined: Thu Mar 08, 2018 2:52 pm

Re: Strange behaviour when printing repeater table

#3

Postby fronsky » Wed Dec 11, 2019 9:25 am

Yes, this is checked. I tried both options.
0 x

Steve
Moderator
Moderator
Posts: 414
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

Re: Strange behaviour when printing repeater table

#4

Postby Steve » Wed Dec 11, 2019 10:00 am

Hi Fronsky,

From previous conversations I assume that you are using the wkhtmltopdf engine? Could you try the same using the flying saucer PDF engine?

You can adjust this on the Server Admin-->General Properties-->PDF Properties

I am interested whether both engines cause the same issue? If it does then it's probably a fault of the CSS style/HTML that the server generates.

Could you also put the PDF engine back after the test above to wkhtmltopdf engine and set the debug options by:

Editing the log4j.xml that is located (Integrated Server) in the directory:

<Verjio-Install-Dir>/UfsClient/IntegratedServer/ebasetest/WEB-INF/classes

and add just above the <root> element... you'll see an example commented out:

Code: Select all

<logger name="com.ebasetech.ufs.pdf.wkhtmltopdf" additivity="false">
    <level value="ALL" />
    <appender-ref ref="SYSLOG"/>
  </logger>
Restart the Integrated Server and print out the PDF again.

Then send me the output from the log:

<Verjio-Install-Dir>/UfsClient/IntegratedServer/logs

to support@ebasetech.com

From the output I will be able to generate the PDF here.

Thanks

Steve
0 x

fronsky
Ebase User
Posts: 86
Joined: Thu Mar 08, 2018 2:52 pm

Re: Strange behaviour when printing repeater table

#5

Postby fronsky » Thu Dec 12, 2019 2:55 pm

Thanks Steve.

There is a difference. With flying saucer it prints immediately after the header. That's ok, despite differences in layout.

I already migrated my designer to 5.5.6, so need some help to find the logs yr looking for. I changed the log4j.xml.
0 x

Steve
Moderator
Moderator
Posts: 414
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

Re: Strange behaviour when printing repeater table

#6

Postby Steve » Thu Dec 12, 2019 5:43 pm

Hi,

The logs are now located in the user.home directory, for example on windows:

tomcat log:

c:\Users\<username>Verjio\Studio\embeddedServer\tomcat\logs

and :

ebasetest webapp log:
C:\Users\<username>\Verjio\Studio\embeddedServer\app\logs

Kind regards

Steve Upton
0 x

fronsky
Ebase User
Posts: 86
Joined: Thu Mar 08, 2018 2:52 pm

Re: Strange behaviour when printing repeater table

#7

Postby fronsky » Tue Dec 17, 2019 8:07 am

Thank you. My late answer is due to the fact that I migrated from 5.5 to 5.6. Also I changed changed the way I present the pdf.

Because I now have the the source content for the pdf on a seperate page without a page component (a menu) it is now printing correctly. Probably differences in CSS/HTML influenced this. It now has no priority for me anymore.

I still have some challenges with the difference in server file structure between 5.5 and 5.6. I will address this in a seperate topic.
0 x


Who is online

Users browsing this forum: No registered users and 3 guests