Hi,
How do I format data bound field from int to string with mask like - ToString("00-000") ?
<%
@ 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>
<
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
<
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;
}
Hello,
I am having some troubles building my first report with Telerik Reporting. I read the docs in order up to this point. I followed the "creating a simple report page" and it seems like all went well for building the library with one simple report. However, onto the next step, displaying the report in a report viewer in wpf does not work. First off, there is no dock property as shown in step 4. The bigger problem however, is setting the report property of the reportViewer.
Here is a code snippet:
Public Class ReportView
Private Sub WindowLoaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
Dim routeReport as New ReportingLibrary.RouteReport
ReportViewer1.Report = routeReport
End Sub
End Class
And here is the error that I get:
Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception.
RouteReport.vb is report that was created with the report wizard, and previews correctly. I checked the target framework .NET Framework 4.0 (not the client profile). Any suggestions would be greatly appreciated.
Thanks in advance