[MSWordUtils] COLSPAN doesn't work correct, Is it possible add for table features which hide border

Forge Component
(2)
Published on 8 Nov (4 weeks ago) by Stuart Harris
2 votes
Published on 8 Nov (4 weeks ago) by Stuart Harris



Hello everyone, My name is Assylbek. 2 days ago, I got from my team leader task for making report for bank. After searching extensions which exist in Forge, I found your extension. I want to use your extension but I got problem when want to use feature COLSPAN. 

In below, you can see which I need to do:


But when I create this using your extension it look like this:


COLSPAN incoreect work when I want to use colspan two time in one row.

I need to divede 7 columns for 2 cell using colspan = 3 and colspan = 4

Can you check it, Maybe I used your extension incorrect


Best Reagrds,

Your friend Assylbek Otarov

Hello Assylbek,

Using colspan multiple times in a row appears to be a defect. I will investigate and get back to you within a few days.

In the meantime, another way to generate a document is to

  • Create a word document with the formatting you require.
  • Insert bookmarks where you have data to insert
  • Use the MSWordUtils forge component to open the word document
  • Inserting text at the bookmarks
  • Generate and save a new MSWord document

This will allow you to use more formatting options than the library provides but still to have dynamic content.

Kind regards,

Stuart

Stuart Harris wrote:

Hello Assylbek,

Using colspan multiple times in a row appears to be a defect. I will investigate and get back to you within a few days.

In the meantime, another way to generate a document is to

  • Create a word document with the formatting you require.
  • Insert bookmarks where you have data to insert
  • Use the MSWordUtils forge component to open the word document
  • Inserting text at the bookmarks
  • Generate and save a new MSWord document

This will allow you to use more formatting options than the library provides but still to have dynamic content.

Kind regards,

Stuart


Thanks for your answer. But this table will be repeated N times depending result of SQL. Using static table not correct for my situation. 


In this example, program repeated 3 times. 


Hi Assylbek,

Thank you for explaining the situation.

I have uploaded a new version which correctly generates tables using multiple colspans in a single row.

I hope this helps, and please let me know if you have any difficulties.

Kind regards,

Stuart

Stuart Harris wrote:

Hi Assylbek,

Thank you for explaining the situation.

I have uploaded a new version which correctly generates tables using multiple colspans in a single row.

I hope this helps, and please let me know if you have any difficulties.

Kind regards,

Stuart

Thanks, I checked and used in my web-app.