Telerik Forums
Reporting Forum
1 answer
623 views

Hello,

 

I have a website project that prints reports fine running locally but once loaded to a webserver it starts to throw exception "Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application."

Code I'm using to print report is:

 

    public void PrintReport(Report report, string printerName)
    {
        Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
        InstanceReportSource instanceReportSource = new InstanceReportSource();
        PrinterSettings psettings = new PrinterSettings {
            PrinterName = printerName
        };

        instanceReportSource.ReportDocument = report;
        reportProcessor.PrintReport(instanceReportSource, psettings);
    }

 

I do need to signify exact printer to print to as well as it needs to be silent.  How come this only works locally?

Stef
Telerik team
 answered on 13 Apr 2017
13 answers
274 views

I purchased DevCraft Complete and I'd like to get started with reporting. Does Telerik provide any tutorials for getting started with Reporting? I was able to find one tutorial but that was from 4 years ago. I'm sure a lot has changed since then.

Stef
Telerik team
 answered on 11 Apr 2017
7 answers
646 views
I have Visual Studio 2015.I have downloaded Telerik.ReportDesigner application file.I am able to use data source like csv data source , SQL data source. To use Entity Data Source i built an Entity Data Model (ADO.Net Entity Data Model) and i copy their connection string from web.config to the connection string which is asked when i create Entity Data Source but it doesn't show anything on Choose a Context window. would anyone please help.
Stef
Telerik team
 answered on 11 Apr 2017
1 answer
654 views

I'm really having a hard time getting Telerik Reports to do anything for me.  The latest version says it's .NET Core but the first thing you do is remove .NET Core from the project and add the full framework.

I have an existing application that is entirely .NET Core.  This includes front-end, EF, the API, and the middle-tier.  All my business models are .NET Core assembly.

We are not going to add the full framework to any of our existing projects.  Therefore Telerik Reporting must be in assembly which will have a front-end used solely for showing reports selected by the user in our main web application.  However, since all the business models are in a Core only assembly, and I have no interest in duplicating all the models just for this Telerik only project, I am hoping that I can feed the report JSON retrieved from the API.

Is this possible?  I'm looking at the datasources and I'm not clear if one of those would work, or if there is another way to provide this data.

Stef
Telerik team
 answered on 11 Apr 2017
3 answers
129 views

Can we pass html elements such as <button onclick = "dosomething()"> </button> to  htmltextbox in html5 report viewer

 

Stef
Telerik team
 answered on 11 Apr 2017
1 answer
181 views

Hello,

 

I'm trying to create new table report based on ObjectDatasource and as result I get empty table duplicates. Please see Screenshot_1.png

Could you please advise how the issue could be solved?

Stef
Telerik team
 answered on 10 Apr 2017
5 answers
763 views

Hi,

I'm using telerik report designer R3 2016, and i want to make my textbox dynamic, the textbox should increase according to the number of characters in a word.Please help.

Stef
Telerik team
 answered on 10 Apr 2017
1 answer
113 views
I tried creating simple report with table, it renders fine in x86 but not in 64. Also not rendering in VS2015, getting system out of memory (data set only 1000 rows)
Stef
Telerik team
 answered on 10 Apr 2017
1 answer
1.4K+ views

How can i load report from file and change data source?

 

For example:

I have "report1.trdp", saved in "c:\reports". 

MyRptService needs to open it, pass data as object collection (matching field names in report) and output to pdf.

In below example I can open report and output to pdf but I dont see any way to set different datasource

 Telerik.Reporting.Processing.ReportProcessor reportProcessor =
                    new Telerik.Reporting.Processing.ReportProcessor();

                // set any deviceInfo settings if necessary
                System.Collections.Hashtable deviceInfo =
                    new System.Collections.Hashtable();

                var uriReportSource = new Telerik.Reporting.UriReportSource();

                // Specifying an URL or a file path
                uriReportSource.Uri = @"C:\data\reports\Report1.trdp";

                    

                Telerik.Reporting.Processing.RenderingResult result =
                    reportProcessor.RenderReport("PDF", uriReportSource, deviceInfo);

                string fileName = result.DocumentName + "." + result.Extension;
                string path = System.IO.Path.GetTempPath();
                string filePath = System.IO.Path.Combine(path, fileName);

                using (System.IO.FileStream fs = new System.IO.FileStream(filePath, System.IO.FileMode.Create))
                {
                    fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
                }

Stef
Telerik team
 answered on 10 Apr 2017
1 answer
178 views

Hello,

We have a WPF project that's referencing both Telerik.Windows.Controls.Chart and Telerik.Windows.Controls.Charting.  In that project, I'm including a simple LineSeries within a RadCartesianChart in XAML.  The associated .xaml.cs file specifies only

using Telerik.Windows.Controls.ChartView;

 

When building, I'm getting an ambiguous type reference error for "LineSeries", so I tried adding a XAML namespace for clarification: 

xmlns:telerik_ChartView="clr-namespace:Telerik.Windows.Controls.ChartView; assembly=Telerik.Windows.Controls.Chart"

This code creates an invalid namespace identifier, however.  Can you please advise?

Thank you,

E

 

 

 

E Pons
Top achievements
Rank 1
 answered on 07 Apr 2017
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?