Error after saving Report

3 posts, 0 answers
  1. Rene
    Rene avatar
    22 posts
    Member since:
    Feb 2014

    Posted 07 Aug 2017 Link to this post

    hi,

     

    i created a simple Report with an csv-Datasource. But after clicking on "Preview" and saving the report, i can't open it again.
    I just get an error:

    I use to try out "ReportDesinger R2 2017 TRIAL".

    Youe see the error @ the attached file.

    This is the report opened with Notepad++

    <?xml version="1.0" encoding="utf-8"?>
    <Report DataSourceName="csvDataSource1" Width="104.999999495347mm" UnitOfMeasure="Mm" Name="Report1" SnapGridSize="0.1cm" xmlns="http://schemas.telerik.com/reporting/2012/4.2">
      <DataSources>
        <CsvDataSource RecordSeparators=" " FieldSeparators=",}" HasHeaders="True" Name="csvDataSource1">
          <Source>
            <Uri Path="file://goldab/pcdaten/test.csv" />
          </Source>
          <Columns>
            <DataColumn Name="sku" />
            <DataColumn Name="Name" />
            <DataColumn Name="Bild" />
            <DataColumn />
          </Columns>
        </CsvDataSource>   
      </DataSources>
      <Items>
        <DetailSection Height="60mm" Name="detailSection1">
          <Items>
            <Barcode Width="54mm" Height="21.0000019073486mm" Left="36.9999974767368mm" Top="4.99999747673678mm" Value="= Fields.sku" Stretch="True" Name="barcode1">
              <Encoder>
                <EAN128Encoder />
              </Encoder>
            </Barcode>
            <PictureBox Width="25.9999949534736mm" Height="25.9999989906947mm" Left="4.99999949534736mm" Top="4.99999747673678mm" Name="pictureBox1">
              <Bindings>
                <Binding Path="Value" Expression="= Fields.Bild" />
              </Bindings>
            </PictureBox>
            <TextBox Width="48.9999954581262mm" Height="18.9999984860421mm" Left="4.99999949534736mm" Top="34.9999984860421mm" Value="= Fields.Name" Name="textBox1" />
          </Items>
        </DetailSection>
      </Items>
      <PageSettings PaperKind="Letter" Landscape="False" ColumnCount="1" ColumnSpacing="0cm">
        <Margins>
          <MarginsU Left="1in" Right="1in" Top="1in" Bottom="1in" />
        </Margins>
      </PageSettings>
      <StyleSheet>
        <StyleRule>
          <Style>
            <Padding Left="2pt" Right="2pt" />
          </Style>
          <Selectors>
            <TypeSelector Type="TextItemBase" />
            <TypeSelector Type="HtmlTextBox" />
          </Selectors>
        </StyleRule>
      </StyleSheet>
    </Report>

     

    Thanks a lot
    RENE

  2. Todor
    Admin
    Todor avatar
    175 posts

    Posted 09 Aug 2017 Link to this post

    Hello Rene,

    Thanks for contacting us.

    When we used the provided xml we managed to replicate the error. Note that in the <Columns> section the last <DataColumn /> has no Name assigned. When we removed this nameless column the report became responsive.

    If this doesn't fix your problem, we would be glad to assist you further.

    Note that we were unable to reproduce your report using the CSV Data Source Wizard. Thus we would be grateful if you share with us the steps to produce a report definition with nameless DataColumn.

    Regards,
    Todor
    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
  3. Rene
    Rene avatar
    22 posts
    Member since:
    Feb 2014

    Posted 09 Aug 2017 in reply to Todor Link to this post

    Hi,

    Thanks a lot! The Problem is in the csv-file! looks like:

    sku}Name}Bild}
    1171}Testcode}\\goldab\pcdaten\maillogo.jpg}

    The Last } is the Problem during binding the Datasource. Telerik create a empty DataColumn !!

     

    Thanks so much

    RENE

     

Back to Top