Telerik Forums
Reporting Forum
2 answers
130 views
I am using the code-behind for the report designer tool

Here is my output with only one x-axis label displaying, but I ultimately need all the labels to display and eventually get the series stacked. I've been busting my head against this.

Report Image

Here is my sample code to show my issue:

void chart1_NeedDataSource(object sender, EventArgs e)
        {
            chart1.PlotArea.Appearance.Dimensions.Margins = "5%";
            chart1.PlotArea.Appearance.Dimensions.Margins.Bottom.Type = Telerik.Reporting.Charting.Styles.UnitType.Percentage;
            chart1.PlotArea.Appearance.Dimensions.Margins.Bottom.Value = 15f;
            chart1.PlotArea.Appearance.Dimensions.Margins.Left.Type = Telerik.Reporting.Charting.Styles.UnitType.Percentage;
            chart1.PlotArea.Appearance.Dimensions.Margins.Left.Value = 15f;
            chart1.Legend.Visible = false;
            chart1.ChartTitle.Visible = false;
 
            chart1.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 45;
                                     
            chart1.PlotArea.XAxis.Clear();
            chart1.PlotArea.XAxis.AutoScale = false;
            chart1.PlotArea.XAxis.AddRange(1, 5, 1);
            chart1.PlotArea.XAxis[0].TextBlock.Text = "Test";
            chart1.PlotArea.XAxis[1].TextBlock.Text = "Test2";
            chart1.PlotArea.XAxis[2].TextBlock.Text = "Test3";
            chart1.PlotArea.XAxis[3].TextBlock.Text = "Test4";
            chart1.PlotArea.XAxis[4].TextBlock.Text = "Test5";
 
            chart1.Series.Add(new Telerik.Reporting.Charting.ChartSeries() { Name = "Test" });
 
            double[] testData = { 5, 6, 7, 8, 9 };
            foreach (double item in testData)
            {
                chart1.Series[0].AddItem(item);
            }
        }
Wayne
Top achievements
Rank 1
 answered on 21 Nov 2012
1 answer
98 views
Hi Team,

How would one go about changing the text font-size of the Reportviewer's ProgressText?  I need to make it smaller.

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

 

style="border:1px solid #ccc;" width="100%" height="100%"

 

OnClientResized="resizeViewer" ProgressText="Step 2: Preparing report..."

 

ZoomMode="Percent" ViewMode="PrintPreview"

 

ShowPrintPreviewButton="False" SkinsPath="Skins" Skin="Custom" Font-Size="9pt" />


I tried this but to no avail.

We're using:

ASP.Net 4.0
VS 2010
Telerik Reports – Q3-2012
Telerik AJAX Controls – Q3-2012

Thanks,
Steve
Peter
Telerik team
 answered on 21 Nov 2012
1 answer
103 views
hi!
 i have to bind data from many datatable into a single telerik report table or crosstab control. ie, i have to bind a dataset into a single reporting table control. how do i do this?
Peter
Telerik team
 answered on 21 Nov 2012
1 answer
219 views
I'm using Telerik Reporting Q1 2012. I can't get ride of the white space between the header and the detail section of the report. In design, there isn't any space at all. Here's screenshot! Any help?
Steve
Telerik team
 answered on 21 Nov 2012
4 answers
131 views
Hi

