error when saving in PDF format

3 posts, 1 answers
  1. Csharp Man
    Csharp Man avatar
    4 posts
    Member since:
    Jul 2015

    Posted 28 Jul 2015 Link to this post

    Error saving the file in pdf format within the .pdf file with the message:

     An error has occurred while processing Report 'Report1':
    Object with name 'Report2' already exists. Object should have unique names.

    Can someone help me?

  2. Answer
    Nasko avatar
    944 posts

    Posted 29 Jul 2015 Link to this post

    Hello string,

    The provided error message states there is an issue in the report definition with duplicate object names. We will need to review the problematic report definition in order to pinpoint the culprit and provide any suggestions.

    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. Csharp Man
    Csharp Man avatar
    4 posts
    Member since:
    Jul 2015

    Posted 29 Jul 2015 in reply to Nasko Link to this post

    This and my code for loading the subreport, the file in the viewer and generated perfectly but when saving in PDF format and you receive the error message that was mentioned. 


    01.#region Cliente / Análise
    02.                   if (dataTableQuantidadeClientes.Rows.Count > 0)
    03.                   {
    04.                       //Subreport
    05.                       Telerik.Reporting.SubReport subReport = null;
    06.                       Cliente subReportCliente = null;
    08.                       for (int x = 0; x < dataTableQuantidadeClientes.Rows.Count; x++)
    09.                       {
    10.                           subReportCliente = new Cliente(DataInicial, DataFinal, dataTableQuantidadeClientes.Rows[x]["Cliente"].ToString());
    11.                           subReport = new SubReport();
    12.                           subReport.ReportSource = subReportCliente;
    13.                           subReport.Size = new SizeU(new Unit(19, Telerik.Reporting.Drawing.UnitType.Cm), new Unit(8.8, Telerik.Reporting.Drawing.UnitType.Cm));
    14.                           subReport.Dock = DockStyle.Top;
    15.                           subReport.KeepTogether = true;
    16.                           subReport.Name = string.Format("subReport_Cliente_{0}", (x + 1));
    17.                           this.panelClienteAnalise.Items.Add(subReport);
    18.                       }
    19.                   }
    21.#endregion Cliente / Análise 

Back to Top