Telerik Forums
Reporting Forum
1 answer
190 views
Hi Telerik,
I have a report viewer that display database table in Chart Item format.
When using the Export  function(for example export to excel) in the reportviewer, I got a excel file, which will have chart Item inside.
Right now, instead of the chart item in the exported excel file, I would like the actual database table content to be exported to the excel file. Can I make this work and how to make it work?

Thanks a lot!

Qixiong
Steve
Telerik team
 answered on 02 Feb 2010
8 answers
912 views
Hi,

It seems it should be so simple to get multiple columns in a report

The online demo at

http://demos.telerik.com/reporting/examples/producttags/defaultcs.aspx

supposedly shows multiple columns but I can't see any.

I have created the simplest report I can think of, ie a text box in the heading & text box in the detail.
The text box in the detail is 2 cm wide & the report width is set to 6 cm so no overlaps as per tutorial suggestion so I would expect to get at least 2 columns on the page (yes the number of columns is set to 2)

I cannot get it to print multiple columns.

Any suggestions?

Thanks,

Andreas




Steve
Telerik team
 answered on 02 Feb 2010
3 answers
112 views
Hi,

By setting the DataSource in my server-side Report constructor, I am able to retrieve the report in my Silverlight viewer.

In order to pass in parameters, I understand that I am supposed to set the DataSource to null in the constructor and override OnNeedDataSource. 

When I do this and set the DataSource in OnNeedDataSource, the report displays within the Silverlight client with no data at all.

        public OperatingIndicators()        // CTOR
        {
            InitializeComponent();
            DataSource = null;
        }
        protected override void OnNeedDataSource(object sender, EventArgs e)
        {
            this.DataSource = GoGetMyData();
        }

Using the debugger, I see that OnNeedDataSource is called and I can see that the parameters are passed in successfully and the DataSource is correctly loaded with data. 
 
I am using Telerik.Reporting.Service.ReportService, version 3.2.9.1211 on the server.
and Telerik.ReportViewer.Silverlight version 3.2.9.1211 on the client.


Peter Hepp
Top achievements
Rank 1
 answered on 02 Feb 2010
3 answers
114 views
HI all
I am a beginner of silverlight and reportViewer,
I use the RadGridView to show my data,
and i want to print the data by ReportViewer,
how to put the grid or the date to ReportViewer directly?

wang zhong
Top achievements
Rank 1
 answered on 02 Feb 2010
1 answer
110 views
Hi, I'm building a WPF application, using Telerik Reporting and RAD Docking control for WPF.
I'm nesting the ReportViewer for Windows forms in WindowsFormsHost. In the same window I put a RadDocking functionality. When I try to unpin and change the position of a pane, the WindowsFormsHost control have overlapped the DockingCompass and the Pane itself.
I have read that a hosted Windows Forms control is drawn in a separate HWND, so it is always drawn on top of WPF elements. Is there a some kind of workaround or WPF release of ReportViewer coming soon?
Steve
Telerik team
 answered on 01 Feb 2010
5 answers
421 views
Hi,

We need to generate a PDF on the fly based on an existing template. This will operate on ASP.NET, possibly within Windows Workflow.

I see creating the template of the page in Telerik Reporting, and populating the (simple) fields in the page, then exporting the result to PDF, saving on the web server for onward email.

Is this possible within Telerik Reports? I do not want user interaction, so no Report Viewer is wanted. Just a Report that I can design, compile, populate a few fields and generate a PDF automatically.

Is this possible with your product?

Thanks,

Nathan
Steve
Telerik team
 answered on 01 Feb 2010
1 answer
105 views

Sir, I have taken  a table with four textboxes in it, which are assigened different fields that are fetched from the database by using the NeedDatasource event of the table.

 

Private Sub table1_NeedDataSource(ByVal sender As Object, ByVal e As System.EventArgs) Handles table1.NeedDataSource, table1.NeedDataSource

        Dim ds2 As New DataSet()

        Dim table As Telerik.Reporting.Processing.Table = DirectCast(sender, Telerik.Reporting.Processing.Table)

        objReporting = New Reporting

        Dim category As String

        Dim category1 As String

        category = Me.ReportParameters("officecode").Value

        category1 = Me.ReportParameters("Postcode").Value

        objReporting.OfficeCode = category

        objReporting.OfficeGroup = category1

        ds2 = objReporting.FetchSalary()

        Dim view As DataView = ds2.Tables(0).DefaultView

        view.Sort = "TotalSalary DESC"

        table.DataSource = view

    End Sub

 

 

