Table View - Column Width (PDF)

Hello, I know there have been similar topics, but I couldn’t find an answer for my issue. I use the ‘Report Template Creator’ connected with a component that contains a ‘Table View’ and it ends with the ‘Report PDF Writer.’ The ‘Table View’ doesn’t allow us to change the column width to the size we want; there are only three options: Fixed, Fit content, and Fit content with headers. Therefore, I used the CSS Editor and connected it with ‘Table View (JavaScript).’ In the component editor layout, we are able to see this table, but when I save it as a PDF, I only see the message 'The view is not supported. Is there any other way to create a custom table, or are we limited to using “Table View,” which doesn’t offer many options?

Hi,

I agree this is not optimal and I’ll move this topic to the “Feedback & Ideas” category so that it is maybe implemented in a future release. I also saw that some columns are missing from the pdf, if the width is too large, without even indicating that data is missing.

What exactly is your issue with the shown data? Do you want to individually set the column width, or is the issue that a long string is not fully displayed? For the second one you could use a workaround with the column expression node, where you add a newline for example after every 10 characters with the following expression: regex_replace($[“column_name”], “(.{10})”, “$1\n”, “”)

(expression provided by K-AI)

@ScottF The topic had the tags text-processing and reporting before I moved it, but these seem not to be allowed in the Feedback & Ideas category.

Hi Daniela,

Please see the following issues I have found:

  1. Text not displayed properly – not all text is visible. I can use the Formatting String Manager to wrap the text, but then the table with 27 rows becomes too long. It would be best if we could change the font size.
  2. Table cut across pages – when the table moves to the next page in the PDF, it cuts off 1–2 rows, which seems odd.
  3. Table not fitting the PDF page – sometimes the table width is too large, and some columns are not visible. In other cases, if the page is in landscape orientation, the table appears only on half of the page.
  4. Unable to adjust PDF margins – we currently cannot change the margins in the PDF.

I will replace the KNIME workflow with Python code, as Python gives us more flexibility to generate the PDF file.

Can I, as a regular user, improve the table view myself by adding the features that are currently missing? If so how can I do that ?

1 Like

Thank you for the list of issues, these are all very good points! I don’t think we can add the features as users at the moment with the KNIME reporting. With BIRT reporting it might be possible (I haven’t worked with it enough to say this definitely).

ok, so who can work on that and when ?

That is a question someone from the KNIME team would need to reply to.

Hey @Pawelec_G,

Let me jump in here and comment on the individual points:

  1. custom styling of the table is currently not supported. Though I have attached a workflow that shows how you can achieve something similar at least for the content of a row
    Customize font size.knwf (50.4 KB)
  2. Which version of KNIME are you using? This was a bug that we had in previous versions, but should be fixed in newer ones
  3. The orientation and format of the page can be defined in the report template creator node. But I totally agree that getting to a desired output is a bit cumbersome currently. Handling custom column widths and making it easier to preview the actual report is something we want to improve in the future, but we don’t have a timeline yet.
  4. Yes, sadly a limitation that we currently have. We already have a ticket to improve that (internal reference: UIEXT-2286) but also no timeline here.

We are currently working on a different area of the product, but as soon as this is done we will focus back on improving our reporting capabilities. So keep the feedback coming :slight_smile:

Greetings,

Daniel

1 Like

Hi Daniel. Thank you for the feedback.

1 Like