Telerik Forums
Reporting Forum
7 answers
473 views
Hi,

I am using the telerik reporting to display reports in my project.
The print works ok locally but the problem is that when I host the website the print button click shows the dialog box to print aftera long period and it does the postback on click too.

What I want is to display the dialog box to print as and when the user clicks on print button on client side only. The click should pop-up the dialog to print on client event only.

I am not able to search the client id of the print button. I have verified the code below:
 string printScript = string.Format("{0}.PrintReport();", this.SearchReportViewer.ClientID);  
            this.ClientScript.RegisterStartupScript(this.GetType(), "ReportPrint", printScript, true); 

I does not solve my purpose as it popu-ups the print dialog at startup of the page. Please help its somthing urgent.

Thanks,
Yuvika
Peter
Telerik team
 answered on 23 Apr 2014
4 answers
395 views
I've created a report containing three different grids on the same report.  I did this by placing three different Table Wizards on the same Details section of the the report designer.  It works great when displayed as an html page. The problem however, is when i export it to pdf, exel, or word.  The report just keeps repeating intself for 49 pages.  Forty nine pages of the same data grids repeating over and over again.  Has anyone had this problem before?  One solution might be to use a BookReport that displays just one grid at a time but I would like not to have to start all over again. 

Thanks, Rick Pace.
Manognya
Top achievements
Rank 1
 answered on 22 Apr 2014
4 answers
287 views
I’m not able to view the report preview in at design time.  I receive an error saying I need to provide valid data for all parameters.  I’m using an objectdatasource with its datasource set to a data class.  I thought there was a way to provide parameter values for use at design time for just this scenario.  When I right click on the report and view report then right click the parameters and click edit parameters, there is a place for each parameter to provide a constant value, I did that and still I receive the error message.  When I configure the datasource there was a pane in the setup wizard that allowed design time parameters to be added, but I cannot seem to get back to that pane anymore for some reason.  If the data method of the data class were being called with no parameters values then I would get an empty dataset, so it appears that it is not getting that far.  I have the connection string hardcoded in the data class. When I had the report setup with a sqldatasource the preview worked fine

So when using a parameterized method in a dataclass with the objectdatasource is there any way to have the report preview work?

Here is the signature of my data method:
 
    <DataObjectMethod(DataObjectMethodType.Select)> _
    Public Function TransferReportList(ByVal sn As String, _
                                       ByVal tz As Single, _
                                       ByVal transferBy As Integer, _
                                       ByVal sortBy As Short, _
                                       ByVal allDates As Boolean, _
                                       ByVal FromDate As Date, _
                                       ByVal ToDate As Date, _
                                       ByVal direction As Short) As List(Of DataTransfer)
 
 
Kenneth
Top achievements
Rank 2
Iron
 answered on 18 Apr 2014
2 answers
129 views
I've created my first report using the Telerik Reporting...Some 5160 Labels and when I try to print the labels are all messed up.  I have two questions regarding this issue...

