Hi to all,
I have a report in a solution that has several projects referenced between them
I have valued a property value of picturebox with a string in this mode PictureUrl = "pack://application:,,,/Brema.Resources;component/LOGO.BMP";
If I use this url in XAML file of my application it works correctly, but if I use in my report it shows me an errore that says url with wrong format (see attachment).
Why? I read Microsoft documentation about Uri format, but it's all correct, infact, it works as Uri in WPF application.
Hi
I have a problem with alignment of column in report: the data in the column does not start in the same position for each row, and in many of rows in the same column, data start with indent and in many of the other rows , start with negative indent then they are in the same line.
we try to set padding style for TextBox object , and all words are readable but the problem is that : when you see data in column , many of words have too many space from start position.
According to the attachment , you can see that depends on length of characters in each row , indent is more negative.
Thank you for support.
Hi All,
I wanted to pass the viewmodel to report viewer in Reportview.cshiml. but I havn't got any such examples . always seeing the example on to bind the datasource in the ReportController . binding data source from report controller working as expected but looking for help on the view model binding in Razor Syntax.
My Cshtml Code
@using ReportingLibrary
@using Telerik.ReportViewer.Mvc
@using CPGUX.ProjectManagement.Core.Entities
@using CPGUX.Utility.Helpers
@model IEnumerable<ProjectDetails>
@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl(Url.Content("~/api/reports/"))
.TemplateUrl(Url.Content("~/ReportViewer/templates/telerikReportViewerTemplate-FA.html"))
.ReportSource(new Telerik.Reporting.TypeReportSource() { TypeName = typeof(CPGUX.ReportingLibrary.AllProjectsByUser).AssemblyQualifiedName })
.ViewMode(ViewMode.Interactive)
.ScaleMode(ScaleMode.Specific)
.Scale(1.0)
.PersistSession(false)
.PrintMode(PrintMode.AutoSelect)
.Deferred()
)
ReportController.cs
public Telerik.Reporting.ReportSource Resolve(string report)
{
Report reportInstance = null;
if (report.Contains("AllProjectsByUser"))
{
string result = _projectController.GetProjectNumberSession();// new ProjectController().GetProjectNumberSession();
reportInstance = new AllProjectsByUser();
reportInstance.DataSource = _projectService.FindProjectsByUser(IIdentityUser, 100, 0); // don't want to call instead of binding should haven in viewer itself
}
}
I am beginner in Telerik Reporting. I have created an Telerik Report by Telerik Report Q1 2016 Wizard. The designer is showing report well but when i attach it with Telerik Report Viewer it gives following error:
"an error occured while processing Table 'table1':
Unable to establish a connection to the database. Please, verify that your connection is valid. In case you use a named 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 aplicaion.
--------InnerException---------
Format of the initialization string does not conform to specification starting at index 0."
My code is:
private void ReportViewerForm1_Load(object sender, EventArgs e)
{
Report1 rp = new Report1();
reportViewer1.Report = rp;
this.reportViewer1.RefreshReport();
}
Hi to all,
I have a report that has a single ObjectDataSource called CustomerObjectDataSource, this object gives an object of type CustomerReportModel, this one has 2 object CustomerModel and CompanyInformationModel (last one for header title information).
Now CustomerModel has a property that gives List<ConditionModel> that has Date and Description properties.
My report shows CustomerModel properties by "Fields.Propxxxx", I added a Table that I connected through binding DataSource of table using "Fields.Customer.ConditionsList", (I tested that a runtime, ConditionList is valued).
I setted table cells with format "ReportItem.DataObject.RawData.PropOfMyCollection" where PropOfMyCollection is VariationDate and Description.
When I try to render my report table not appears.
Where I wrong?
Is there a way to set the data source of a report to an Entity Data Source that does NOT point to a specific entity? I have a report that I am trying to generate but the report requires data from multiple entities, and I would prefer not to have a sub-report of sub-reports, so I was wondering of there was a way to set the data source to multiple entity objects? If this doesn't make sense or you need any further explanation please let me know. Any information would be appreciated.
Hi to all,
I have a solution with several projects: Client, Entities and Reports.
The last one doesn't see Entities assembly. Then I added Assembly reference, but this code it seems take not effect.... where I wrong?
<
configuration
>
<
configSections
>
<
section
name
=
"Telerik.Reporting"
type
=
"Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting"
allowLocation
=
"true"
allowDefinition
=
"Everywhere"
/>
</
configSections
>
<
runtime
>
<
assemblyBinding
xmlns
=
"urn:schemas-microsoft-com:asm.v1"
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"System.Runtime"
publicKeyToken
=
"b03f5f7f11d50a3a"
culture
=
"neutral"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-2.6.10.0"
newVersion
=
"2.6.10.0"
/>
</
dependentAssembly
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"System.Threading.Tasks"
publicKeyToken
=
"b03f5f7f11d50a3a"
culture
=
"neutral"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-2.6.10.0"
newVersion
=
"2.6.10.0"
/>
</
dependentAssembly
>
</
assemblyBinding
>
</
runtime
>
<
Telerik.Reporting
>
<
assemblyReferences
>
<
add
name
=
"Brema.Entities"
version
=
"1.0.0.0"
culture
=
"neutral"
publicKeyToken
=
"null"
/>
</
assemblyReferences
>
</
Telerik.Reporting
>
</
configuration
>