We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Native DOCX vs Aspose DOCX export has several serious formatting issues

We have a complex report that we have the need to be able to export from SSRS in a format that can be read by a 3rd party document editor, TX Text Control. Even though TX Text Control supports .docx format, there’s something about the native version that SSRS exports that it doesn’t like and it won’t load the file. We are evaluating the Aspose product as a possible solution. The Aspose .docx format does load in TX Text Control, however it has some significant and unacceptable formatting discrepancies from the native format.


I’ve attached the .rdl, the native .docx export and the Aspose .docx export.

Issues to note:

1) Page numbering is broken in the Aspose version. Every page has “Page 1 of 1” in the footer.
2) “Loan Calculations” section is on a different page than the “Other Disclosures” section in the Aspose version. These should be on the same page.
3) Tables in the “Summaries of Transactions” section have borders on all 4 sides in the Aspose version.

These are unfortunately government mandated documents for title transactions of property and there’s not a lot of wiggle room in the formatting allowed. The page numbering by itself would make the document invalid.

Let me know what, if anything, can be done but at first glance I would say Aspose is a non-starter for us.

Thanks

Hi there,

Thanks for your inquiry. It would be great if you please use the select statement (to populate the data) inside your RDL file and share it here for testing. We will investigate the issue on our side and provide you more information.

Please check the following DataSet example with select statement for your kind reference:

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>DataSets<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>DataSet<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: red;”>Name<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>=<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”;”>“DataSet>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>Query<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>DataSourceName<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>><span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”;”>DataSource</DataSourceName>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>CommandText<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>><span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; background-color: yellow;”>select 1 as value, ‘label1’ as label

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; background-color: yellow;”> union all

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; background-color: yellow;”> select 2 as value, ‘label2’ as label

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; background-color: yellow;”> union all

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; background-color: yellow;”> select 3 as value, ‘label3’ as label

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; background-color: yellow;”> union all

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; background-color: yellow;”> select 4 as value, ‘label4’ as label<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”;”>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> </<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>CommandText<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> </<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>Query<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>Fields<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>Field<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: red;”>Name<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>=<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”;”>“value>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>DataField<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>><span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”;”>value</DataField>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>rd:TypeName<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>><span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”;”>System.Int32</rd:TypeName>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> </<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>Field<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>Field<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: red;”>Name<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>=<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”;”>“label>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>DataField<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>><span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”;”>label</DataField>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>rd:TypeName<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>><span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”;”>System.String</rd:TypeName>

<span lang=“EN-GB” style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> <span style=“font-size: 10pt; font-family: “Courier New”; color: blue;”></<span style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>Field<span style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>>

<span style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> </<span style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>Fields<span style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>>

<span style=“font-size: 10pt; font-family: “Courier New”; color: blue;”> </<span style=“font-size: 10pt; font-family: “Courier New”; color: rgb(163, 21, 21);”>DataSet<span style=“font-size: 10pt; font-family: “Courier New”; color: blue;”>>

<span style=“font-size: 10pt; line-height: 14px; font-family: “Courier New”; color: blue;”> </<span style=“font-size: 10pt; line-height: 14px; font-family: “Courier New”; color: rgb(163, 21, 21);”>DataSets<span style=“font-size: 10pt; line-height: 14px; font-family: “Courier New”; color: blue;”>>