Telerik Forums
Reporting Forum
3 answers
98 views
Hello,

I'm not able to separate the bars to display according to the label. How can I separate a bar the other?
Steve
Telerik team
 answered on 27 Nov 2012
1 answer
350 views
Hello,

As a feasibility study on whether the Telerik Reporting control is fit for our purpose, we're trying to create the above and have downloaded / tweaked some sample code from this forum but the final solution is not getting us where we want to be.

I want to add columns to a table object at runtime
  • the table will have
    • column headers
    • groups
      • each group will have a
        • group header
        • group footer and
        • a subtotals column (on a quantity column)

The core of the code is shown below

The group headers / footers are NOT displaying - once this is accomplished the rest should be easy 

Telerik gods we beg you, please tell us what we're doing wrong!!!

 

//DataSet passed in as parameter

 

foreach (DataColumn dc in reportDS.Tables[0].Columns)

{

 

//Add table column group

 

TableGroup tableGroup1 = new Telerik.Reporting.TableGroup();

tableGroup1.Sortings.Add(

 

new Sorting(grpTitle1, SortDirection.Asc));

tableGroup1.Name =

 

Group1";

 

//tableGroup1.Groupings.Add("1=1");

 

 

//tableGroup1.Groupings.Add(new Grouping());

tableGroup1.Groupings.Add(grpTitle1);

this.table1.ColumnGroups.Add(tableGroup1);

#region Grouping

 

 

if (!groupingAdded)

{

 

Group group = new Group();

Grouping groupExpression = new Grouping(grpTitle1);

group.Groupings.Add(groupExpression);

group.Sortings.Add(

 

new Telerik.Reporting.Sorting(grpTitle1, Telerik.Reporting.SortDirection.Asc));

group.GroupHeader =

 

new GroupHeaderSection();

group.GroupHeader.Height =

 

new Unit(10.0, UnitType.Mm);

group.GroupHeader.Style.BackgroundColor =

 

Color.LightSteelBlue;

Telerik.Reporting.

 

TextBox tbxGroupHdr = new Telerik.Reporting.TextBox();

tbxGroupHdr.Value =

 

"=" + grpTitle1;

tbxGroupHdr.Size =

 

new SizeU(new Unit(10, UnitType.Mm), new Unit(30.0, UnitType.Mm));

group.GroupHeader.Items.Add(tbxGroupHdr);

group.GroupFooter =

 

new GroupFooterSection();

group.GroupFooter.Height =

 

new Unit(10.0, UnitType.Mm);

group.GroupFooter.Style.BackgroundColor =

 

Color.LightYellow;

Telerik.Reporting.

 

TextBox tbxGroupFtr = new Telerik.Reporting.TextBox();

tbxGroupFtr.Value =

 

"Group Footer";

tbxGroupFtr.Size =

 

new SizeU(new Unit(10, UnitType.Mm), new Unit(30.0, UnitType.Mm));

group.GroupFooter.Items.Add(tbxGroupFtr);

 

this.table1.Report.Groups.Add(group);

groupingAdded =

 

true;

}

#endregion

 

 

//Add table body column

 

//this.table1.Body.Columns.Add(new Telerik.Reporting.TableBodyColumn(Unit.Inch(1)));

txtColumnHdr =

 

new Telerik.Reporting.HtmlTextBox();

SetTextboxStyle(count, columnCount, dc.ColumnName, fntHdr,

 

TextBoxType.Group, ref txtColumnHdr);

tableGroup1.ReportItem = txtColumnHdr;

               

 

 

txtColumnBdy =

 

 

new Telerik.Reporting.HtmlTextBox();

SetTextboxStyle(count, columnCount, dc.ColumnName, fntBdy,

 

TextBoxType.Item, ref txtColumnBdy);

 

this.table1.Body.SetCellContent(0, i++, txtColumnBdy);

 

this.table1.Items.AddRange(new ReportItemBase[] { txtColumnHdr, txtColumnBdy });

count++;

}



IvanY
Telerik team
 answered on 27 Nov 2012
7 answers
193 views
Hi,

I tried to put a sub report in a list of 3 items,  but the subreport only took the information from the first item and repeated for 3 times.

Im not sure what I have missed.  Could you provide me an sample project to help me set it up?  Much appreciated!


Regards,
Bill 
Roland
Top achievements
Rank 1
 answered on 27 Nov 2012
5 answers
513 views
I am experiencing a very peculiar issue using the Telerik Reports(version 2012 Q1) on an ASP.NET 3.5 web application . The same reports as well as the other controls on the ASP.Net page function properly when there is less data but when there are a lot of rows(1000 or so) on the report's table it does not get rendered properly. Some of the data appears at random position in the report viewer. Even the header gets shifted to the bottom of the report. Besides this the rest of the ASP.NET page controls stop functioning correctly for example the buttons do not interact normally any longer.

It seems like the data in the report viewer is not getting formatted properly because of the large number of rows resulting in corruption of HTML output. Can you please help us troubleshoot and resolve this issue? As I understand there is no in-built paging on the report viewer leading to all the data being pulled at once is there any way to develop the report to render fewer items at a time?
Robert Michels
Top achievements
Rank 1
 answered on 26 Nov 2012
