Telerik Forums
Reporting Forum
3 answers
105 views
I have a basic proof-of-concept ASP.NET Web project set up as recommended with separate class library for reports.

On my web page, I am rendering the report with the following code:

System.Data.DataTable dt = new MyDataClass.GetReport();
ReportClassLibrary.Report1 r1 = new ReportClassLibrary.Report1();
r1.DataSource = dt;
ReportViewer1.Report = r1;

The problem I am having is with the Navigation Group in the Web Viewer.  All the controls (first, previous, next and last) are all disabled and the text box shows page "0" of 2.

I tried three different combinations here including a DataSet, DataTable and DataView, with the same results.

What have I missed here?
Jean
Top achievements
Rank 1
 answered on 03 Feb 2012
11 answers
1.1K+ views
Has anyone done a comparison between telerik reporting and Crystal they can share? I'm in the process of selecting a reporting framework to move forward with and this would be great info. Might be good feedback for telerik too. :)
Steve
Telerik team
 answered on 03 Feb 2012
4 answers
162 views
What i am trying to achieve on a report being exported as PDF, is to have a chart on the first page, then starting on page 2 have a table that shows the detail records that get summed up for the chart. 
Right now i have that working, but if the data is empty the PDF will still have 2 pages, one with an empty chart, one with an empty table.  To do that I have a single detail section that is around 9 inch height, with the table in the very bottom inch.

Is there a better way to cause a page break between two different elements?  And is there any way to have it not generate a page 2 if i set the visibility of the table to false when I detect that the datasource is empty?
Would it be better to put the chat inside a Report Header section and make sure that would take up the full first page?
Steve
Telerik team
 answered on 03 Feb 2012
1 answer
490 views

Hi,

I had previously installed a trial version of the reporting module.  I purchased, downloaded and installed the package.  I moved the new dll's over to my bin directory and modified the web.config httphandlers with the new dll's version which is 5.3.12.131.  When I try to open the reports through the web app, I get the following error:

Could not load file or assembly 'Telerik.ReportViewer.WebForms, Version=5.3.11.1116, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

For some reason is looking for version Version=5.3.11.1116 instead of 5.3.12.131.  Just in case for some odd reason the dll was being loaded from the GAC I double check windows assemblies and the new telerik dll's with version  5.3.12.131 are registered there too. 

Here is what I have in my web.config to define the httphandlers:

<handlers>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
      <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=5.3.12.131, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode" />
</handlers>

- and  -

<httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler,Telerik.Web.UI"/>
      <add verb="*" path="Telerik.ReportViewer.axd" type = "Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=5.3.12.131, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />
</httpHandlers>

Can anyone point me to anything else I should check?

Thanks!

David
Top achievements
Rank 1
 answered on 03 Feb 2012
1 answer
59 views

Hi,

I have 3 reports .I have added it in the Report book one by one and added report book into reportviewer.
so it generates 3 pages in the report.
My aim is to dispaly these 3 reports into first page only.
how is it possible?

Thanks,
sindu.
Steve
Telerik team
 answered on 02 Feb 2012
1 answer
49 views

Hi,

I have two reports  and code will be given below ..

Report7 objreport1 = new MyReportLib.Report7();
            objreport1.DataSource = dt1;

Report8 objreport1 = new MyReportLib.Report8();
            objreport2.DataSource = dt1;

I want to display these 2 report in ReportBookControl ...

I am using the code ...

ReportBook reportBook = new ReportBook();

 

 

reportBook.Reports.Add(new MyReportLib.Report7());

 

 

 

reportBook.Reports.Add(new MyReportLib.Report8());

 

 

 

ReportBookControl1.Reports.Add(new MyReportLib.Report7());
ReportBookControl1.Reports.Add(new MyReportLib.Report8());

 

 

 

ReportViewer1.Report = ReportBookControl1;

 


but no report is displaying in the report viewer.
How can I display these reports into reportbook control and then to reportviewer.


Thanks In advance .
Sindu.



Steve
Telerik team
 answered on 02 Feb 2012
1 answer
442 views
I upgraded the Telerik Reporting library for my WinForms project due to a bug in Q1 2009 Reporting.  I upgraded to Q3 2011 and recompiled.  If I revert to the older DLL, the report displays as expected.

I get the following error:

