Skip to main content
16-Pearl
June 12, 2019
Question

Print CSS with repeater widget

  • June 12, 2019
  • 5 replies
  • 1903 views

I have a master mashup with a repeater widget

I would like to print that master mashup but splitting each repeater item into a single A4 page

 

I tried using print CSS like "media print " and I can get some result (A4 orientation) but cannot split the repeater into A4 pages even using page-break-after property ...

 

How can I do ?

5 replies

1-Visitor
June 12, 2019

Won't work, as you are adding the Repeater Widget onto a Mashup which size it's fixed. In order to print it right it should be a on a Mashup as long as it are all repeated widgets and that can't be done with ThingWorx, I'm sorry, at least as far as I know.

iguerra16-PearlAuthor
16-Pearl
June 12, 2019

I have a master mashup with just a repeater, and when opened it creates a well "multiple" page with my own data, I just would print each element of the repeater into a single A4.

Mashup size isn't fixed it can be also responsive with the repeater inside...

By looking HTML, all is placed into <div>s and the repeater is nothing else as a HTML "table" with frames manages as rows (vertical repeater) or column (horizonal repeater)

 

By looking print CSS specifications it seems to be possible to "break" standard html tables into A4 pages, so it should be possible with thingworx repeater too considering is possible to specify a custom CSS for elements... Or not ?.....

1-Visitor
June 12, 2019

I'm on 7.X, on 8.X with custom styles I don't know.

 

But you are sure that a Repeater it's a Table? Repeater can have virtual scrolling (reusing elements) then can't be a simple HTML Table, at least with Virtual ones (Load/Unload and Load/No unload)

 

About Mashup Responsive --> It's fixed size to the Window Screen not to the Repeater length.