Telerik Forums
Reporting Forum
1 answer
67 views

Hi,

I have an html page kept in my systems 'C drive'.
I need to show this html page in the telerik report.
this is the same case in the PDF also.
How can I  show this Html page ,PDF page in the telerik report?

this is an urgent requirement ...

Thanks

Sindu.
Steve
Telerik team
 answered on 06 Feb 2012
1 answer
517 views
Is there a way to put a button on the reportviewer that will directly print the report to the default printer?

I'm in Silverlight 5, latest release of Telerick controls and reporting.

right now I have to selected print preview, and then print.

Ideally I would also like to set then number of copies as well (defaulting it to 2).

I've searched the forums, but can't seem to find anything.  does that mean it's not possible?

Thanks.
Steve
Telerik team
 answered on 06 Feb 2012
1 answer
84 views

Hi,

I need to display some html content into HtmlTextbox.
how can i set  HtmlTextBox value in the runtime.

Thanks,

Sindu.


Steve
Telerik team
 answered on 06 Feb 2012
3 answers
100 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.0K+ 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
150 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
475 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
55 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
46 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
421 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
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?