Telerik Forums
Reporting Forum
1 answer
93 views
I read the "Understanding Events" article and have been researching different posts on this subject and I'm still a little confused.  I want to use the runtime value of txtElement in a query to return an amount.  I then want to set the value of txtEncumbrance to the amount that is returned.

All of my fields are in the group footer section.  But I know I need to get the value of my text box in the ItemDataBound event of my text box first using the sender object.  Should all my code go there?  Or should I put the rest of my code in the group footer ItemDataBound section? 

Please see attached files.  Thanks for your help!
Niki Sams
Top achievements
Rank 1
 answered on 09 Aug 2010
3 answers
162 views
Hello,

    I'm new to Telerik Reporting, heck I'm still using a trial... but I'm getting this error while trying to put a Report Viewer onto an aspx page within an already built web application as a trial run.....
    

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)


It is an ASP.NET 2.0 web page that has a master page.... 

I did build the report in a separate class library, and it works fine (connecting to a MySQL database and retrieving a simple set of data).

this is the code for the aspx page..... I've added no code to the aspx.cs ..... as it is not needed to view a report (I've done a trial run on a new web site earlier as another test, but now i'm trying to incorporate a report into a system)

===========================================================================================================

<%@ Page Language="C#" MasterPageFile="~/ApplicationLayout.master" AutoEventWireup="true" CodeFile="TestReporting.aspx.cs" Inherits="TelerikTest_TestReporting" Title="Telerik Test" %>

<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=4.0.10.423, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
    Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <telerik:ReportViewer ID="ReportViewer1" runat="server">
        </telerik:ReportViewer>
    </div>
</asp:Content>

======================================================================================================

At the moment.... I'm not connecting it to any report, as I just need to know if the viewer will display.... but it does not, I just get that error.

Oh, and I have searched this forum earlier for anything related to this error..... If I take the runat="server" away from the report viewer, the viewer does not show up on the page at all, but I don't see that error message come up.....

what do I do to get the viewer to display..... after I have it working can I attach a report to it.....   please help

Amit Missra
Steve
Telerik team
 answered on 09 Aug 2010
6 answers
254 views
hi,

i have a very simple report and i have a window with ReportViewer.
in design time at the XAML source - defining the report viewer ZoomMode to Pagewidth i noticed that later on runtime the vertical scroll doesn't work, it's just stuck, sometime the scroll locks, looks like disabled, only when i change the zoom from the report viewer the scroll functionality returns.
it only happen when in full screen and only in PageWidth ZoomMode.

can you plz help?

thanks,
lior.
Steve
Telerik team
 answered on 09 Aug 2010
1 answer
135 views
Hello all,

i am getting the above error when working with master pages. I have created separate project reports and when i try to display the report on report viewer which is on my User Control i am getting the following error.

Report is unavailable or session has expired.
Please, refresh the page.

the same when iam trying without Master Pages iam getting the result.

This is how i set Session in my webConfig
<sessionState mode="InProc" timeout="60">
        </sessionState>

please reply me regarding this as soon as possible.

Thanks.
shahid Aleem
Top achievements
Rank 1
 answered on 09 Aug 2010
2 answers
207 views
Hello all,

I am getting the above error when working with Master Pages. I have created separate dll project for Reports. and given reference of it in my Application. but when i am trying to display the report in report viewer control which is in my User control. I am getting the following message
Report is unavailable or session has expired. Please, refresh the page.

i have checked all the given solutions but i am not getting the result.

i have set session as follows.

<sessionState mode="InProc" timeout="60">
        </sessionState>

please reply as soon as possible.
shahid Aleem
Top achievements
Rank 1
 answered on 09 Aug 2010
1 answer
142 views
Hi
I am using Report Telerik, when i run in local it runs ok.But when i host it i got problem
Line 243:            report.RefreshReport();
Line 244:            ReportProcessor reportProcessor = new ReportProcessor();
Line 245:            RenderingResult result = reportProcessor.RenderReport("XLS", report.Report, deviceInfo);
Line 246:            FileStream fs = new FileStream(tmpFileName, FileMode.Create);
Line 247:            fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Reporting.Excel97.BoundSheet..ctor(String workSheetName) +31
   Telerik.Reporting.Excel97.Workbook.AddBoundSheetRecords(Stream stream, ICollection`1 boundSheetAddresses) +66
   Telerik.Reporting.Excel97.Workbook.WriteWorkBookRecords(Stream stream, ICollection`1 boundSheetAddresses) +1174
   Telerik.Reporting.Excel97.Workbook.Save(Stream stream) +252
..................
Please help me.
Thank you.
Chavdar
Telerik team
 answered on 09 Aug 2010
1 answer
111 views
hello,
i create a telerik report using telerik report table follow the wizard, but when i export data to excel or any format a error occur like the attached files
Chavdar
Telerik team
 answered on 09 Aug 2010
4 answers
401 views
I cannot get the Designer to work anytime I have report logic that references an external DLL.  This includes using the Enterprise Library DLLs for data access and also using user-defined functions that reference external dlls for formatting.

Here's a sample _NeedDataSource event.  It works fine at run time in the viewer, but the designer does not work at all.  (just like with external format functions I reference). 

 

 

private void rptCaseLoad_NeedDataSource( object sender, EventArgs e )   
{  
    DataSet ds = new DataSet( );   
    Database db = DatabaseFactory.CreateDatabase( );   
    using ( DbCommand cmd = db.GetStoredProcCommand( "spCaseDetail" ) )   
    {  
        cmd.CommandType = CommandType.StoredProcedure;   
        db.AddInParameter( cmd, "@caseID", DbType.Int32, iCaseID );   
        ds = db.ExecuteDataSet( cmd );   
    }  
    ( sender as Telerik.Reporting.Processing.Report ).DataSource = ds;   
   
}  
 
 
 

 


Any suggestions?
Joanna LaForte
Top achievements
Rank 1
 answered on 06 Aug 2010
1 answer
144 views
Hi,

Is there a way to retain the printer settings?

I generate and print a report.  I change the printer settings in the printer properties dialog box for example select a colour print.
When I generate another report I must then make changes to the printer properties again.

Is there a way to keep the changes I made the first time?

Cheers,
Gary
Ivan
Telerik team
 answered on 06 Aug 2010
1 answer
120 views
I'm trying to pass a report a parameter value using the code below:

Report report = new Report();
report.ReportParameters["ContactID"].Value = 4437;

But I get the error below on ReportParameter:

Error   24  'eMember.Report' does not contain a definition for 'ReportParameters' and no extension method 'ReportParameters' accepting a first argument of type 'eMember.Report' could be found (are you missing a using directive or an assembly reference?)

Is there something I need to add?
Peter
Telerik team
 answered on 06 Aug 2010
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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?