Telerik Forums
Reporting Forum
1 answer
622 views

I created a report containing a textbox that acts as a button for interactivity purposes.

This button - for sure - must not appear when I print the report nor in the print preview mode.

How can I achieve this?

I saw similar threads like this one:

https://www.telerik.com/forums/hide-certain-elements-when-printing 

But there was no real solution for the problem from Telerik. Anything changed now?

 

Thanks,

Sascha

Ivan Hristov
Telerik team
 answered on 28 Dec 2018
1 answer
205 views

I am embedding the ReportViewer in a WPF application. I have a very long report and I want to provide an easy way for the user to navigate in the report.

 

To achieve an integrated feeling for the user, I'd like to add some buttons to the application that allow the user to jump to certain bookmarks within the report. I cannot use the current page for the purpose, because the length of the sections is dynamic.

 

I found two older threads with a similar requirement, but they were not really solved by Telerik:

https://www.telerik.com/forums/navigate-to-a-bookmark-through-code

https://www.telerik.com/forums/navigating-to-bookmark-from-code

 

Is there some active development regarding this? Or any workaround? If there were events during rendering that allowed me to capture the report page of every bookmark, this would be sufficient. But I couldn't find anything like this.

 

I am also fine with calling internal methods using reflection if that's a quick workaround, because I need the functionality very soon.

 

Thanks,

Sascha

Ivan Hristov
Telerik team
 answered on 28 Dec 2018
2 answers
214 views

I found the custom action to be kind of promising to add functionality to the report. But to make this really useful, we need the complete picture:

First, I added a textbox to the report and added a Custom Action to it.

Then I subscribed to the Enter, Leave and Executing events and added some code to handle them.

 

What I want to achieve:

a) Highlight the "button" simulated with the textbox when the user enters / hovers over it

b) Un-highlight when the user leaves

c) Execute something when the user clicks (this seems to be simple enough).

 

The highlighting doesn't really work. Let me show you my event handler:

 

        public void CustomAction_Enter(object sender, InteractiveActionEventArgs args)
        {
            var b = (Border)args.Element;

            b.BorderBrush = Brushes.DarkGray;
            b.Background = Brushes.Purple;
        }

 

This does something - it colors a part of the textbox purple. But it doesn't fill the entire textbox and also it overlays the text. When I investigate the Border, I see that is has no children. This is not properly working at all and I don't understand the purpose of the Border when it seems to have nothing to do with what we see in the report.

The expected behaviour is a border that matches / is the border of the text and a child in it that is the text as a textblock control.

 

How is this meant to be used?

 

Thanks,

Sascha

Ivan Hristov
Telerik team
 answered on 28 Dec 2018
4 answers
464 views

Hi

I am trying to add my first parameterised report to an ASP.net WebForms application.  I cannot figure out how to pass the parameter.  Having searched, a lot of posts are old, lead to blank pages, examples that use the old report viewer not the HTML 5 one and I cannot convert it etc.

I have created a .trdp file and added it to the project.  It takes a parameter and the report works in preview, if I Hard code the parameter.

My front end code to add the report viewer is:

01.<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ContractDisplay2.aspx.vb" Inherits="Intranet3.ContractDisplay2" %>
02. 
03.<%@ Register Assembly="Telerik.ReportViewer.Html5.WebForms, Version=12.2.18.1129, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.Html5.WebForms" TagPrefix="telerik" %>
04. 
05.<!DOCTYPE html>
06. 
08.<head runat="server">
09.    <title></title>
10.</head>
11.<body>
12.    <form id="form1" runat="server">
13.        <div>
14.            <p>report:</p>
15.        <telerik:ReportViewer ID="ReportViewer1" runat="server"  style="border:1px solid #ccc;"
16.            width="99%" height="99%"/>
17.        </div>
18.    </form>
19.</body>
20.</html>

 

and in my code behind I have this:

1.Dim reportSource As New Telerik.ReportViewer.Html5.WebForms.ReportSource()
2.            reportSource.IdentifierType = Telerik.ReportViewer.Html5.WebForms.IdentifierType.UriReportSource
3.            reportSource.Identifier = "ConsignmentProductReport.trdp"
4.            reportSource.Parameters.Add("AccountNo", "ABC123")
5.            ReportViewer1.ReportSource = reportSource

 

