Telerik Forums
Reporting Forum
4 answers
637 views

My boss and I created a custom report resolver that works on his machine but not mine.

The ResolveReport() method is not called on my machine. We've got the exact same code.

Could you give us any hint to try and debug this issue?

Regards

public class ReportsController : ReportsControllerBase
{
  public ReportsController()
  {
    this.ReportServiceConfiguration = new ReportServiceConfiguration()
    {
      ReportResolver = new CustomReportResolver(),
      Storage = new Telerik.Reporting.Cache.File.FileStorage()    
    };
  }
}
 
public class CustomReportResolver : ReportResolverBase
{
  protected override ReportSource ResolveReport(string report)
  {
    TypeReportSource _ReportSource = new TypeReportSource()
    {
      TypeName = typeof(MADashboard).AssemblyQualifiedName
    };
    return _ReportSource;
  }
}
Senthil
Top achievements
Rank 1
 answered on 02 Jan 2018
5 answers
467 views
Hi,

How to adjust the size of the crosstab at runtime?  The total width of the crosstab should be fixed, but the size of textboxes inside should be adjusted according to the number of columns. How can i achieve this?

Thanks
Gurinder
Top achievements
Rank 1
 answered on 02 Jan 2018
3 answers
1.0K+ views
Hello, I have some problem with binding to object like

class ObjectDataSource {   
     public List<Product>  ProductListMain;
     public List<Product> ProductListSecond;
     public IdValue[] Parameters;
}
class Product {
    public string Name;
    public int Count;
}
class IdValue {
    public int Id;
    public int Value;
}

I can't create correct report to show me 3 different tables, where 2 first table get data from Lists and the 3-rd table get data from array.
Please show me the right path.
Vijayan
Top achievements
Rank 1
 answered on 02 Jan 2018
1 answer
696 views

I have recently installed reporting onto my machine. All the example projects works fine but the below one is not loading the report fine and throws exception. 

CSharp.Asp.NetCoreDemo

 

Unable to get report parameters.
An error has occurred.
Unable to establish a connection to the database. Please, verify that your connection string is valid. In case you use a named connection string from the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your application.

It looks like all the reports which connects to DB with .NetCore is not working. 

 

Can you fix and let me know what is the issue? 

Katia
Telerik team
 answered on 02 Jan 2018
8 answers
321 views
Hi guys,

I have the following datatable where question/answer records grouped by group name and might have the optional multiple photos.

Group    Question   Answer   Photo           PhotoIndex
G1          Q1             A1           photo1.jpg  1
G1          Q1             A1           photo2.jpg  2
G1          Q1             A1           photo3.jpg  3
G1          Q2             A2       
G2          Q3             A3           photo4.jpg  1

I would like to display the report where each question/answer record also shows the corresponding images just below it using cross-down approach (let's say 2 images per line):

G1
-----------------------------------
Q1        A1
-----------------------------------
photo1.jpg   photo2.jpg
photo3.jpg
-----------------------------------
Q2        A2
-----------------------------------

G2
-----------------------------------
Q3        A3
-----------------------------------
photo4.jpg
-----------------------------------

My approach was to use the List with two textboxes for question/answer and then placing the second List with the picturebox just below the question/answer textboxes. The first list was grouped by Fields.Group while for the picturebox list I was creating the row group with expression "Fields.PhotoIndex/2" and the column group "Fields.PhotoIndex%2" (following this post ).
But the photos always displayed vertically.

Any suggestions on how to achieve this layout, especially related to the images. There might be several images per question / answer record in my report, while some questions might have none.

Thanks,
Sergey. 
Katia
Telerik team
 answered on 02 Jan 2018
23 answers
1.8K+ views
I have been using the reporting with the SqlDataAdapter that points to a stored procedure. I have had no problems up until now. the stored procedure i'm trying to use, uses temporary tables inside it. it still returns a resultset just as if i used the select statement with a 'real' table. when i try and select the stored proc with the sqldataadpater, i get this message:

invalid object name #tempteams (which is the name of the temporary table within the stored proc).

any suggestions to get around this?

thanks,
susan
Bryon
Top achievements
Rank 2
 answered on 30 Dec 2017
0 answers
150 views

Hi all,

facing quite strange behavior in WPF application where print button in Telerik ReportViewer does not show Print Dialog, insteadd the application crashes.

any ideas

Thanks

Khalid
Top achievements
Rank 2
 asked on 30 Dec 2017
0 answers
134 views

Hi All,

I Deploy a Web Application in Windows Server 2012 Virtual Machine.The UI is Working fine.But the Report is not Working.But It works fine in Local host and the godaddy Sever.Same code is used for all environment i attached the Screen shot.Please any one try to help me to Resolve the Problem.

 

Thank you...

Ramasamy
Top achievements
Rank 1
 asked on 30 Dec 2017
2 answers
637 views

I am having a problem getting a report parameter to work in an MVC application.  The goal is to have the report results filtered by student number.  I have the parameter and filter configured in the report designer.  I can apply the student number to the report when running the report in the designer so this problem is isolated to the MVC application specifically.  Here is some of the key code that (I think) should be sufficient to understand what I am trying to do:

Inside HomeController:

  public ActionResult StudentReport()
        {
           var uriReportSource = new UriReportSource();
            uriReportSource.Uri = "Report1.trdp";
            uriReportSource.Parameters.Add(new Parameter("StudentNumber", "120432"));
            return View();
        }

 

Inside StudentReport.cshtml:

<body>
    @(Html.TelerikReporting().ReportViewer()
        .Id("reportViewer1")      
        .ServiceUrl(Url.Content("~/api/reports"))
        .ReportSource(new UriReportSource() { Uri = "Report1.trdp" })
        .ViewMode(ViewMode.Interactive)
        .ScaleMode(ScaleMode.Specific)
        .Scale(1.0)
        .PersistSession(false)
        .PrintMode(PrintMode.AutoSelect)
        .EnableAccessibility(false)
    )

</body>

 

The error I am getting is: An error has occurred while processing Report 'Report1': Cannot perform '=' operation on System.Double and System.String.

Ivan Hristov
Telerik team
 answered on 28 Dec 2017
3 answers
209 views

     Could someone please explain to me how to do the following.  I have the following ADO.NET table created in the report source (shown below).  How do I make the data available in a report. 

     Our company has been creating a DataSet.xsd in the solution and then add a report dataset that is set to the table in the DataSet.xsd.  Then we add a ObjectDataSource, set it's DataSource to the DataSet in the report and then bind the report (ie: set the report datasource) to the ObjectDataSource.  This will make it's fields available in the report.  Note: We load the ObjectDataSource in the report source, ie: DataSet.ObjectDataSource.Load(dtSource).  The problem with this method is that it requires you to add a new table for your report to the DataSet.xsd everytime you want to pass something that hasn't already been created to the xsd.

     Is there a way to just add a blank dataset to the report, set a ObjectDataSource.DataSource to the dataset and then just load the dataset in the source?  ie:  Skip the DataSet.xsd part?

dt As New DataTable
Dim row As New DataRow

dt.Columns.Add("Id", GetType(Integer))
dt.Columns.Add("FirstName", GetType(String))
dt.Columns.Add("LastName", GetType(String))

row = dt.NewRow()

row("Id") = 1
row("FirstName") = "John"
row("LastName" = "Smith"

dt.Rows.Add(row)

 

Thanks in advance.

 

 

David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 27 Dec 2017
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?