I want to change Report Viewer's background from White to image in Silverlight
(screenshot: http://www.freeimagehosting.net/avhxc)
Could you please tell me how can I change it?

Thanks!
Chien Cheng
Top achievements
Rank 1
 answered on 21 Nov 2012
2 answers
188 views
Hi everyone

I need to set my crosstab position programmatically, because it has different number of columns based on user options. So I want to show it in the center (horizontally) of page every time.

I used of location (x , y) based on dimension of page and number of crosstab columns for it in my c# code, but it is not effective at all.

Thanks for your guides
Ken Lewis
Top achievements
Rank 1
 answered on 20 Nov 2012
5 answers
442 views
I am trying to create a bar chart in a Telerik Report. I have a SQL stored procedure that gathers the data and returns the number of items that are different colors. My items can be one of six color (Green, Gray, Orange, Yellow, Black, or Red). I then need the bar chart to display the x-axis label with the color name and the to color that bar with the color represented. I have tried two different stored procedures that return the data in two different formats. One method returns two columns one for the name of the color and the second for the count of items with that count. There a total of six rows returned, one row per color. The second method returns just one row and six columns, each column name is the colorname and has the count. Method one lets me set the X-Axis labels to the color name and shows the proper count but I cannot find a way to change the color of each bar on the chart. I can only set one color for all bars. If I try the second method of data, I can set up a custom palette and create a series with enough items to patch but I cannot put the color names under each bar on the chart. Any assistance or suggestions would be greatly appreciated.
Steve
Telerik team
 answered on 20 Nov 2012
1 answer
252 views
When I click the preview button my report auto loads, but I have a string parameter I would like to fill in. My query is such that an empty string will load an unfiltered list, which can take some time. I really need it to wait for me to enter my parameter and click preview before it tries to load the report. Is there any way to do this? and why does this happen anyways, shouldn't it just wait for my parameter like SSRS does?

P.S. If I choose to not allow blank strings for that parameter, the preview then fails, but won't let me reload the report after I put in a valid parameter... seems like a bug.
Steve
Telerik team
 answered on 20 Nov 2012
1 answer
118 views
Hello,


I'm new to the forum, so thanks in advance, I hope someone can help me. I have an strange error with Telerik Reporting.

I am using the Telerik Reporting Q1 2012 (ver. 6.0.12.215) and Visual Studio 2010, framework 4.0, and works perfectly in PROD, TEST and in one DEV environment...

MY applications is SL4 and show the reports inside a ReportsViewer.

But now I am trying to setup a new Dev environment and i have an error:

a:InternalServiceFaultError loading extension type with name .A null or zero length string does not represent a valid Type. at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.Type.GetType(String typeName, Boolean throwOnError) at Telerik.Reporting.Processing.ExtensionManagerBase.CreateExtensionInfo(String typeName, String extensionName)System.TypeLoadExceptionError loading extension type with name . at Telerik.Reporting.Processing.ExtensionManagerBase.CreateExtensionInfo(String typeName, String extensionName) at Telerik.Reporting.Processing.ExtensionManagerBase.Config(ExtensionInfoCollection extensions, ReportingConfigurationSection section) at Telerik.Reporting.Processing.ExtensionManagerBase..ctor(IEnumerable`1 extensionTypeNames, ReportingConfigurationSection section) at Telerik.Reporting.Processing.ExtensionManager..ctor(IEnumerable`1 extensionTypeNames, ReportingConfigurationSection reportingSection) at Telerik.Reporting.Processing.ExtensionManager.get_Instance() at Telerik.Reporting.Processing.ExtensionManager.ListExtensions(Type extensionType) at Telerik.Reporting.Processing.ReportProcessor.ListRenderingExtensions() at Telerik.Reporting.Service.ReportServiceBase.Telerik.Reporting.Service.IReportService.ListRenderingExtensions() at SyncInvokeListRenderingExtensions(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)Telerik.Reporting.Interfaces.ExtensionManagerException

My application needs to work with SSL, and works fine, but in this new Dev environment i have this error... 

I read all articles, and I have reviewed the DLLs, and the web.config settings

Any ideas?

Thanks!


Steve
Telerik team
 answered on 20 Nov 2012
6 answers
170 views
We are having an issue with the Telerik reporting components running inside Sharepoint 2010.  We are running version 6.1.12.120.  On a local development machine, the reports run fine, but when deployed on a remote Sharepoint server, the reports "spin" endlessly and don't return.  However, it does not seem to be consistent -- with very small amounts of data (1-5 rows), the report will return, but with more data, it just sits and spins.  What I have noticed is that I get a 403 error on one of the calls to the ReportViewer.axd, specifically the item appendChild <frame> call.  We have verified that the SQL calls returns quickly, we have stepped through the code in the debugger and verified that it databinds the data, but the report won't render.

Are there specific permissions required for Telerik report rendering in Sharepoint 2010?  Has anyone run across this issue where the reports run inconsistently, especially with data of any consequence, within Sharepoint?  What other things should we try to troubleshoot these reports?  Thanks!

I have attached a screenshot of the 403 error call.
Rico
Top achievements
Rank 1
 answered on 19 Nov 2012
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?