Telerik Forums
Reporting Forum
10 answers
435 views
Hi,

i have a report parameter defined (Screenshot#1)
i want to set a Visible property of a subreport to whatever the user input at the visible report parameter.

i use the following code at the Master Report:
private void subReport1_ItemDataBound(object sender, EventArgs e)
{
            (sender as Telerik.Reporting.Processing.SubReport).Visible = (bool)this.ReportParameters["ShowField"].Value;
}

no matter what i do the Value of the parameter is always True, even if i don't give the parameter a value when i define it.
doesn't matter if i check or uncheck the checkbox of the parameter shown of the screen.

please can someone help me?

thanks.
Wadigzon
Top achievements
Rank 1
 answered on 14 Feb 2013
1 answer
68 views
Hi Team,


I have been facing an error as IReportDocument is Ambiguous in namespace 'Telerik.reporting' 

I have removed all my old versions and installed new Telerik reporting Q3 sp1 2012 after this change am getting this error.

Imports System.Collections.Generic
Imports Telerik.Reporting
 
Partial Class _Default
    Inherits System.Web.UI.Page
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
        Dim reportName As String = Server.UrlDecode(Me.Request.QueryString("ReportName"))
 
        If Not String.IsNullOrEmpty(reportName) Then
            Dim reportType As Type = Type.[GetType](reportName)
            Dim report As IReportDocument = DirectCast(Activator.CreateInstance(reportType), IReportDocument)
            Me.ReportViewer12.Report = report
            Me.Page.Title = reportType.Name
Steve
Telerik team
 answered on 14 Feb 2013
5 answers
949 views
Hello,
I have a textbox in pageheader that have an expression to fill it's value
and i have another textbox in GroupHeaderSection.
the expression is working fine in header, but in groupheadersection it don't get data correctly.
i am trying to set the value of second textbox to equal first textbox, but i am not able to do so.
it is always getting me the expression of the first textbox.

How can this be done ? and at what stage or time expression is evaluated ?
Steve
Telerik team
 answered on 14 Feb 2013
1 answer
593 views
Hello,
I'm new to telerik reporting and programming
Now i have problem about display image in report
this is my image path  http://xxxxxx/upload/Companies/Contact/Fields.CompID
/Fields.ContactImgPath

I try this article http://blogs.telerik.com/telerikreportingteam/posts/09-02-20/telerik-reporting-using-the-picturebox-item.aspx
it work If I put this function in PictureBox
= Format("http://xxxxxx/upload/Companies/Contact/7/{0}",Fields.ContactImgPath)
but number 7 it should be Fields.CompID from database like Fields.ContactImgPath
How i do?

PS. Sorry for my english


Maliwan
Top achievements
Rank 1
 answered on 14 Feb 2013
14 answers
426 views
Hi!  Our company is looking into purchasing the latest version of Reporting, so we grabbed the free trial version to try it out and see if it will work for us.  My boss gave me until this Wednesday to present a PDF export that suits our needs.

Everything's working great so far, except I can't figure out how to remove borders around an element that has been assigned an Action to Navigate to Url.  How can I go about doing this?

Thanks in advance!
Steve
Telerik team
 answered on 14 Feb 2013
2 answers
138 views
Hi,

I see in the release notes for Telerik Reporting Q3 2012 Service Pack 1 for the Silverlight ReportViewer that you've fixed "Support for print operation without invoking a print dialog". Can you tell me/provide an example how to use this feature? I cannot find any information about it anywhere.

Tomas
Tomas
Top achievements
Rank 1
 answered on 14 Feb 2013
1 answer
74 views
Does Telerik Reporting install any fonts?
Steve
Telerik team
 answered on 14 Feb 2013
4 answers
195 views
We have a report using Q3 2010 Reporting that contains html tags that we need for the on screen report, but absolutely dont want for export to PDF and other export formats. I see we can do a StripHTMLTags easy enough but when using that, it affects the formatting of the online report viewer presentation adversely. Is there a way to do StripHTMLTags Only if we are exporting? Thanks.
Maliwan
Top achievements
Rank 1
 answered on 14 Feb 2013
12 answers
340 views
Hi, 

How open .trdx file in Silverlight ReportViewer?
Dave Navarro
Top achievements
Rank 2
 answered on 13 Feb 2013
4 answers
156 views
I have created a report in Silverlight. The report has a string parameter that its value is set in code behind of MainPage.xaml like this:(the MainPage.xaml contains a Silverlight ReportViewer)

public MainPage()
 {
     InitializeComponent();
     this.ReportViewer1.RenderBegin += new RenderBeginEventHandler(ReportViewer1_RenderBegin);
 }
 
 void ReportViewer1_RenderBegin(object sender, RenderBeginEventArgs args)
 {
     args.ParameterValues.Add("reportParameter", "Header1;Header2;Header3");
 }

I want to split this parameter  by comma in MyReport.cs and add "Header1", "Header2" and "Header3" to GroupHeaderSection Items of the report.

First, I write below code in the constructor method of report:
string[] splitedReportParameter =  this.ReportParameters["reportParameter"].Value.ToString().Split(',');
for (int i = 0; i < splitedReportParameter.Length; i++)
{
    Telerik.Reporting.TextBox CaptionTextBox = new Telerik.Reporting.TextBox();
    labelsGroupHeader.Items.AddRange(new ReportItemBase[] { CaptionTextBox });
    CaptionTextBox.CanGrow = true;
    CaptionTextBox.Name = splitedReportParameter[i] + "CaptionTextBox";
    CaptionTextBox.StyleName = "Caption";
    CaptionTextBox.Value = splitedReportParameter[i];              
}
but, it didn't work and I think the reason is that the report parameter isn't set in the constructor. Moreover, I have a problem related to Location and Size of each TextBox.

Thanks,

Negin

Negin
Top achievements
Rank 1
 answered on 13 Feb 2013
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?