1 - Can a report be viewable without having to use the Telerik Report Viewer? (I'm sure it can but any guidance on how to achieve this would be appreciated)

2 - Why is there a blue border around the content and the labels obviously do not line up when sent to the printer.

Sorry if this has been covered but I looked everywhere and couldn't find an issue...this is my first attempt at a report and I'm sure I missed something.

Thanks in advance..

See attached for screen shots

Stef
Telerik team
 answered on 18 Apr 2014
4 answers
227 views
I'm trying to integrate Telerik reporting functionality into Orchard. I've created a custom module that serves up a view containing the ReportViewer syntax, as below:

    <div id="reportViewer1" class="k-widget">
        loading...
    </div>
    
    <script type="text/javascript">

    $("#reportViewer1")
        .telerik_ReportViewer({
            serviceUrl: "/api/CustomReports/reports",
            templateUrl: "/Modules/CustomReports/Reports/templates/telerikReportViewerTemplate.html",
            reportSource: {
                report: "~/Modules/CustomReports/Reports/PlayerCurrentContract.trdx",
                parameters: {
                    /*ReportYear: "2003"*/
                }
            },
            viewMode: "ViewModes.INTERACTIVE",
            scaleMode: "ScaleModes.SPECIFIC",
            scale: "1.0"
        });

    </script>


The module attempts to implement the Telerik REST Api in a controller, indentical to the ReportsController in this guide.
 
My problem is that the ReportViewer's requests to the controller aren't getting through in most cases (verified using Fiddler that the requests are formatted correctly). So for example:

    http://localhost:30301/api/CustomReports/reports/clients/     // Works, response contains a client ID
    http://localhost:30301/api/CustomReports/reports/clients/124902-a308/parameters     // returns a 404


I'm almost certain this is a routing issue, but I'm not sure how to solve it. Orchard doesn't easily give you access to a HttpContext for the ReportsControllerConfiguration.RegisterRoutes() call, so I set up a little hack in Orchard.WebApi.DefaultOrchardWebApiHttpHttpControllerActivator class:

            private bool _reportsRoutesRegistered;
            public IHttpController Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType) {

            if (!_reportsRoutesRegistered) {
                _reportsRoutesRegistered = true;
                _configuration.Routes.MapHttpRoute(
                    name: "CustomReportsApi",
                    routeTemplate: "api/{controller}/reports/{id}",
                    defaults: new { id = RouteParameter.Optional }
                );
                ReportsControllerConfiguration.RegisterRoutes(_configuration);
            }
            ...


I don't seem to get any exceptions doing this, but obviously something isn't working correctly. I understand that this is a fairly obscure issue (not many posts about using Telerik Reporting in Orchard on the web), but I would greatly appreciate any assistance. Thanks!
Stef
Telerik team
 answered on 18 Apr 2014
1 answer
86 views
I changed one of my report parameters to allow Null, the data query returns valid data when the parameter is Null, and yet I keep getting an error in Telerik report designer when attempting to do a report preview with the parameter set to Null. I'm using Q1 2014. Is this a bug with the system? I've never had this issue before.
Stef
Telerik team
 answered on 18 Apr 2014
3 answers
404 views
Hi,

I am new to Telerik report viewer. I am trying to pass parameters programmatically to a report viewer report on an asp.net web form. I found the article "Using Report Parameters programmaticall", but I can't see an ".add" function for the control.

ReportViewer1.Report.ReportParameters.


I also can't do: ReportViewer1.Report.ReportParameters["ManagerID"].Value = "123";

Can you please tell me what I am doing wrong.

Regards

Dave
Stef
Telerik team
 answered on 18 Apr 2014
2 answers
87 views
Is it possible to deserialized and run a report created with standalone report designer where the report uses a user function?  Note that I was able to deserialize and run a report created without a user function. I have reports created by end users using the report designer that are using user functions and I am looking for a way to run them using a command line application that I am building.

Thank you, Dan
Stef
Telerik team
 answered on 18 Apr 2014
1 answer
126 views
I am evaluating the Telerik Report Designer at the moment. But I have found very little documentation on using the Standalone Report Designer. In addition, the Standalone Report Designer seems to have very little functionality compared to what I've found in the Demos and other Documentation (which appear to be using Telerik Reporting inside Visual Studio).

Is Telerik Reporting *intended* to be used within a development environment? Is it more scalable/extensible inside VS?

So far, I haven't seen the Standalone Report Designer be able to compare with the flexibility of other Report Designers. I find this difficult to digest since I've read nothing but raves about Telerik.

Any information and points in the right direction would be much appreciated. Thanks!
Peter
Telerik team
 answered on 18 Apr 2014
2 answers
203 views
Hello,
when i export my Reports to XLS, the Column "A" in Excel is mergde with Column "B".
I only have a table on my Report.....

Whats going wrong?
Nasko
Telerik team
 answered on 17 Apr 2014
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?