Me.lblPresentPost.Location = New Telerik.Reporting.Drawing.PointU(New Telerik.Reporting.Drawing.Unit(0.099999986588954926, Telerik.Reporting.Drawing.UnitType.Inch), New Telerik.Reporting.Drawing.Unit(0.40000009536743164, Telerik.Reporting.Drawing.UnitType.Inch))

Me.lblPresentPost.Name = "lblPresentPost"

Me.lblPresentPost.Size = New Telerik.Reporting.Drawing.SizeU(New Telerik.Reporting.Drawing.Unit(0.91458332538604736, Telerik.Reporting.Drawing.UnitType.Inch), New Telerik.Reporting.Drawing.Unit(0.17500001192092896, Telerik.Reporting.Drawing.UnitType.Inch))

 

 Me.lblPresentPost.Value = "= Fields.presentpost"

 

 for further details please see the attached doc file

thanks

Ankit


Steve
Telerik team
 answered on 01 Feb 2010
1 answer
91 views
Hi All,

I'm planing to use Telerik Reporting for some Invoices in ASP.NET. After buying developer version of reporting API, Do I need any additional tool or API for end user? I think that these kind's of reporting APIs require some server version. I mean from the server that Crystal Reports Servers.

Regards

Ert 
Steve
Telerik team
 answered on 01 Feb 2010
2 answers
139 views

I have attempted to install (after downloading) Telerik_Reporting_2009_3_1211_dev.msi.

I turned all options on to be installed.  The installation completed successfully.

From start menu, I selected, Visual Studio 2008 Examples project.

When I attempt to view the WebDemo:
1. I see the choice of reports, I clicked on the Invoice and received:

Server Error in '/WebDemo' Application.  
--------------------------------------------------------------------------------  
 
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.   
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.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.  
 
Source Error:   
 
 
Line 13:         {  
Line 14:             Type reportType = Type.GetType(reportName);  
Line 15:             IReportDocument report = (IReportDocument)Activator.CreateInstance(reportType);  
Line 16:             this.ReportViewer1.Report = report;  
Line 17:             this.Page.Title = "telerik Report Viewer - " + reportType.Name;  
   
 
Source File: c:\Program Files\Telerik\Reporting Q3 2009\Examples\CSharp\WebDemo\ReportViewer.aspx.cs    Line: 15   
 
Stack Trace:   
 
 
[AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.]  
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0  
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +86  
   System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +230  
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +67  
   System.Activator.CreateInstance(Type type) +6  
   ReportViewer.Page_Load(Object sender, EventArgs e) in c:\Program Files\Telerik\Reporting Q3 2009\Examples\CSharp\WebDemo\ReportViewer.aspx.cs:15  
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14  
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35  
   System.Web.UI.Control.OnLoad(EventArgs e) +99  
   System.Web.UI.Control.LoadRecursive() +50  
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627  
 
   
 
 


2. I have attached what I see from silverlight
3. When I try the windemo I see an exception on this line
IReportDocument reportDocument = Activator.CreateInstance(t) as IReportDocument;

in this block of code

 

 

 

        void OnCellContentClick(object sender, DataGridViewCellEventArgs e)  
        {  
            if (0 == e.ColumnIndex && e.RowIndex >= 0)  
            {  
                DataGridViewCell cell = this.dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex];  
                Type t = cell.Tag as System.Type;  
                if (null != t)  
                {  
                    IReportDocument reportDocument = Activator.CreateInstance(t) as IReportDocument;  
                    if (null != reportDocument)  
                    {  
                        MainForm frm = new MainForm(reportDocument);  
                        frm.WindowState = FormWindowState.Normal;  
                        frm.Show(this);  
                    }  
                }  
            }  
        } 

I have attached a screen shot of the exception

I am running Windows 7. VS 2008.

Massimiliano Bassili
Top achievements
Rank 1
 answered on 01 Feb 2010
1 answer
98 views

I was looking to get the reports by passing parameter in Combobox to storedprocedure to get result.

Please help me with example.

Regards,

Venkat

sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
 answered on 30 Jan 2010
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?