Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguous cell mapping encountered. Possible missing paragraph element. <p> elements are required before every </tc> #47

Open
apetrut opened this issue May 12, 2022 · 1 comment

Comments

@apetrut
Copy link

apetrut commented May 12, 2022

Hi.

I am using this template:

<%foreach (var item in Model.Items){%>

// a table with rows and columns. Some rows contain nested tables as well.

<%}%>

which works fine if the data exists in the model.
However, if the data doesn't exist in the mode, it would create an empty table and show the error in the title when opening using Word.

I tried adding spaces or line breaks but with no luck.

Can you help?

Thanks.

@apetrut apetrut changed the title Ambiguous cell mapping encountered. Possible missing paragraph element. Ambiguous cell mapping encountered. Possible missing paragraph element. <p> elements are required before every </tc> May 12, 2022
@apetrut
Copy link
Author

apetrut commented May 12, 2022

I have checked each field in the template and I found out that I had to manually add a new line at the end of each field (I basically pressed enter from the keyboard). This was also needed for nested tables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant