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

Free Support Forum - aspose.com

Aspose.TextAlignment FullJustify custom property in TextBox and Tablix does not work in Aspose PDF for Reporting Services 2016 _

Aspose.TextAlignment FullJustify custom property in TextBox and Tablix does not work in Aspose PDF for Reporting Services 2016 when we export using PDF as Aspose.PDF.

Here is RDL definition:
    <?xml version="1.0" encoding="utf-8"?>
    <Report MustUnderstand="df" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns:df="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition/defaultfontfamily">
      <df:DefaultFontFamily>Segoe UI</df:DefaultFontFamily>
      <AutoRefresh>0</AutoRefresh>
      <DataSources>
        <DataSource Name="DataSource1">
          <ConnectionProperties>
            <DataProvider>SQL</DataProvider>
            <ConnectString>Data Source=(local);Initial Catalog=TestingReportingServices</ConnectString>
            <IntegratedSecurity>true</IntegratedSecurity>
          </ConnectionProperties>
          <rd:SecurityType>Integrated</rd:SecurityType>
          <rd:DataSourceID>c7a6194d-f9c8-4656-9d8e-fed3582e2117</rd:DataSourceID>
        </DataSource>
      </DataSources>
      <DataSets>
        <DataSet Name="DataSet1">
          <Query>
            <DataSourceName>DataSource1</DataSourceName>
            <CommandText>SELECT * FROM Test1</CommandText>
            <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
          </Query>
          <Fields>
            <Field Name="Id">
              <DataField>Id</DataField>
              <rd:TypeName>System.Int32</rd:TypeName>
            </Field>
            <Field Name="Name">
              <DataField>Name</DataField>
              <rd:TypeName>System.String</rd:TypeName>
            </Field>
          </Fields>
        </DataSet>
      </DataSets>
      <ReportSections>
        <ReportSection>
          <Body>
            <ReportItems>
              <Textbox Name="ReportTitle">
                <CanGrow>true</CanGrow>
                <KeepTogether>true</KeepTogether>
                <Paragraphs>
                  <Paragraph>
                    <TextRuns>
                      <TextRun>
                        <Value>Testing aspose v1</Value>
                        <Style>
                          <FontFamily>Segoe UI Light</FontFamily>
                          <FontSize>28pt</FontSize>
                        </Style>
                      </TextRun>
                    </TextRuns>
                    <Style />
                  </Paragraph>
                </Paragraphs>
                <rd:WatermarkTextbox>Title</rd:WatermarkTextbox>
                <rd:DefaultName>ReportTitle</rd:DefaultName>
                <Height>0.5in</Height>
                <Width>5.5in</Width>
                <Style>
                  <Border>
                    <Style>None</Style>
                  </Border>
                  <PaddingLeft>2pt</PaddingLeft>
                  <PaddingRight>2pt</PaddingRight>
                  <PaddingTop>2pt</PaddingTop>
                  <PaddingBottom>2pt</PaddingBottom>
                </Style>
              </Textbox>
              <Textbox Name="Textbox1">
                <CanGrow>true</CanGrow>
                <KeepTogether>true</KeepTogether>
                <Paragraphs>
                  <Paragraph>
                    <TextRuns>
                      <TextRun>
                        <Value>Testing text alignment by using a custom property in rdl file in Reporting Services 2016. (aasdasdasd) * "234242" This custom property is called Aspose.TextAlignment and is set to FullJustify. Testing text alignment by using a custom property in rdl file. (aasdasdasd) * "234242" This custom property is called Aspose.TextAlignment and is set to FullJustify. Testing text alignment by using a custom property in rdl file. (aasdasdasd) * "234242" This custom property is called Aspose.TextAlignment and is set to FullJustify. Testing text alignment by using a custom property in rdl file. (aasdasdasd) * "234242" This custom property is called Aspose.TextAlignment and is set to FullJustify. Testing text alignment by using a custom property in rdl file. (aasdasdasd) * "234242" This custom property is called Aspose.TextAlignment and is set to FullJustify.</Value>
                        <Style />
                      </TextRun>
                    </TextRuns>
                    <Style />
                  </Paragraph>
                </Paragraphs>
                <rd:DefaultName>Textbox1</rd:DefaultName>
                <Top>0.56944in</Top>
                <Height>2.08855in</Height>
                <Width>5.5in</Width>
                <ZIndex>1</ZIndex>
                <CustomProperties>
                  <CustomProperty>
                    <Name>Aspose.TextAlignment</Name>
                    <Value>FullJustify</Value>
                  </CustomProperty>
                </CustomProperties>
                <Style>
                  <Border>
                    <Style>None</Style>
                  </Border>
                  <PaddingLeft>2pt</PaddingLeft>
                  <PaddingRight>2pt</PaddingRight>
                  <PaddingTop>2pt</PaddingTop>
                  <PaddingBottom>2pt</PaddingBottom>
                </Style>
              </Textbox>
              <Tablix Name="Tablix2">
                <TablixBody>
                  <TablixColumns>
                    <TablixColumn>
                      <Width>0.39062in</Width>
                    </TablixColumn>
                    <TablixColumn>
                      <Width>5.10938in</Width>
                    </TablixColumn>
                  </TablixColumns>
                  <TablixRows>
                    <TablixRow>
                      <Height>0.25in</Height>
                      <TablixCells>
                        <TablixCell>
                          <CellContents>
                            <Textbox Name="Textbox10">
                              <CanGrow>true</CanGrow>
                              <KeepTogether>true</KeepTogether>
                              <Paragraphs>
                                <Paragraph>
                                  <TextRuns>
                                    <TextRun>
                                      <Value>Id</Value>
                                      <Style />
                                    </TextRun>
                                  </TextRuns>
                                  <Style />
                                </Paragraph>
                              </Paragraphs>
                              <rd:DefaultName>Textbox10</rd:DefaultName>
                              <Style>
                                <Border>
                                  <Color>LightGrey</Color>
                                  <Style>Solid</Style>
                                </Border>
                                <PaddingLeft>2pt</PaddingLeft>
                                <PaddingRight>2pt</PaddingRight>
                                <PaddingTop>2pt</PaddingTop>
                                <PaddingBottom>2pt</PaddingBottom>
                              </Style>
                            </Textbox>
                          </CellContents>
                        </TablixCell>
                        <TablixCell>
                          <CellContents>
                            <Textbox Name="Textbox12">
                              <CanGrow>true</CanGrow>
                              <KeepTogether>true</KeepTogether>
                              <Paragraphs>
                                <Paragraph>
                                  <TextRuns>
                                    <TextRun>
                                      <Value>Name</Value>
                                      <Style />
                                    </TextRun>
                                  </TextRuns>
                                  <Style />
                                </Paragraph>
                              </Paragraphs>
                              <rd:DefaultName>Textbox12</rd:DefaultName>
                              <Style>
                                <Border>
                                  <Color>LightGrey</Color>
                                  <Style>Solid</Style>
                                </Border>
                                <PaddingLeft>2pt</PaddingLeft>
                                <PaddingRight>2pt</PaddingRight>
                                <PaddingTop>2pt</PaddingTop>
                                <PaddingBottom>2pt</PaddingBottom>
                              </Style>
                            </Textbox>
                          </CellContents>
                        </TablixCell>
                      </TablixCells>
                    </TablixRow>
                    <TablixRow>
                      <Height>0.25in</Height>
                      <TablixCells>
                        <TablixCell>
                          <CellContents>
                            <Textbox Name="Id">
                              <CanGrow>true</CanGrow>
                              <KeepTogether>true</KeepTogether>
                              <Paragraphs>
                                <Paragraph>
                                  <TextRuns>
                                    <TextRun>
                                      <Value>=Fields!Id.Value</Value>
                                      <Style />
                                    </TextRun>
                                  </TextRuns>
                                  <Style />
                                </Paragraph>
                              </Paragraphs>
                              <rd:DefaultName>Id</rd:DefaultName>
                              <Style>
                                <Border>
                                  <Color>LightGrey</Color>
                                  <Style>Solid</Style>
                                </Border>
                                <PaddingLeft>2pt</PaddingLeft>
                                <PaddingRight>2pt</PaddingRight>
                                <PaddingTop>2pt</PaddingTop>
                                <PaddingBottom>2pt</PaddingBottom>
                              </Style>
                            </Textbox>
                          </CellContents>
                        </TablixCell>
                        <TablixCell>
                          <CellContents>
                            <Textbox Name="Name">
                              <CanGrow>true</CanGrow>
                              <KeepTogether>true</KeepTogether>
                              <Paragraphs>
                                <Paragraph>
                                  <TextRuns>
                                    <TextRun>
                                      <Value>=Fields!Name.Value</Value>
                                      <Style />
                                    </TextRun>
                                  </TextRuns>
                                  <Style />
                                </Paragraph>
                              </Paragraphs>
                              <rd:DefaultName>Name</rd:DefaultName>
                              <Style>
                                <Border>
                                  <Color>LightGrey</Color>
                                  <Style>Solid</Style>
                                </Border>
                                <PaddingLeft>2pt</PaddingLeft>
                                <PaddingRight>2pt</PaddingRight>
                                <PaddingTop>2pt</PaddingTop>
                                <PaddingBottom>2pt</PaddingBottom>
                              </Style>
                              <CustomProperties>
                                <CustomProperty>
                                  <Name>Aspose.TextAlignment</Name>
                                  <Value>FullJustify</Value>
                                </CustomProperty>
                              </CustomProperties>
                            </Textbox>
                          </CellContents>
                        </TablixCell>
                      </TablixCells>
                    </TablixRow>
                  </TablixRows>
                </TablixBody>
                <TablixColumnHierarchy>
                  <TablixMembers>
                    <TablixMember />
                    <TablixMember />
                  </TablixMembers>
                </TablixColumnHierarchy>
                <TablixRowHierarchy>
                  <TablixMembers>
                    <TablixMember>
                      <KeepWithGroup>After</KeepWithGroup>
                    </TablixMember>
                    <TablixMember>
                      <Group Name="Details" />
                    </TablixMember>
                  </TablixMembers>
                </TablixRowHierarchy>
                <DataSetName>DataSet1</DataSetName>
                <Top>2.81125in</Top>
                <Height>0.5in</Height>
                <Width>5.5in</Width>
                <ZIndex>2</ZIndex>
                <Style>
                  <Border>
                    <Style>None</Style>
                  </Border>
                </Style>
              </Tablix>
            </ReportItems>
            <Height>5.98958in</Height>
            <Style>
              <Border>
                <Style>None</Style>
              </Border>
            </Style>
          </Body>
          <Width>6in</Width>
          <Page>
            <PageFooter>
              <Height>0.70521in</Height>
              <PrintOnFirstPage>true</PrintOnFirstPage>
              <PrintOnLastPage>true</PrintOnLastPage>
              <ReportItems>
                <Textbox Name="ExecutionTime">
                  <CanGrow>true</CanGrow>
                  <KeepTogether>true</KeepTogether>
                  <Paragraphs>
                    <Paragraph>
                      <TextRuns>
                        <TextRun>
                          <Value>=Globals!ExecutionTime</Value>
                          <Style />
                        </TextRun>
                      </TextRuns>
                      <Style>
                        <TextAlign>Right</TextAlign>
                      </Style>
                    </Paragraph>
                  </Paragraphs>
                  <rd:DefaultName>ExecutionTime</rd:DefaultName>
                  <Top>0.2in</Top>
                  <Left>4in</Left>
                  <Height>0.25in</Height>
                  <Width>2in</Width>
                  <Style>
                    <Border>
                      <Style>None</Style>
                    </Border>
                    <PaddingLeft>2pt</PaddingLeft>
                    <PaddingRight>2pt</PaddingRight>
                    <PaddingTop>2pt</PaddingTop>
                    <PaddingBottom>2pt</PaddingBottom>
                  </Style>
                </Textbox>
              </ReportItems>
              <Style>
                <Border>
                  <Style>None</Style>
                </Border>
              </Style>
            </PageFooter>
            <LeftMargin>1in</LeftMargin>
            <RightMargin>1in</RightMargin>
            <TopMargin>1in</TopMargin>
            <BottomMargin>1in</BottomMargin>
            <Style />
          </Page>
        </ReportSection>
      </ReportSections>
      <ReportParametersLayout>
        <GridLayoutDefinition>
          <NumberOfColumns>4</NumberOfColumns>
          <NumberOfRows>2</NumberOfRows>
        </GridLayoutDefinition>
      </ReportParametersLayout>
      <rd:ReportUnitType>Inch</rd:ReportUnitType>
      <rd:ReportID>76ef20cf-a340-4681-948c-86e756ef3046</rd:ReportID>
    </Report>

@asposeuser1234

Could you please also share the exported PDF document that you are obtaining at your end? We will investigate the case and share our feedback with you.

Please see attached the pdf document, thank you. This is a priority issue, how can we expedite it so it is resolved ASAP?
TestingAspose.pdf (210.6 KB)

Also, can we default to ‘PDF via Aspose.PDF’ format via configuration when exporting through code, or we’ll need to use Aspose.PDF for .NET to be able to export using this format?

@asposeuser1234

Regarding the issue of TextAlignment, we have been investigating similar issues before and have logged this one as PDFRS-33583 in our issue tracking system as well. The ticket ID has been linked to this forum thread so that you will receive a notification as soon as it is resolved. Please be patient and spare us some time.

In case you need to integrate the PDF format extension in ReportViewer and you want to export the report directly, you would need Aspose.PDF for Reporting Services. On the other hand, Aspose.PDF for .NET can be used in the code behind to generate/convert and modify PDF documents.

Hi Asad Ali, thank you for the responses. How can we make this a priority as we need to deliver it in the next week or so. Is there any option for us to purchase priority support?

@asposeuser1234

You can increase the issue priority by creating a ticket in priority/paid support forum with the reference of issue ID i.e. PDFRS-33583. In case you do not have paid support subscription, you can purchase it and contact our sales team for assistance in this regard. Once the issue is posted in the paid support forum, it will be expedited to the highest priority.