Telerik Forums
Reporting Forum
4 answers
494 views
I have pretty complex report (3 sub-reports in detail section).
The main report had Footer  with Page number (no Page header).
The footer is not shown at all.... Visible set to true, Print on First Page, Print On Last Page set to true, No formatting rules.
If i ad the Page Header with Page Counter the Header does print. But footer still not visible.

What can be a problem?
I had attached the screenshot where footer's properties are visible.

PS: Forgot to mention that it's a WinForm report.
Also seems to me the file attachment did not work.

Thanks
George.
George
Top achievements
Rank 1
 answered on 02 Dec 2009
1 answer
98 views
I'm trying to create a report from within a Silverlight application but am running into problems. I can successfully create reports from a C# application, but not Silverlight.

First for C# - I create a C# Windows Forms application and add a "New Item" of Telerik Report Q3 2009 to the project. Using the Report Wizard, I connect to a remote SQL server and point to the appropriate database and then use the Query Builder to select the fields from the tables I wish to display. I place the fields into the Detail section and finish out the report. The Preview option properly displays the report with all of the appropriate data from the tables selected.

Next for Silverlight - I create a Silverlight Application (set to run in a hosted environment) and add a new Telerik report item to the .Web project. I follow the exact same steps as with the C#, even running the query to verify that the select statement is selecting the data properly. Fields are placed in the Detail section as in the C# project, and I finish out the report in the same way. The Preview and HTML Preview both display the field headers but no data is displayed.

I also repeated the above steps with a local data source with the exact same results. What am I doing wrong?
Chris Gillies
Top achievements
Rank 1
 answered on 02 Dec 2009
3 answers
273 views
The export report to pdf stopped working after upgrading to Q3 2009 Reporting. I found a fix you posted about adding the following web.config to the folder the report viewers are being used.

<?xml version="1.0"?><configuration>
  <system.web>
    <httpHandlers>
      <add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=3.1.9.807, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" validate="true"/>
    </httpHandlers>
  </system.web>
</configuration>

It was working fine until I upgraded to latest release, any idea how to get pdf exports working again? Here my error when exporting.

Server Error in '/' Application.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   Telerik.Reporting.Pdf.Rendering.PdfRenderer.DrawString(String text, PdfFont font, Brush brush, RectangleF rect, Boolean rightToLeft) +0
   Telerik.Reporting.Pdf.Drawing.PdfGraphics.DrawString(String s, Font font, Brush brush, RectangleF rect, StringFormat format) +124
   Telerik.Reporting.ImageRendering.CanvasPdf.DrawString(String s, Font font, Brush brush, RectangleF rect, StringFormat format) +107
   Telerik.Reporting.Processing.TextRenderer.DrawText(IGraphics g, String text, Font font, Brush brush, RectangleF bounds, Double angle, StringFormat stringFormat) +793
   Telerik.Reporting.ImageRendering.CompositionBase.DrawTrialMessage() +250
   Telerik.Reporting.ImageRendering.CompositionBase.SendPhysicalPages(Boolean force) +59
   Telerik.Reporting.ImageRendering.CompositionBase.End() +75
   Telerik.Reporting.ImageRendering.CompositionPdf.End() +39
   Telerik.Reporting.ImageRendering.CompositionBase.Dispose(Boolean disposing) +22
   Telerik.Reporting.ImageRendering.CompositionPdf.Dispose(Boolean disposing) +11
   Telerik.Reporting.ImageRendering.CompositionBase.System.IDisposable.Dispose() +17
   Telerik.Reporting.ImageRendering.ImageRendererBase.RenderReport(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +242
   Telerik.Reporting.ImageRendering.ImageRendererBase.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +21
   Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback) +353
   Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, CreateStream createStreamCallback, String& documentName) +421
   Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageIndex) in ServerReport.cs:90
   Telerik.ReportViewer.WebForms.ReportExportOperation.PerformOperation(NameValueCollection urlQuery, HttpContext context) in ReportExportOperation.cs:23
   Telerik.ReportViewer.WebForms.HttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) in HttpHandler.cs:65
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3053
Steve
Telerik team
 answered on 02 Dec 2009