4 answers
280 views
I'm trying to connect to an Entity Model using an EntityDataSource but I'm struggling to work out how to do this.

I get to the "Choose Your Data Connection" bit and I "Specify a new connection string" ...

metadata=res://*/MyDB.Model.csdl|res://*/MyDB.Model.ssdl|res://*/MyDB.Model.msl;provider=System.Data.SqlClient;provider connection string="Data Source=MyServer;Initial Catalog=MyDB;Persist Security Info=True;User ID=MyUser;Password=MyPassword;MultipleActiveResultSets=True"

Then I select "Yes, save this connection string with the following name" ...

But then the "Choose an Object Context" dialog is blank.

How does the Report Designer know where to get this? There is no mention of referencing the assembly (MyDB.Model.dll) containing the csdl, ssdl and msl files?

Please don't refer me to any of these ...
http://www.telerik.com/help/reporting/entitydatasource-wizard.html
http://www.telerik.com/help/reporting/entitydatasource-retrieving-data-from-an-entity-data-model.html
http://www.telerik.com/help/reporting/entitydatasource-connecting-to-entity-data-model.html




Darryl
Top achievements
Rank 1
 answered on 26 Nov 2012
5 answers
1.7K+ views
Hi All,

I am getting a very weird error that only appears when I refresh a report or try to export it.  I am guessing that both times the code behind is doing the same requery on the db or something.

The error is: An error has occured while processing Report '':
member

I have no idea where the member bit comes from - there are no variables called member.  Any immediate ideas where this comes from?  If not then I'll create a support ticket with the report inside it.

Regards,

Jon
Steve
Telerik team
 answered on 26 Nov 2012
1 answer
134 views
Dear Telerik,

Please help me. I am stuck for two weeks trying to solve what is really my problem. I have posted my problem before but nobody posted their suggestions or solutions.
I have a local web server https://unowos/wos
local folder in web server is c:\wosdata\wosweb. ( publishing is pointed to this folder)

According to some blogs , i try to access the reportsevice.svc directly and it will give me a specific error.
here is the error message.
Could not load file or assembly 'Telerik.Reporting, Version=6.2.12.1017, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Telerik.Reporting, Version=6.2.12.1017, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The system cannot find the file specified.
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
 
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Reporting, Version=6.2.12.1017, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' could not be loaded.
 
 
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
 
  
 
Stack Trace:
 
 
[FileNotFoundException: Could not load file or assembly 'Telerik.Reporting, Version=6.2.12.1017, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The system cannot find the file specified.]
   System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType) +0
   System.Reflection.RuntimeMethodInfo.get_Signature() +166
   System.Reflection.RuntimeMethodInfo.GetParameters() +38
   System.ServiceModel.Description.ServiceReflector.ValidateParameterMetadata(MethodInfo methodInfo) +27
   System.ServiceModel.Description.TypeLoader.CreateOperationDescriptions(ContractDescription contractDescription, ContractReflectionInfo reflectionInfo, Type contractToGetMethodsFrom, ContractDescription declaringContract, MessageDirection direction) +242
   System.ServiceModel.Description.TypeLoader.CreateContractDescription(ServiceContractAttribute contractAttr, Type contractType, Type serviceType, ContractReflectionInfo& reflectionInfo, Object serviceImplementation) +1179
   System.ServiceModel.Description.TypeLoader.LoadContractDescriptionHelper(Type contractType, Type serviceType, Object serviceImplementation) +318
   System.ServiceModel.Description.ContractDescription.GetContract(Type contractType, Type serviceType) +192
   System.ServiceModel.ServiceHost.CreateDescription(IDictionary`2& implementedContracts) +477
   System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) +174
   System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) +475
   System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +43
   System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +530
   System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1413
   System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +50
   System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +1172
 
[ServiceActivationException: The service '/wos/reportservice.svc' cannot be activated due to an exception during compilation.  The exception message is: Could not load file or assembly 'Telerik.Reporting, Version=6.2.12.1017, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The system cannot find the file specified..]
   System.Runtime.AsyncResult.End(IAsyncResult result) +901424
   System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +178702
   System.ServiceModel.Activation.HttpHandler.ProcessRequest(HttpContext context) +101
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270

Until now, i don't have any clue on what to do......
This is the last piece of my project. The reports.
Thanks in advance.

Robert
Steve
Telerik team
 answered on 26 Nov 2012
1 answer
104 views
Hi Telerik Team

How to Add Report Binding PageSetings to ReportParameter

or PageSettings.PaperKind to PaperKind Report Papameter...
Peter
Telerik team
 answered on 26 Nov 2012
9 answers
220 views
Hello,
I am using the RadRibbonButton in RibbonGroup control and i want to change the Image on clicking on the Button 
How to achieve that in this control cause it is just allowing to change the background of the border of the press state 

Thanks,
Vishal.
Vishal
Top achievements
Rank 1
 answered on 23 Nov 2012
1 answer
66 views

Hi Telerik

Is this Marked Zones Chart available in  “5.1.11. 928 (Sep 28, 2011)” Version in Telerik Reporting?

Steve
Telerik team
 answered on 23 Nov 2012
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?