Hi,
We are creating a document with multiple tables using RadFlowDocument and exporting to byte array through DocxFormatProvider. Later converting to PDF document.
We are facing the problem to set the width of the table to align with complete document. Please refer the attached DocxFormatProvider_Export_toBytes.pdf which is having the tables(consider from second table) with right side space is left out.
The same is working fine when we export the RadFlowDocument to byte array through PdfFormatProvider (PDFFormatProvider_Export_toBytes.pdf). The attached PDF documents are created through below code.
----- Code -----
RadFlowDocument Targetdoc = new RadFlowDocument();
//Added Contents to Targetdoc
DocxFormatProvider rfDocxProvider = new DocxFormatProvider();
byte[] docxoutput = rfDocxProvider.Export(Targetdoc);
var rPdfProvider = new PdfFormatProvider();
byte[] pdfoutput = rPdfProvider.Export(Targetdoc);
//PDF Files created
Version: 2021.1.322
We need to export from DocxFormatProvider only as we need to repeat the table header row for next pages.
Please help us to resolve table width issue.
We are creating a document with multiple tables using RadFlowDocument and exporting to byte array through DocxFormatProvider. Later converting to PDF document.
We are facing the problem to set the width of the table to align with complete document. Please refer the attached DocxFormatProvider_Export_toBytes.pdf which is having the tables(consider from second table) with right side space is left out.
The same is working fine when we export the RadFlowDocument to byte array through PdfFormatProvider (PDFFormatProvider_Export_toBytes.pdf). The attached PDF documents are created through below code.
----- Code -----
RadFlowDocument Targetdoc = new RadFlowDocument();
//Added Contents to Targetdoc
DocxFormatProvider rfDocxProvider = new DocxFormatProvider();
byte[] docxoutput = rfDocxProvider.Export(Targetdoc);
var rPdfProvider = new PdfFormatProvider();
byte[] pdfoutput = rPdfProvider.Export(Targetdoc);
//PDF Files created
Version: 2021.1.322
We need to export from DocxFormatProvider only as we need to repeat the table header row for next pages.
Please help us to resolve table width issue.