Telerik Forums
Reporting Forum
1 answer
124 views
If we select same date in RadCalendar, Selectionchanged fires twice but if we don't select same date it fires only once. Moreover if keep on selecting the same date. the count of SelctionChanged kept increasing.

XAML File

<UserControl x:Class="RadControlsSilverlightApp1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
  <Grid x:Name="LayoutRoot">
        <telerik:RadCalendar  HorizontalAlignment="Left" Margin="136,133,0,0" Name="radCalendar1" VerticalAlignment="Top" />
    </Grid>
</UserControl>

Code Behind

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace RadControlsSilverlightApp1
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
            radCalendar1.SelectionChanged+=new Telerik.Windows.Controls.SelectionChangedEventHandler(radCalendar1_SelectionChanged);
        }

        private void radCalendar1_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangedEventArgs e)
        {
            MessageBox.Show("test");
        }
    }
}

 

 

 

 

 

 

Kaloyan
Telerik team
 answered on 27 Aug 2010
3 answers
140 views
Hi
i have placed my reportViewer.aspx file in folder name viewer which contain reportviewr control and telerik report design file in design folder which use an external style sheet placed in viewer folder and i use it as relative but when i preview report style sheet is missing
if i use style sheet as absolute then it looks fine on my local machine but not on production server.
Plz help me that what i am doing wrong
it is urgent
Steve
Telerik team
 answered on 27 Aug 2010
0 answers
81 views
Hi,
I have a question. I'm creating report that uses ORM data source where i add an object provider for my generated class (TblMainCategory).
this class has the following properties (property TblCategorys references another object Category):
TblMainCategory
Id
Title
TblSubcategoris ->Item ->
                                             Id
                                            Title
            
When i try to drag this column from data explorer i get an error "An error has occured while processing Textbox textbox2:
The expression contains object "TblSubcategory" taht is not defined in the corrent context."

Object provider contains OQL statement :SELECT * FROM TblMainCategoryExtent AS x

I solved issue with making another report that has a parameter that i then bind in main report (so i have to insert it like subreport in my main report).

Well I hope you see my issue.
I read that reporting does not support drill down...so might this be the reason (?)
Sam Ur
Top achievements
Rank 2
 asked on 27 Aug 2010
10 answers
422 views
One shortcoming of all repotring packages I have used is that they offer no form of inheritance, or what one could also call a MasterReport (like an asp.net MasterPage). What I would really like to see is the abililty to create a bacsi report template and then be able to derive my reports from that. I find I waste a lot of time reproducting headers (with grahpics, etc) where the only difference from one report to another is the title.
Steve
Telerik team
 answered on 27 Aug 2010
3 answers
755 views
Hi,

I am trying to use conditional formatting for a report and what I want to do is compare a field to 2 static values and if TRUE, highlight the text. I am unable to get the syntax correct for the condition. This is what I am trying to achieve.

Compare the field "Type" to both an empty string and also to static text "Upset". I tried to do the following the Conditional Formatting Rules dialog

=Fields.Type = Upset

This works fine. But, if I add NULL to this(to compare to empty string)

=Fields.Type = Upset OR = Null

nothing happens. I tried to use the "IN" operator, but no luck in figuring out the syntax. Is there some documentation that I can use as  a reference or can you point me to the correct syntax?

Thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Aug 2010
1 answer
141 views
Hello guys.

We developed ten years ago a report component to create our own reports.


There we give the option to our client to organize the fields by drag and drop. The client is able to place the field wherever they want.

Is it possible in Telerik?


Attached in this thread I sent one picture to demonstrate better what I’m trying to say.

Steve
Telerik team
 answered on 27 Aug 2010
2 answers
131 views

I'm creating a chart that represents blood pressure readings. Systolic, diastolic and palpated.

If I have a series of readings to chart and some of the lower numbers are palpated, how can I communicate that on the chart?
The chart will be a two line graphs or a candle stick. 

Any suggestions?
Ves
Telerik team
 answered on 27 Aug 2010
1 answer
100 views
Hello,

I currently am using the trial version of Telerik Reporting. I am able to view the website on my local machine and the reports look great; however, when I moved everything to the web server, and try to view a report, the "Generating Report" message is displayed but when it is done, the screen just goes blank where the report would normally show up. I am able to select options along the top of the report viewer like Next Page, Print, and even Export. When I export the report to PDF it shows up just fine, so I'm not sure why it won't show normally.

Any ideas as to why would be amazing!

Thanks,
Casey
Steve
Telerik team
 answered on 26 Aug 2010
2 answers
160 views

Hi,

I am developing a project with using Microsoft Visual Studio 2010, Telerik Rad Components and Oracle 11g. I used latest version (2010.2.714.40) of Telerik Rad ajax for my project. One month ago there was an error about telerik list view and we took a hot fix from telerik support team about this error. Now, our Telerik version is 2010.2.722.40.

I have an error on my reporting process but I do not know if this error is depending on version differences.

