Telerik Forums
Reporting Forum
5 answers
97 views
Hi All,
I am using telerik webform report viewer version 5.1.11.713 and the corresponding Reporting dll's.
I am having issues with enabling a user to close down a report and continue using the ajaxified web application.
I use the radwindow to load an aspx page that contains the web viewer.  In the Page_Load event, I assign my report document to it.
Some reports may take a couple of minutes to run, and the user may close the radwindow in order to do another task.  It would be expected that the user not receive the report.
The thing is, if the user clicks a button that uses a callback, that callback waits until the Report has completed.
This is unexpected.
Is this the intent of the Report mechanism?  Elsewhere, if a callback is triggered while another callback is being processed, the new callback takes precedence.
Can you please advise as to what can be done to alleviate this issue?
Thanks,
Steele.

My ReportHolder page :
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportHolder.aspx.cs" Inherits="Audit.Audit_Reports.ReportHolder" %>
 
<%@ Register assembly="Telerik.ReportViewer.WebForms, Version=5.1.11.713, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerikrv" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Report Holder</title>
    <style type="text/css">
        html, body, form#form1, div#Content
        {
            margin: 0px;
            padding: 0px;
            height: 100%;
        }
    </style>
</head>
<body >
    <form id="form1" runat="server">
 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        UpdatePanelsRenderMode="Inline">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ReportViewer1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ReportViewer1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
         
            </script>
</telerik:RadCodeBlock>
    <telerik:RadSplitter
            ID="RadSplitter1" runat="server" Height="100%" Width="100%">
            <telerik:RadPane ID="RadPane1" Runat="server" Scrolling="None"
        onclientresized="ResizeViewer">
    <div id="Content">
        <telerikrv:ReportViewer ID="ReportViewer1" runat="server" Height="100%"
            Width="100%" ShowHistoryButtons="False" ShowParametersButton="False">
        </telerikrv:ReportViewer>
    </div>
    </telerik:RadPane>
        </telerik:RadSplitter>
         
     
     
     
    </form>
</body>
</html>

And my code behind :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace Audit.Audit_Reports
{
    public partial class ReportHolder : System.Web.UI.Page
    {
        private Telerik.Reporting.IReportDocument Get_Report(string RepName)
        {
             
            try
            {
                Type t = Type.GetType("Audit.Audit_Reports." + RepName);
                Telerik.Reporting.IReportDocument ret = (Telerik.Reporting.IReportDocument)(Activator.CreateInstance(t));
                foreach (string QRKey in Request.QueryString.Keys)
                {
                    if (QRKey != "Report")
                    {
                        // Is a parameter to set
                        Telerik.Reporting.Report rep = (Telerik.Reporting.Report)ret;
                        if (rep.ReportParameters.Contains(QRKey))
                        {
                            rep.ReportParameters[QRKey].Value = Request.QueryString[QRKey];
                        }
                    }
                }
                return ret;
            }
            catch (Exception oE)
            {
                return null;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Telerik.Reporting.IReportDocument rd = Get_Report(Request.QueryString["Report"]);
            if (rd != null)
            {
                ReportViewer1.Report = rd;
                this.Title = rd.DocumentName;
                ReportViewer1.ShowParametersButton = true;
            }
            }
        }
         
    }
}

Steele
Top achievements
Rank 1
 answered on 06 Sep 2011
1 answer
139 views
Is it possible to create a vertical line chart or even just rotate a standard chart 90 degrees as per the attached image?
IvanDT
Telerik team
 answered on 05 Sep 2011
1 answer
66 views
Why are the textboxes scrunched up when the HTML preview mode is shown?  How can I actually design my report and know exactly what it will look like when it displays?  My textboxes are perfectly formatted and aligned.  these textboxes do NOT contain data, they are simply act as labels, so it doesn't make sense to me why the HTMl preview mode makes the width smaller than design time??

Thanks.


Peter
Telerik team
 answered on 05 Sep 2011
3 answers
61 views
I have Telerik Reporting Q3 2010, I have VS 2008 and VS 2010 installed.  I'm developing a SL4 application in VS 2010 but I don't see any Telerik ReportViewer control or Telerik in the menu bar.  In VS 2008 I do see Telerik ReportViewer control and Telerik is in the Menu bar ... am I missing something?

My assumption is that Telerik Reporting works with SL4 applications also?

Any info is appreciated,

