Telerik Forums
Reporting Forum
1 answer
367 views
I'm trying to do some conditional formatting and I want to use an enum from my datasource. What should the value look like? When I uses a string as value, it says that it cannot compare "enum" and string.

Best regards,
Michael
Ivan
Telerik team
 answered on 22 Jul 2010
5 answers
458 views
Hi,

   I have a main report with 8 sub-reports.

   I even checked the KB article on Telerik Reporting renders blank pages, All my main report and sub-reports widths are within the page space. I don't even have crosstab to make data to go beyond right. I have only text and tables which are fixed width fitting within page space. I'm using empty group in my sub-reports in order to have different page header for each sub-report.

  Major thing i have is, many panels in each sub-report. Depending on the data, few panels are made invisible. When all the panels are made visible, i don't have any issues. i don't see any blank pages.  But when few panels are made invisible, i get blank pages. blank pages with just the groupheader section is shown.

  I've tried with KeepTogether = True and False for the report sections, but of no use. is there anyway to fix it?

Thanks in advance.
Peter
Telerik team
 answered on 22 Jul 2010
3 answers
365 views
Hi , Telerik!
    I have a small question: how  can i refresh a report in Silverlight ReportViewer programmatically?
Igor
Top achievements
Rank 1
 answered on 22 Jul 2010
4 answers
227 views
hi

is it possible to set the position of an item with a value from the database?
we want to let the users set where the logo and the address block is positioned.

I tried this but it does not seem to work:

Me.HtmlTextBox1.Location = New Telerik.Reporting.Drawing.PointU(New Telerik.Reporting.Drawing.Unit(CDbl("=Fields.Settings_List_AdresseX"), Telerik.Reporting.Drawing.UnitType.Cm), [...])

With (for testing)
SELECT [...], 10 AS Settings_List_AdresseX FROM  [dbo].[...]

Thanks for help
Fridli Jacober
Top achievements
Rank 1
 answered on 22 Jul 2010
1 answer
341 views
Hi,

   Howcome telerik does not support nested aggregate functions?
   I need to use Min(Sum(Fields.Value)) in a crosstab detail section. How can i achieve this?

Thanks,
sivam
 
Chris Gillies
Top achievements
Rank 1
 answered on 21 Jul 2010
1 answer
207 views

Hi,

How do I format data bound field from int to string with mask like - ToString("00-000") ?

Jacob
Top achievements
Rank 1
 answered on 21 Jul 2010
8 answers
786 views
I keep getting "Failed to map the path '/'. " error while trying to run a report using the WebViewer module.

I thought it might have something to do with AJAX or other controls on the page, so I started fresh on a blank page, but the problem persists.

Also, the report is in my App_Code folder.  I moved it to a different location, but that just made it disappear from the Properties window (Report prop).

Here's a copy of that code.  Any help is greatly appreaciated.

<%

@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>

<%

@ Register assembly="Telerik.ReportViewer.WebForms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerik" %>

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<

html xmlns="http://www.w3.org/1999/xhtml">

<

head runat="server">

<title>Untitled Page</title>

</

head>

<

body>

<form id="form1" runat="server">

<div>

<telerik:ReportViewer ID="ReportViewer1" runat="server"

Report="monthly_admin_log_in_report, App_Code.epo0catl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" />

</div>

</form>

</

body>

</

html>

Chavdar
Telerik team
 answered on 21 Jul 2010
1 answer
106 views
Hi,

I'm trying to add a ReportViewer to my WebApplication. I've added the reportviewer to one of my usercontrols. When I load the usercontrol I get the following error message:

Runtime-fout Microsoft JScript: Sys.ScriptLoadFailedException: The script '/Arbeidsvoorwaarden/Telerik.ReportViewer.axd?name=Resources.ReportViewer.js&version=4.1.10.714&optype=Resource' could not be loaded.

I've attached an image to show what happens (you can see resource errors as well in the image).

We are using the scriptmanager from the AJAX control toolkit (version 3.5.40412.2). For testing we tried both, ajaxcontroltoolkit scriptmanager and telerik scriptmanager but both gave an error (altough a bit different).

<

 

telerik:ReportViewer ID="rvVerlofurenReport" runat="server"></telerik:ReportViewer>

Report is loaded in code behind (just an empty report for testing).

I've added the following rule to my web.config:

<add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type ="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.1.10.714, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode"/>

I hope anybody can help
Best regards Patrick

P.J. Keukens
Top achievements
Rank 1
 answered on 21 Jul 2010
4 answers
336 views
hi guys,

i'm wondering, is there a way to make the ReportViewer skip the printer dialog box when printing a report?
i don't want the user to deal with printing options and want to set these things through code,
things like number of copies, default printer etc.
i tried to find a PreviewPrintReport or something like that - haven't find it.

any suggestions?

thanks.

Peter
Telerik team
 answered on 20 Jul 2010
1 answer
126 views
Hi,

I've added two datasources to my report project. the first one is for the report itself, the second one for a chart.
Please see the code below.

<connectionStrings>
   <add name="ReportPlugin.Properties.Settings.Development"
connectionString="Data Source=*****;Initial Catalog=*****;Integrated Security=True"
       providerName="System.Data.SqlClient" />
 </connectionStrings>


//
// sqlDataSource1
//
this.sqlDataSource1.ConnectionString = "ReportPlugin.Properties.Settings.Development";
this.sqlDataSource1.Name = "sqlDataSource1";
this.sqlDataSource1.SelectCommand = resources.GetString("sqlDataSource1.SelectCommand");
//
// sqlDataSource2
//
this.sqlDataSource2.ConnectionString = "ReportPlugin.Properties.Settings.Development";
this.sqlDataSource2.Name = "sqlDataSource2";
this.sqlDataSource2.Parameters.AddRange(new Telerik.Reporting.SqlDataSourceParameter[] {
new Telerik.Reporting.SqlDataSourceParameter("country.id", System.Data.DbType.Int32, "=Parameters.CountryId.Value")});
this.sqlDataSource2.SelectCommand = resources.GetString("sqlDataSource2.SelectCommand");

private void chart1_NeedDataSource(object sender, EventArgs e)
{
    Telerik.Reporting.Processing.Chart chart = sender as Telerik.Reporting.Processing.Chart;
    chart.DataSource = sqlDataSource2;
}

The first datasource connects perfectly. The second doesn't. They make use of the same ConnectionString.
The error is:
An error has occurred while processing Chart 'chart1':
Unable to connect to database. Please verify that your connection string is valid; in case you use a connection string from the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your application.

Any ideas?

Thnx,
Robert
Peter
Telerik team
 answered on 20 Jul 2010
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?