You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you please help me to fix this issue it's working fine in Microsoft word or online docx viewer but when i try to open it in mac and google docx there is table columns not showing correctly and there is no any width set on table columns can you help me how can i fix it ?
The text was updated successfully, but these errors were encountered:
const createPaginatedTables = (
headers: string[],
rows: any[][],
colors: typeof TEMPLATE_COLORS.crux,
pageTitle: string,
tableIndex: number,
): {tables: Table[]; continuationTitles: Paragraph[]} => {
const tables: Table[] = [];
const continuationTitles: Paragraph[] = [];
// Page width calculations
const pageWidth = convertInchesToTwip(8.5);
const margins = convertInchesToTwip(1);
const availableWidth = pageWidth - margins * 2;
// Set equal column width
const columnWidth = Math.floor(availableWidth / headers.length);
for (let i = 0; i < rows.length; i += MAX_RECORDS_PER_PAGE) {
const chunk = rows.slice(i, i + MAX_RECORDS_PER_PAGE);
}
return {tables, continuationTitles};
};
Can you please help me to fix this issue it's working fine in Microsoft word or online docx viewer but when i try to open it in mac and google docx there is table columns not showing correctly and there is no any width set on table columns can you help me how can i fix it ?
The text was updated successfully, but these errors were encountered: