This is a migrated thread and some comments may be shown as answers.

Vertical text - exception when exporting to powerpoint

2 Answers 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Thomas Kjaereng
Top achievements
Rank 1
Thomas Kjaereng asked on 12 Apr 2018, 07:53 AM
Trelerik Report Designer version is - 10.2.16.1025

https://www.telerik.com/support/whats-new/reporting/release-history/telerik-reporting-r3-2016-sp1-(version-10-2-16-1025)

See sample report content below as proof of concept for the error we are encountering. Follow these steps:

1) Go to Preview

2) Try export to Powerpoint Presentation

3) Encounter exception when exporting to .pptx - seems like the Angle=270 attribute on the textbox is the culprit. This was working in Telerik Reporting 10.1.16.615.

Report content:

<?xml version="1.0" encoding="utf-8"?>
<Report Width="16cm" Name="Report1" SnapGridSize="0.1cm" xmlns="http://schemas.telerik.com/reporting/2012/4.1">
  <Items>
    <PageHeaderSection Height="2cm" Name="pageHeaderSection1" />
    <DetailSection Height="5cm" Name="detailSection1">
      <Items>
        <TextBox Width="3.00000010093053cm" Height="1.99999939441683cm" Left="6.49999954581262cm" Top="2.19999989906947cm" Value="textBox1" Angle="270" Name="textBox1">
          <Style TextAlign="Center" VerticalAlign="Middle" />
        </TextBox>
      </Items>
    </DetailSection>
    <PageFooterSection Height="2cm" Name="pageFooterSection1" />
  </Items>
  <PageSettings PaperKind="A4" Landscape="False">
    <Margins>
      <MarginsU Left="2cm" Right="2cm" Top="2cm" Bottom="2cm" />
    </Margins>
  </PageSettings>
  <StyleSheet>
    <StyleRule>
      <Style>
        <Padding Left="2pt" Right="2pt" />
      </Style>
      <Selectors>
        <TypeSelector Type="TextItemBase" />
        <TypeSelector Type="HtmlTextBox" />
      </Selectors>
    </StyleRule>
  </StyleSheet>
</Report>

2 Answers, 1 is accepted

Sort by
0
Thomas Kjaereng
Top achievements
Rank 1
answered on 12 Apr 2018, 08:19 AM

Exception message

Object reference not set to an instance of an object.
Telerik.Reporting.OpenXmlRendering
   at Telerik.Reporting.OpenXmlRendering.Presentation.TextBoxShapeContainerBuilder.Telerik.Reporting.OpenXmlRendering.Presentation.IContainerBuilder.CreateBody(SlidePart slide, OpenXmlElement xmlElement, LayoutElement processingElement, ElementPageInfo pageInfo)
   at Telerik.Reporting.OpenXmlRendering.Presentation.TextBlockContentBuilder.CreateElement(SlidePart slide, LayoutElement source, ElementPageInfo pageInfo)
   at Telerik.Reporting.OpenXmlRendering.Presentation.ItemWriter.Build(SlidePart renderingPart, LayoutElement source, ElementPageInfo pageInfo)
   at Telerik.Reporting.OpenXmlRendering.Presentation.PresentationDocumentWriter.WriteStartElement(LayoutElement element, ElementPageInfo pageInfo)
   at Telerik.Reporting.Paging.PageElementLayer.AddToPage(IPageHandler handler)
   at Telerik.Reporting.Paging.PageElementManager.AddToPage(IPageHandler handler)
   at Telerik.Reporting.Paging.PageCompositionBase.SendPhysicalPages()
   at Telerik.Reporting.Paging.PageCompositionBase.OutputPage()
   at Telerik.Reporting.Paging.PageCompositionBase.CreatePages()
   at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(LayoutElement root, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback, PageSettings pageSettings)
   at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext)
   at Telerik.ReportViewer.Common.ReportRenderer.Render(ReportRendererArgs args)

0
Silviya
Telerik team
answered on 16 Apr 2018, 02:06 PM
Hello Thomas,

Indeed, there was a problem when trying to render an item with angle set to, for example, 270 to .pptx format.
However, the issue has been already fixed in R1 2018 version 12.0.18.117. You can check the Release history for a reference. In order to export the report correctly, you would need to upgrade to the newer version of the product.

Regards,
Silviya
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Thomas Kjaereng
Top achievements
Rank 1
Answers by
Thomas Kjaereng
Top achievements
Rank 1
Silviya
Telerik team
Share this question
or