Telerik Forums
Reporting Forum
1 answer
47 views

I try to create simple ASP MVC application with Telerik Reporting. But I do not see report. And There are not errors.

 

Here is source code

** The linked is removed by admin. Please do not publish publicly telerik Dev assemblies - Telerik End User License Agreement for Telerik Reporting and Telerik Report Designer***

Please help

Stef
Telerik team
 answered on 19 Jun 2015
2 answers
450 views

VS2013, Telerik Reporting Q1 2015, EF 6

I'm attempting my first Telerik Report, but I'm running into a pretty big stumbling point. I have an MVC 5 web app and a separate project with my EF code first data objects. Now I've added a Telerik Reporting project and I'm attempting to create some reports using the entity objects. I added a project reference to my data project - I'm not sure if this is necessary and it shows a small yellow triangle on the reference for some reason.

While creating a new report I choose to use an Entity Data Source. I'm presented with the connection strings it finds in web.config from my web app so I choose the one I'd like to use. On the next screen where it's asking me to choose a context (DbContext or ObjectContext) the box that's supposed to list my contexts is completely empty.

I'm stumped. I guess I could go back to the stand alone report designer and just use SQL to build my reports, but I really want to be able to manipulate the data and do my data selection for my report in code since I already have all my nice POCOs and relationships all built with EF. Is there a good, complete, end-to-end walkthrough for this? There are bits and pieces of documentation, but I haven't found anything that is a complete example all in one place.

Stef
Telerik team
 answered on 19 Jun 2015
1 answer
94 views
Hi guys,

I'm trying to rotate the label that indicates the value of the frame along the x-axis at the bottom of the graph, but I can't find how to edit this... I would like to have the months displayed horizontally and not diagonally

Someone know how can I edit this property?
Stef
Telerik team
 answered on 19 Jun 2015
1 answer
318 views

Hello guys. 

We are storing the TRDX files in the Windows Azure Cloud Storage in a Asp.Net MVC application. Given the *.trdx files are not on the disk, we need to verify at runtime (in a class that implements IReportResolver) if the report has a subreport. If it has, we try to get the trdx (xml content) an set the reportSource of a subReport as a XmlReportSource. Actually, we need to replace a UriReportSource to a XmlReportSource. It works when we do not have parameter, but does not work when we have parameters. Look at the code bellow:

// find a detail section and a subReport on it.
foreach (var section in reportInstance.Items.Where(i => i is DetailSection))
    foreach (var item in section.Items.Where(i => i is SubReport))
    {
        var subReport = (SubReport) item;
         
        // if the subReport is an UriReportSource
        if (subReport.ReportSource is UriReportSource)
        {
            // we try to convert the UriReportSource to XmlReportSource
            var subReportUriSource = (UriReportSource) subReport.ReportSource;
             
            // get an object that represents a report in our system
            var subReportViewModel = reportService.GetSubReportFileName(reportId, subReportUriSource.Uri);
 
            // create an instance of our helper to get the content from the windows azure cloud storage
            var storage = CloudStorageFactory.Create();
 
            // get the xml content
            var xmlContent = storage.GetContent(subReportViewModel.FileName);
 
            // create a XmlReportSource with the xmlContent
            var xmlReportSource = new XmlReportSource() {Xml = xmlContent};
             
            // set the parameters
            foreach (var parameter in subReportUriSource.Parameters)
                xmlReportSource.Parameters.Add(parameter);
             
            // set on the ReportSource
            subReport.ReportSource = xmlReportSource;
        }
    }
 

I am not sure if I can do it at runtime, or what I am doing wrong but it is giving an error like this:

 
Internal Server Error:
An error has occurred while processing the report. Processing canceled. Check the InnerException for more information.Invalid value of report parameter 'PersonID'.

 

Does anybody know what I can try? 

 

Internal Server Error:
An error has occurred while processing the report. Processing canceled. Check the InnerException for more information.Invalid value of report parameter 'PersonID'.
Internal Server Error:
An error has occurred while processing the report. Processing canceled. Check the InnerException for more information.Invalid value of report parameter 'PersonID'.
Internal Server Error:
An error has occurred while processing the report. Processing canceled. Check the InnerException for more information.Invalid value of report parameter 'PersonID'.
Stef
Telerik team
 answered on 19 Jun 2015
1 answer
190 views

I must be missing something. I have a WPF app that I have a report that was designed within VS. I then followed the docs to create a Report Viewer. If I add a value to the report parameters from the designer the report works well. What I would like to do is display a window so the user can make choices mostly check boxes. Then pass the choices to the parameters of the report thru the report viewer.

Thank you,

John

 

Nasko
Telerik team
 answered on 19 Jun 2015
13 answers
780 views
Hi;
When will you be supporting QR-Code printing?

Thanks!
Stef
Telerik team
 answered on 19 Jun 2015
3 answers
133 views
Hi,

Can anyone advise me on the above?

Thanks,
Richard
Stef
Telerik team
 answered on 19 Jun 2015
2 answers
373 views

Hello guys.

I have an application with Telerik Reporting working fine in my environment. Now, we need to publish it on an environment that uses Azure Cloud Storage to store files. We have reports that uses Subreports and it works fine with FileSystem when the trdx file of the subreport is on the same folder of the main trdx. How should it work on the cloud storage? We do not have physical folders in cloud storage, and how subreports should be resolved by Telerik Reporting Viewer?

I would like to know if is there any solution for it on Telerik Reporting? Is there any link or tutorial I can follow?

 Thank you.

 

 

Hinata
Top achievements
Rank 1
 answered on 19 Jun 2015
10 answers
1.1K+ views

in development server its working fine but after migrate to production.

i using db mysql

impossible connector .net to mysql got problem because data access working fine.

 here is the error

An error has occurred while processing Report 'Report2': 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. ------------- InnerException ------------- Unable to find the requested .Net Framework Data Provider. It may not be installed.

 connection string also same with data access connection string.

 

my code

 

public class CustomReportResolver : IReportResolver
    {
        protected TokenBasedView tokenBased { get; set; }
        public Telerik.Reporting.ReportSource Resolve(string reportCode)
        {
 
 
            Telerik.Reporting.Report report = new Report2();
 
            Telerik.Reporting.InstanceReportSource irs = new Telerik.Reporting.InstanceReportSource();
            irs.ReportDocument = report;
            return irs;
        }
 
}

i hope somebody can help me out. 

 

thank you so much

Zak
Top achievements
Rank 1
 answered on 18 Jun 2015
1 answer
432 views

When I print my report with a watermark from code behind, the Watermark text prints as dotted as opposed to printing from the ReportViewer which prints the watermark as solid. How can I get the watermark to print solid like it does in the ReportViewer from code behind?

 

 

// Obtain the settings of the default printer
System.Drawing.Printing.PrinterSettings printerSettings = new System.Drawing.Printing.PrinterSettings();

// The standard print controller comes with no UI
System.Drawing.Printing.PrintController standardPrintController = new System.Drawing.Printing.StandardPrintController();

// Print the report using the custom print controller
Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();

reportProcessor.PrintController = standardPrintController;
Telerik.Reporting.TypeReportSource typeReportSource = new Telerik.Reporting.TypeReportSource();

// reportName is the Assembly Qualified Name of the report
typeReportSource.TypeName = typeof(BuildPlanReportLib.Traveler3).AssemblyQualifiedName;

Report3 rep2 = Report3();
rep2.PageSettings.Landscape = true;

reportProcessor.PrintReport(rep2, printerSettings);

 

 

Stef
Telerik team
 answered on 17 Jun 2015
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?