Thanks, Rob.
Peter
Telerik team
 answered on 05 Sep 2011
5 answers
142 views
HI,

I have this error trying to put a report in production, any idea? I'm using Telerik Reporting 5.0. I'm trying to show a picture, I don't know if my problem is related to configuration or the picture itself.
Thank you.
Hrisi
Telerik team
 answered on 05 Sep 2011
3 answers
1.1K+ views
Hi All,

how to auotmatically resize the column headers of the report table at runtime? And also each report should not extend to next page. Do we have something like creating a lock in sql server reporting for not letting the report move another page?

thanks in advance....
Peter
Telerik team
 answered on 05 Sep 2011
5 answers
71 views
Hi

after reading some threads , i know that we can't use the raddatafilter for the reporting or we don't have any similar components like that in the reporting.

However, how can i get that similar function of the raddatafilter for my reporting

For example, if my radgridview has 3 columns (last name, first name, age)

then i want to be able to filter by Last Name or First name or age ( a drop down box for them will be the best solution). I don't want to have seperated box for each of them (in my real case, i will have a lot of field for the table)

then another drop down to let the user choose the "operator"
and another field to let the user type the value

a function which is similar to the raddatafilter

In summary, i want to achieve something which can let me filter all of the possible Field names in my table without having separated component for each fields. And then let the user print it (having preview option )

I hope my explanation is clear enough

thank you 
Peter
Telerik team
 answered on 05 Sep 2011
1 answer
415 views
Hi there,
the goal that I need to reach is to hide a specific group total row in a crosstab report, based on the value of a field.
With reference to the attached picture, I want that row number 3 (the first group total row) is not visible.
Just to be more clear, it is like if in the "Product Sales per Period" sample report I want to hide the "totals" row when the main category is "Accessories".
I've tried in code behind with this, but only the color style works:
Private Sub Crosstab1_ItemDataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles Crosstab1.ItemDataBound
  Dim table As Telerik.Reporting.Processing.Table = DirectCast(sender, Telerik.Reporting.Processing.Table)
  For Each row As Telerik.Reporting.Processing.TableRow In table.Rows
    If row.Index = 3 Then
      For colIndex As Integer = 0 To table.Columns.Count - 1
        Dim cell As Telerik.Reporting.Processing.ITableCell = row.GetCell(colIndex)
        If cell.RowIndex = row.Index AndAlso cell.ColumnIndex = colIndex Then
          Dim item As Telerik.Reporting.Processing.ReportItem = cell.Item
          If TypeOf (item) Is Processing.TextBox Then
            Dim txt As Processing.TextBox = DirectCast(item, Processing.TextBox)
            item.Visible = False  'does not work
            txt.Visible = False 'does not work
            txt.Height = New Telerik.Reporting.Drawing.Unit(0)  'does not work
            txt.Style.Color = Color.Red 'it works !
          End If
        Else
          ' Do nothing. This is part of a merged table cell
        End If
      Next
    End If
  Next
End Sub

I've tried to use a Filtering expression for the crosstab, but if apply an expression on the main category field, obviously the WHOLE group gets hidden/displayed, not just the totals row of that group. (NOTE: using the operator Not Like generates an error when previewing, while the same filter with Like operator works. Is it correct ? - see attachment 2)

Please explain me how can I have control over the row of a crosstab, maybe with an example.
I'm using Reporting Q2_2011_v5_1_11_713
TIA
Ubaldo
Hrisi
Telerik team
 answered on 05 Sep 2011
0 answers
87 views
Solved. Thanks!!
Juan
Top achievements
Rank 1
 asked on 03 Sep 2011
1 answer
81 views
Hi,

We have a report that prints fine on the client's WinXp machine.  They received new Win7 machines today and the reports are now printing at a shrunken, almost microscopic size when printed from the ReportViewer.  The report looks fine in the ReportViewer but when  printed it prints at a shrunken size.  We tried this on 2 different computers to 2 different printers with the same result.  I tried saving the report as pdf from the ReportViewer, opened it in Adobe, and it printed fine.  What is strange is that we have this same report at other locations that are using Win7 without a problem.  The report page settings is Portrait;Letter.

Also, the same application has a few ActiveReports in it (we are slowly converting them to Telerik) and they print fine.

Do you have any suggestions or recommendations?

Thank you.
David A.
Top achievements
Rank 1
 answered on 02 Sep 2011
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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?