Telerik Forums
Reporting Forum
1 answer
149 views
Hi,

    Is it possible to set the possition of a bar chart series Label based on the value of the bar.

    for example i have a bar chat that is used to display a percentage that can be posative or negative value. it is Horizontal and the 0 possition starts in the middle. so what i want to do is if the value is negative have the label on the right and if posative have the label on the left so it is not overlapping the bar.
Steve
Telerik team
 answered on 09 Nov 2010
1 answer
321 views

Hello Telerik Team,

I have a requirement where I need to show a rad window on a telerik report.In this rad window I will have three paramaters with their own values.When the user selects a paramater and its value from the rad window ..how do you pass these values to the report.

I have the rad window working with combo boxes and i am storing the value from the rad combo box in a view state variable.I have added the report parameters programatically.But how do i pass these values to my report which consists of many formulae computed based on these parameter values.
I greatly appreciate your help.

Please provide me a sample report which has this functionality.

Thank You,
Smith

Patrick
Top achievements
Rank 1
 answered on 09 Nov 2010
2 answers
99 views

Hi,

I've got a master-detail report much like you're invoice example.
The subreport has a reportparameter which I then set to a field in the mainreport. So far so good.
But if I then add a filter to the mainreport the report doesn't work anymore, the parts in main are displayed correctly but in the subreport area I get a red text saying:

An error has occurred while processing Report ":
Method GetRowsByStringGuid(System.RuntimeType strGuid) not found.

I use entitydatasource as my datasource and the parameter is actually a guid so I have todo some manual conversion as guid's are not supported.

The strange thing I've noticed however is that if I specify a value for the parameter in the subreport in the ReportParameter Collection Editor like 0 which is not guid but still a valid string. The report works as expected again.

Is this by design or am I missing something or maybe I found a bug?

I'm looking forward to hearing from you.

Tomas

Tomas
Top achievements
Rank 1
 answered on 09 Nov 2010
15 answers
717 views
Hi

I have a problem happened when I press "Export" Button and "Print" Button.

I have a webpage with one Reporting.ReportViewer. And i create a project with all my report.vb for my website

because the report is for Chinese, so i set all my report.vb "Style.Font" to Arial Unicode MS.(and this website is build on IIS6.0 in Win2k3 R2.)

everything is work fine in my design environment . but , when I build up in my customer's environment.

this function suddenly no work.(print button is no response, export button show error message)

All i know that there is only one different between two environment. one is English version windows,

one is Chinese Traditional version windows.
 
please give me a solution or hint to fixed the problem. thanks

Font Arial Unicode MS 8 Regular is not supported.
descript: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。
 
exception handdle information: System.NotSupportedException: Font Arial Unicode MS 8 Regular is not supported.
 
original program error:
 
在執行目前 Web 要求期間,產生未處理的例外狀況。如需有關例外狀況來源與位置的資訊,可以使用下列的例外狀況堆疊追蹤取得。 
 
堆疊追蹤:
 
 
[NotSupportedException: Font Arial Unicode MS 8 Regular is not supported.]
   Telerik.Reporting.Pdf.Fonts.TrueType.FontReader.GetFontData(Font font, Boolean& isTTC) +466
   Telerik.Reporting.Pdf.Fonts.TrueType.TrueTypeDescriptor..ctor(Font gdiFont) +270
   Telerik.Reporting.Pdf.PdfFontTable.GetDescriptor(PdfFont font) +108
   Telerik.Reporting.Pdf.PdfFontDictionary..ctor(PdfDocument document, PdfFont drawingFont) +83
   Telerik.Reporting.Pdf.PdfFontType0Dictionary..ctor(PdfDocument document, PdfFont font) +17
   Telerik.Reporting.Pdf.PdfFontTable.GetFont(PdfFont font) +97
   Telerik.Reporting.Pdf.PdfPageDictionary.GetFontName(PdfFont font, PdfFontDictionary& fontDictionary) +35
   Telerik.Reporting.Pdf.Rendering.PdfRenderer.GetFontName(PdfFont font, PdfFontDictionary& fontDictionary) +17
   Telerik.Reporting.Pdf.Rendering.PdfRendererGraphicsState.Update(PdfFont font, Brush brush, Int32 renderMode) +46
   Telerik.Reporting.Pdf.Rendering.PdfRenderer.Update(PdfFont pdfFont, Brush brush, Int32 renderMode) +77
   Telerik.Reporting.Pdf.Rendering.PdfRenderer.DrawString(String text, PdfFont font, Brush brush, RectangleF rect, Boolean rightToLeft) +57
   Telerik.Reporting.ImageRendering.CanvasPdf.DrawStringMultiline(String s, Font font, Brush brush, RectangleF rect, StringFormat format) +377
   Telerik.Reporting.ImageRendering.TextBox.Render() +369
   Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight) +2323
   Telerik.Reporting.ImageRendering.RenderingElement.RenderChildren(RectangleRF clip) +189
   Telerik.Reporting.ImageRendering.RenderingElement.RenderToPage(RectangleRF clip, RoundedFloat parentLeft, RoundedFloat parentTop, RoundedFloat parentReservedTop, RoundedFloat parentReservedBottom, RoundedFloat parentReservedLeft, RoundedFloat parentReservedRight) +2429
   Telerik.Reporting.ImageRendering.CompositionBase.RenderPageSection(PageArea pageArea, RenderingElement pageSection, Single height) +585
   Telerik.Reporting.ImageRendering.CompositionBase.ApplyPageSections() +323
   Telerik.Reporting.ImageRendering.CompositionBase.SendPhysicalPages(Boolean force) +52
   Telerik.Reporting.ImageRendering.CompositionBase.End() +75
   Telerik.Reporting.ImageRendering.CompositionPdf.End() +103
   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) +224
   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) +730
   Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +377
   Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageIndex) +462
   Telerik.ReportViewer.WebForms.ReportExportOperation.PerformOperation(NameValueCollection urlQuery, HttpContext context) +60
   Telerik.ReportViewer.WebForms.HttpHandler.ProcessRequest(HttpContext context) +164
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
John
Top achievements
Rank 1
 answered on 09 Nov 2010