Firstly, I added new report class under the App_Code folder. Then, I clicked report wizard and I created a data source with my connection string which had been written in webconfig file. I created a query with query builder and then I tested this query. The result of the test was successful and I saw all data according to my defined query. When I finished the creation of the report, I clicked preview button but I couldn't see report or data. Then I tried to run my report with report viewer item. I add report viewer to the default.aspx page and I wrote the code which is shown below into the code page

ReportViewer1.Report = new Report1();

When I build the web site I got this error:

Could not find file 'App_Code.h5t8kano.resources'.

Error was given in

this.sqlDataSource1.SelectCommand = resources.GetString("sqlDataSource1.SelectCommand"); row in Report1.cs page.

What can I do about this error? What is the reason of this error?

 


Thanks in advance.

bt_86
Top achievements
Rank 1
 answered on 26 Aug 2010
0 answers
209 views
Hi,

   I'm getting two exception only in server. I do not get it in my local. Any idea for the cause?


Error : System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
   at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
   at System.Drawing.Image.Save(MemoryStream stream)
   at System.Drawing.ImageConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)
   at System.ComponentModel.TypeConverter.ConvertTo(Object value, Type destinationType)
   at Telerik.Reporting.Pdf.PdfImageInfo.ComputeHash()
   at Telerik.Reporting.Pdf.PdfImageInfo..ctor(Image originalImage, RectangleF srcRect)
   at Telerik.Reporting.Pdf.PdfImageTable.GetImage(Image originalImage, RectangleF srcRect)
   at Telerik.Reporting.Pdf.Drawing.PdfGraphics.DrawImage(Image image, RectangleF destRect, RectangleF srcRect)
   at Telerik.Reporting.ImageRendering.CanvasPdf.DrawImage(Image image, RectangleF destRectMm, RectangleF srcRectPx)
   at Telerik.Reporting.ImageRendering.CanvasBase.DrawImage(Image image, RectangleF destRect)
   at Telerik.Reporting.ImageRendering.CanvasBase.DrawImage(Image bitmap, RectangleF destRect, ImageSizeMode sizing)
   at Telerik.Reporting.ImageRendering.CanvasBase.DrawImageOnPage(Image bitmap, RectangleF destRect, ImageSizeMode sizing)
   at Telerik.Reporting.ImageRendering.Chart.Render()
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(CompositionBase composition, RenderingElement renderingReport, Int32 startPage, Int32 endPage, Boolean render)
   at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(Report report, CompositionBase composition, Int32 startPage, Int32 endPage, Boolean render)
   at Telerik.Reporting.ImageRendering.ImageRendererBase.RenderReport(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
   at Telerik.Reporting.ImageRendering.ImageRendererBase.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
   at Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo)
   at SHAPe.Report.ExportToPDF(Report reportToExport, String name)
   at SHAPe.Report.btnReport_Click(Object sender, EventArgs e)
 
 
Error : System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Drawing.SafeNativeMethods.Gdip.GdipDrawImagePointRectI(HandleRef graphics, HandleRef image, Int32 x, Int32 y, Int32 srcx, Int32 srcy, Int32 srcwidth, Int32 srcheight, Int32 srcunit)
   at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Rectangle srcRect, GraphicsUnit srcUnit)
   at Telerik.Reporting.Pdf.Drawing.PdfImage.InitializeDrawingImage()
   at Telerik.Reporting.Pdf.Drawing.PdfImage..ctor(PdfImageInfo info)
   at Telerik.Reporting.Pdf.PdfImageTable.GetImageDictionary(PdfImageInfo info)
   at Telerik.Reporting.Pdf.PdfImageTable.GetImage(Image originalImage, RectangleF srcRect)
   at Telerik.Reporting.Pdf.Drawing.PdfGraphics.DrawImage(Image image, RectangleF destRect, RectangleF srcRect)
   at Telerik.Reporting.ImageRendering.CanvasPdf.DrawImage(Image image, RectangleF destRectMm, RectangleF srcRectPx)
   at Telerik.Reporting.ImageRendering.CanvasBase.DrawImage(Image image, RectangleF destRect)
   at Telerik.Reporting.ImageRendering.CanvasBase.DrawImage(Image bitmap, RectangleF destRect, ImageSizeMode sizing)
   at Telerik.Reporting.ImageRendering.CanvasBase.DrawImageOnPage(Image bitmap, RectangleF destRect, ImageSizeMode sizing)
   at Telerik.Reporting.ImageRendering.Chart.Render()
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip)
   at Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight)
   at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(CompositionBase composition, RenderingElement renderingReport, Int32 startPage, Int32 endPage, Boolean render)
   at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(Report report, CompositionBase composition, Int32 startPage, Int32 endPage, Boolean render)
   at Telerik.Reporting.ImageRendering.ImageRendererBase.RenderReport(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
   at Telerik.Reporting.ImageRendering.ImageRendererBase.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
   at Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo)
   at SHAPe.Report.ExportToPDF(Report reportToExport, String name)
   at SHAPe.Report.btnReport_Click(Object sender, EventArgs e)

Any solution to fix this issue?

Thanks,
Sivam
Top achievements
Rank 1
 asked on 26 Aug 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?