Telerik Forums
Reporting Forum
4 answers
337 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
154 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
260 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
111 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
448 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
99 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
148 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
226 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
1 answer
680 views
Hello,

currently evaluating Telerik Reports. I try to use Telerik Reports hosted by the Telerik Reporting REST Services in an existing Web API project bound to the HTML5 viewer.

It works basically, but in my ObjectDataSource that is bound to the report I have to load data async from an existing backend service. The method gets triggered but the result is never awaited. All I get is the following error:

An error has occurred while processing TextBox 'textBox1': The expression contains object 'Start' that is not defined in the current context.

How do I load data asynchronous to bind them to the report? Possible at all?
Stef
Telerik team
 answered on 17 Apr 2014
1 answer
275 views
I recently disabled PDF font embedding on the reports i generate.  Since then, i've had reports from a couple clients that the text doesn't show up in PDFs when viewed with Chrome or IE's native PDF viewers.  I've tried Times New Roman, Arial and Georgia, but none of them work for the client.  Has anyone run into this before?  

Here's what i added to my web.config:

  <Telerik.Reporting>
    <Extensions>
      <Render>
        <Extension name="PDF">
          <Parameters>
            <Parameter name="FontEmbedding" value="None"/>
            <Parameter name="DpiX" value="600"/>
            <Parameter name="DpiY" value="600"/>
          </Parameters>
        </Extension>
      </Render>
    </Extensions>
  </Telerik.Reporting>
Stef
Telerik team
 answered on 16 Apr 2014
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?