System.ArgumentOutOfRangeException was unhandled
  Message="Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"
  Source="mscorlib"
  ParamName="index"
  StackTrace:
       at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
       at System.ThrowHelper.ThrowArgumentOutOfRangeException()
       at System.Collections.Generic.List`1.get_Item(Int32 index)
       at Telerik.ReportViewer.WinForms.InteractivePageLayout.DrawPages(Graphics graphics, Rectangle rectangle, Int32 index)
       at Telerik.ReportViewer.WinForms.WinViewer.OnPaint(PaintEventArgs eventArgs)
       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
       at System.Windows.Forms.Control.WmPaint(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.UserControl.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at Telerik.WinControls.SafeNativeMethods.RedrawWindow(IntPtr hWnd, IntPtr rectUpdate, IntPtr hRgnUpdate, UInt32 uFlags)
       at Telerik.WinControls.UI.ThemedFormBehavior.RefreshNC()
       at Telerik.WinControls.UI.ThemedFormBehavior.OnWMNCActivate(Message& m)
       at Telerik.WinControls.UI.ThemedFormBehavior.HandleWndProc(Message& m)
       at Telerik.WinControls.UI.RadFormBehavior.HandleWndProc(Message& m)
       at Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
       at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
       at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
       at System.Windows.Forms.Control.Show()
       at ColonialFence.ChainLinkOrderForm.radButtonPrint_Click(Object sender, EventArgs e) in C:\Users\Peter\Documents\Visual Studio 2008\Projects\ColonialFence\ColonialFence\ChainLinkOrderForm.cs:line 203
       at Telerik.WinControls.RadItem.OnClick(EventArgs e)
       at Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)
       at Telerik.WinControls.RadItem.DoClick(EventArgs e)
       at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
       at Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
       at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at Telerik.WinControls.RadControl.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at ColonialFence.Program.Main() in C:\Users\Peter\Documents\Visual Studio 2008\Projects\ColonialFence\ColonialFence\Program.cs:line 291
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
       at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
       at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
       at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
       at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
       at System.Activator.CreateInstance(ActivationContext activationContext)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

Here's the line of code where it fails:

  private void radButtonPrint_Click(object sender, EventArgs e)
        {
            Program.PrintForms.Category = Program.Category.CHAINLINK;
            Program.fPrint = new PrintForm();
            Program.fPrint.Show();                        <-----------------------------  fails on the Show() method
        }

Please let me know what I need to do.  I was told there was a bug (by Telerik) in Reporting Q1 2009 as it relates to 64-bit Windows and that I needed to upgrade to fix it.  Now this!   Please help!

Thanks,

Peter Mello
Steve
Telerik team
 answered on 02 Feb 2012
3 answers
87 views
I am experiencing problems seeing the parameter area in my reports. I have to refresh the page before I can see my Param combobox or preview button when using IE8. Google Chrome (16.0.912.77) appears to work fine.
I am usingTelerik_Reporting_Q3_SP1_v5_3_12_119_Dev & Report Viewer for Asp.Net
The compatability view settings are not making any difference for me.

Any suggestions?
Steve
Telerik team
 answered on 02 Feb 2012
1 answer
115 views
Hello Telerik,

I'm having alignment issues with my controls on the report. please find attached picture where Created By and Prompt are not in the same indent. Is there any way to make them both in the same indent.

Report needs to look like

Item Status:                          Prepared By:               Prepared On:                    
Last Updated On:                 Rate:                           Quantity:       
                            
Thanks!
Steve
Telerik team
 answered on 02 Feb 2012
1 answer
170 views

Hi,

I'm trying to render a chart inside the Telerik report. I'm also rendering the same chart in my MVC web application using Telerik Extensions for ASP.NET MVC chart control. But both are giving different charts.

Here is the code:

Telerik.Reporting.Processing.Chart procChart = (Telerik.Reporting.Processing.Chart)sender;
            Telerik.Reporting.Chart defChart = (Telerik.Reporting.Chart)procChart.ItemDefinition;
  
            defChart.Series.Clear();
            int xAxisIndicesCount = (from cdsl in chartDataSourceList select cdsl.XAxisValue).Distinct().Count();
  
            defChart.PlotArea.XAxis.Items.Clear();
            defChart.PlotArea.XAxis.AutoShrink = false;
            defChart.PlotArea.XAxis.AutoScale = false;
            defChart.PlotArea.XAxis.AddRange(0, (xAxisIndicesCount > 0) ? xAxisIndicesCount - 1 : 0, 1);
            defChart.SeriesOrientation = seriesOrientation;
            defChart.DataGroupColumn = "GroupingValue";
            defChart.PlotArea.XAxis.DataLabelsColumn = "XAxisValue";
            defChart.Legend.Appearance.GroupNameFormat = "#VALUE";
            defChart.IntelligentLabelsEnabled = true;
  
procChart.DataSource = chartDataSourceList;


Essentially if you can compare the charts I have attached, in the PDF chart, the series columns are misplaced. Please check and revert if you need further clarifications. I hope you will better be able to figure the issue by comparing the charts, than explaining it here. Please revert asap.

Thanks

Yavor
Telerik team
 answered on 02 Feb 2012
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?