3 answers
114 views
I have no RadReportViewer in my toolbox. I have a report built, but no way to display it. Help!

Thanks,
Charles Hawk
Steve
Telerik team
 answered on 08 Nov 2010
1 answer
69 views
I have the report view setup for mvc 2 but the images show the enabled and disabled versions at the same time.

Attached is a image for reference.

I didn't see anything getting a request error in fidler so I'm not sure what is going on.
Steve
Telerik team
 answered on 08 Nov 2010
4 answers
227 views
I have a 300 pixel pie chart that I'm trying to render on a web page. I have the width of the report viewer set to 300 pixels, but I still get a horizontal scrollbar. The table with id of 'Diskspace' is getting a hard-coded width of 624px. The nested table with the class s0 has a table-layout:fixed attribute that needs to go away as well and this will solve my problem. Is there any way to set a template for the report viewer or a way to override these hard-coded values?

Here is the rendered html of the iframe:

<body id="ReportBody" class="bodycenter" style="overflow: auto; margin: 0px; vertical-align: center;" onclick='BodyClickHandler();'>
 
<div id='ReportDiv' style='overflow:auto; width: 100%; height: 100%;'>
<table id='Diskspace' style='padding-left:0in;padding-right:0in;padding-top:0in;padding-bottom:0in;background-color:White;color:Black;font-family:Arial;font-size:10pt;font-weight:normal;font-style:normal;text-decoration:none;text-align:left;vertical-align:top;border-left-style:None;border-top-style:None;border-right-style:None;border-bottom-style:None;border-left-color:Black;border-top-color:Black;border-right-color:Black;border-bottom-color:Black;border-left-width:1pt;border-top-width:1pt;border-right-width:1pt;border-bottom-width:1pt;overflow:auto;word-wrap:break-normal;width:624px;margin-left: auto; margin-right: auto; overflow: hidden' cellspacing='0' cellpadding='0'>
<tr><td>
</td></tr>
 
<tr><td>
  <table cellspacing="0" cellpadding="0" border="0" style="width:100%;  table-layout: fixed;" class="s0">
  <colgroup>
    <col width="300px" />
    <col width="324px" />
  </colgroup>
  <tr valign="top" style="height:101px;"><td colspan="1" rowspan="1">
    <img alt="Chart" src="/Telerik.ReportViewer.axd?instanceid=2a15e0ff56534318865a798efc566a35&optype=ReportImage&StreamID=0qgrrjphoom" /></td>
    <td colspan="1" rowspan="1">
 
    </td>
  </tr>
</table>
</td></tr>
<tr><td>
</td></tr>
<tr><td>
</td></tr>
</table></div>
<script type="text/javascript">
     
var PageInfo = [0, 1];
var BookmarksOnPage = new Array();
 
</script></body>
Eric Wallace
Top achievements
Rank 1
 answered on 05 Nov 2010
1 answer
134 views
Hi,

I have a SQL statment which when run as a SQL script on the SQL managment studio works in 10scs. When run through Telerik as a report SQL datasource it times out.

when investigating the problem i have found this is todo with sp_executesql.

for example if i run my Script:

sp_executesql N' MySQL'.N'@Paramn varchar(20)',@Param ='Value'

then this takes 3mins.

if i run:

sp_executesql N' Declare @LocalParam as varchar(20)
                            Set @LocalParam = @Param
                            MySQL'.N'@Param',@Param ='Value'

this runs in 10scs.

my problem is when i try and do this in telerik it add the localParam into the sp_executesql Paramiter list like:

sp_executesql N' Declare @LocalParam as varchar(20)
                            Set @LocalParam = @Param
                            MySQL'.N' @LocalParam nvarchar(20) @Param nvarchar(20)',@Param ='Value'

because of this i get LocalParam is already declared if i remove the declare it then adds its own @LocalParam as a nvarchar(4000) and again it times out.

Steve
Telerik team
 answered on 05 Nov 2010
1 answer
103 views
I created 2 cascading parameters that are drop down boxes per the sample in the Learning Guide. In Preview, the parameters appear as expected. However, when I use the ReportViewer control on a web form, the parameters appear "behind" the form. This happens in IE and Firefox. See attached png.

I am using Reporting Q3/Q4 2009 ...



Steve
Telerik team
 answered on 05 Nov 2010
1 answer
366 views
Hi,

We are evaluating Telerik Reporting control but are facing problems in creating report pages. The problem is as follows:
We want to create a report whose data comes from stored procedure in database. The sp has 2 parameters which changes based on the drop-down controls on the report page. Now we have developed an report.aspx page and put a ReportViewer control in that page. Then we had created a Telerik Report using designer and then added this report to the ReportViewer control in report.aspx page.
Now where do we specify the parameters for the report? And then how do we bind the data after changing parameters?

The report is very similar to http://demos.telerik.com/reporting/employee-sales-summary/demo.aspx But on the demo page video is not available. Please let us know how to build such kind of reports. We have already spent lot of time in doing own. Your reponse will help us in making a decision to buy the product.

Thanks,
Dilip
Steve
Telerik team
 answered on 05 Nov 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?