4 answers
647 views
When I use the wizard to set up a report how can I pass a parameter to the report's query. I am simply looking to have a report embedded in a web page and the report will only show certain records (such as the last ten items purchased by the current user). This will require passing a parameter to the report each time it is generated.
I had a good dig through the docs but I cant see anything on this. Is there a good example of this (including creating the reports in a separate project and then using the reports in the web project and passing different parameters to the reports).

Thanks.
Ghezzo
Top achievements
Rank 1
 answered on 02 Dec 2009
2 answers
97 views
Hi

I am binding a chart at runtime to a generic list and having some difficulty with "what" gets charted.  I have an object structure like this:

    sealed public class MisPricedRegions : List<MisPricedRegion> 
    {  
    }  
 
    sealed public class MisPricedRegion  
    {  
        public string Region { get; set; }  
        public string Quarter { get; set; }  
        public int NumberConnectionPoints { get; set; }  
        public double AverageAmount { get; set; }  
    } 

I want to use this for two different charts... one where the Y axis is for NumberConnectionPoints and the other where the Y axis is for AverageAmount.

The sample code on your site here gave me an idea of what I need to do (set the Series[0].DataYColumn), but the sample code throws an error (IndexOutOfRange) as there is no series... even though the datasource has been set?

Thanks,

John

John McLean
Top achievements
Rank 1
 answered on 01 Dec 2009
1 answer
58 views
Currently we are programmatically adding values, labels to a chartseries within a Telerik Report.
For each item within the series, we would like to set the Item's MainColor and FillType.

Adding values and labels to ChartSeries
...ChartSeries cs = new Telerik.Reporting.Charting.ChartSeries();
Hashtable ht = ....;
double total = 0;
            foreach (DictionaryEntry de in ht)
                total += (double)de.Value;
            foreach (DictionaryEntry de in ht)
            {
               cs.AddItem((double)de.Value, (String)de.Key + " " + ((double)de.Value / total).ToString("P02"));
            }

The following is where we have problems. For each of the above items, we would like to set the item's color and Filltype:
 
int dcount = 0;
            foreach (DictionaryEntry de in ht)
            {
                cs.Items[dcount].Appearance.FillStyle.FillType = Telerik.Reporting.Charting.Styles.FillType.Solid;
                cs.Items[dcount].Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(14, 55, 147);
                dcount = +1;
            }

For some reason ,however, not all the items get the above color when rendering the report (it typically works fine for the first few items). 

Not sure how to proceed.

Steve
Telerik team
 answered on 01 Dec 2009
1 answer
185 views
Hi,

Are we able to use the Silverlight Viewer to view SSRS reports?  So does your XAML or XPS extension work in SSRS?

Or could I import SSRS reports into your reporting product?  Our reports are complex and we have data extensions that call to custom data sources?

Many thanks for your help.

Zack
Steve
Telerik team
 answered on 01 Dec 2009
1 answer
136 views
Hi,
is there any barcodes that supports Å,Ä,Ö,å,ä,ö?
Ivan
Telerik team
 answered on 01 Dec 2009
5 answers
128 views


developing a report in vstudio should i be able to preview a report if i am using needdatasource to supply the data ?



thanks
kevin
kmv
Top achievements
Rank 1
 answered on 01 Dec 2009
4 answers
204 views
Hello,
I have a scenario where I need to pass a session varable value to a report in a reportbook on a html page. I haven't been able to find any code for this in the forums or figured it out by my self.
Depending on who's logging in to my reportpages different report results will appear. I store the users id in a sessionvariable on loggin. I've found a solution for a single report but not when I want to put the report in a reportbook.

I'm thankful for any directions and/or codesamples.

Best regards

Janne
Jan
Top achievements
Rank 1
 answered on 01 Dec 2009
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?