The problem is that when I run it, the report is not rendered.

Please can someone advise how to do this using WebForms / HTML5 viewer and .trdp files?

Thanks

Silviya
Telerik team
 answered on 21 Dec 2018
5 answers
910 views

Hi,

How do I merge at run time , the columns of a row ?

See image attached table.

 

Greetings,

Carlos Carvalho

Todor
Telerik team
 answered on 20 Dec 2018
1 answer
802 views

I faced issue in group footer while preparing my document

In my group footer there is a table. For particular ID the table data should be visible in next page  if no  data is available the report should contain only one page (only detail section data should be visible)but  for me the report has two pages.

Second page is coming with group header section data .

  How can i come over from it any suggestions

 

Silviya
Telerik team
 answered on 19 Dec 2018
8 answers
562 views
I have an InstanceReportSource report to use in my MVC application, so I am using the IReportResolver and CustomReportResolver to set up the report for my reportviewer.  In order to set up the report I need access to Session for an authentication object.  However, Session is not available in the CustomReportResolver method.

Is there anyway to get to Session from there, or can it be modified to do so?

Thanks.
Dan
Todor
Telerik team
 answered on 19 Dec 2018
1 answer
295 views

Hi

i made a web telerik report. I joined a screenshot to show exactly what is my problem. As you can see, the report is fine but there is a line at the left ( look at the red arrow ), it assume that it is the viewer template border. I would like it to be left aligned with the beginning of the toolbox.

I tried to look in debug to see what is the problem with the html and honestly i cannot figure. however, the pointer i debug seems to target the line below but i'm not sure :

<div class="trv-pages-area k-widget" tabindex="1000" data-role="telerik_ReportViewer_PagesArea" role="main" aria-label="Report contents area">

 

anyway, this is the code section in the template :

 

<div class="trv-content" role="form">
<div class="trv-document-map k-widget hidden" data-role="telerik_ReportViewer_DocumentMapArea" >
<div tabindex="200" class="trv-document-map-overlay" role="navigation" aria-label="Document map area"></div>
</div>
<!--<div class="trv-parameters-area k-widget hidden" data-role="telerik_ReportViewer_ParametersArea" >
<div tabindex="300" class='trv-parameters-area-content' role="complementary"></div>
<div class='trv-parameters-area-footer'>
<button tabindex="399" aria-label="Afficher le rapport the report" class='k-button trv-parameters-area-preview-button'>Afficher</button>
</div>
<div class='trv-error-pane k-tooltip-validation k-widget'>
<div class='trv-error-message'></div>
</div>
<div class="trv-parameters-area-overlay"></div>
</div>-->
<div class="trv-pages-area k-widget" tabindex="1000" data-role="telerik_ReportViewer_PagesArea" role="main" aria-label="Report contents area">
<div class='trv-page-container'>
<div class='trv-page-wrapper active'></div>
</div>
<div class='trv-error-pane'>
<div class="centered k-tooltip-validation k-widget">
<div class='trv-error-message'></div>
</div>
<div style="clear: both;"></div>
</div>
</div>
</div>
</div>

Todor
Telerik team
 answered on 19 Dec 2018
2 answers
194 views
Hi,
I am trying to upgrade my KendoReportViewer JS file. I was using 'telerikReportViewer-10.0.16.min.js' before. Now I have upgraded it to 'telerikReportViewer-12.2.18.min.js'. After upgrading, the parameters section of reports is not showing.
I am using KendoReportDesigner for building reports. CAn anyone guide me where I am wrong.

Thanks
Arslan ur Rehman
Top achievements
Rank 1
 answered on 19 Dec 2018
1 answer
784 views

Hi,

Sometimes we are getting an error saying "Client ID with <client id> not found". Is there any way to (programmatically)create a new client id and use it when the client is not found or expired?

Thanks,

Majar

Todor
Telerik team
 answered on 18 Dec 2018
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?