Telerik Forums
Reporting Forum
1 answer
312 views
Hello,

I've designed a report for PDF, with page settins: Portrait; A4 & .5in margins on each side. Now I need to also display this report in a div in my application that is 700px wide. However, the width of the report is greater than 700px. Is there a way to alter these settings at runtime from my application?
Steve
Telerik team
 answered on 09 May 2012
4 answers
177 views
Hi

I am making a database web application which uses a telerik reporting report to display some statistical charts based on parameters that the user selects.

What I would like to provide to the end user is a combobox that allows the users the chance to select the skin they want the charts inside the report to have.

The report is shown using a report viewer control on an aspx page.

Is it possible to put the combobox on the aspx page and then reference the charts skin property when the combobox is changed

ie reporviewer.report.chart1.skin = combobox.selectedvalue

Thx for any advice that you can give

Regards

Dwight
Dwight
Top achievements
Rank 1
 answered on 09 May 2012
3 answers
288 views
Hi,

We regularly encounter a problem with our reports.  Some user opens a report page, then, omits filling all the required fields parameters and then clicks on the Export or Refresh button.  Because the parameters are not filled, the report crashes with an exception, which we can handle, but it would be a lot more convenient to prevent the user from clicking the buttons beforehand.  Is there a convenient way to do that. 

For your information, we tried setting the "ShowRefreshButton" and "ShowExportGroup" to False on the Load event and setting them to True on the NeedDataSource event.  Unfortunatly, even if the NeedDataSource event is triggered and the setters properly set to True, the buttons won't be visible after the report is generated. 

Regards,
Hugues Ferland
Top achievements
Rank 1
 answered on 08 May 2012
3 answers
229 views
Does anyone having same issues ? 

Any help to fix it is highly appreciated.

Thanks
Steve
Telerik team
 answered on 08 May 2012
0 answers
91 views
Hello
I want to use a wcf service as my report data source
this is what i do
1. Refrence wcf service in library
2. Refrence library to silverlight application
3. Refrence wcf service to silverlight application
4. use wcf telerik report(Hosing WCF Service in IIS)and a report viewer in xaml
but in run time i get a blank report
is there any way that i use a wcf service (no RIA service ) as report data source?
thanks for mention



Ww
Top achievements
Rank 1
 asked on 08 May 2012
3 answers
244 views

I'm passing a report an array of guids converted to strings, into a multivalue parameter. My question, is how do I now get the report to pass that to my SQL query? The query looks like this:

SELECT        Name, Address, Address2, City, State, Zip, Phone, PrimaryContact, ExpirationDate
FROM            Companies
WHERE        (ID IN (@Companies))

Thanks

Peter
Telerik team
 answered on 08 May 2012
5 answers
116 views

Dear Telerik team,
 
I am using Telerik report Q2 2011 (5.1.11.713)  . how do i apply localization to the silverlight report viewer. 

Thanks,
Kiran 
Steve
Telerik team
 answered on 08 May 2012
1 answer
485 views

Hello,

I run into the following .Net exception that seems to be triggered from the Telerik Reporting engine: "Unhandled exception, filepath [Telerik.ReportViewer.axd]System.InvalidOperationException: Invalid image data. ---> System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+." Maybe someone has seen this before? Looks a bit related to this problem.

The problem seems specifically to occur when I render a textbox control that is rotated for 90 degrees, so with vertical text rendering. Also the problem only occurs during HTML rendering, for example PDF rendering is no problem. It seems that vertical text in html gets rendered as an image. The GDI+ exception occurs when this textbox is rendered. It also seems to be related to bigger data amounts, having reports with at least 50 pages.

Googling for a solution it seems that this exception often occurs:

  1. Because of a rights issue when output is written to a file directory. This does not seem to be likely since I choose to render entirely in memory.
  2. The generated bitmap is not properly disposed. This would be something in the Telerik rendering engine and is out of my control.

    Some more background:

In our app we do generate the report layout programmatically and I have not been able to reproduce this problem using a report generated with the report builder. I also logged a support ticket for this issue but the response was "please send a sample project." Unfortunately I was not able to reproduce the problem in a sample project. I'll keep you posted when I get a solution from Telerik though.

Stack trace:

[5232] 24-4-2012 12:10:02 [12:10:02] Unhandled exception, filepath [/Florin/Telerik.ReportViewer.axd]System.InvalidOperationException: Invalid image data. ---> System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
    at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
    at Telerik.Reporting.Processing.Imaging.ImageUtils.SaveBitmap(Stream stream, Image image)
    at Telerik.Reporting.Processing.Imaging.ImageUtils.ResolveImage(Image image)
    at Telerik.Reporting.Processing.Imaging.ImageUtils.GetImageData(Object value)
    --- End of inner exception stack trace ---
    at Telerik.Reporting.Processing.Imaging.ImageUtils.GetImageData(Object value)
    at Telerik.Reporting.Processing.Imaging.ImageContainer..ctor(Object value)
    at Telerik.Reporting.HtmlRendering2.Common.Writers.ImageWriter.SaveImageInStream(Image image)
    at Telerik.Reporting.HtmlRendering2.Common.Writers.RotatedTextElement.WriteImage(Image image, Single imageWidth, Single imageHeight, Single left, Single top)
    at Telerik.Reporting.HtmlRendering2.Common.Writers.RotatedTextElement.WriteElement(ProcessingElement element, RectangleF writeTextRectangle, RectangleF imageRectangle)
    at Telerik.Reporting.HtmlRendering2.Common.Writers.RotatedTextElement.End(ProcessingElement element, ElementPageInfo pageInfo)
    at Telerik.Reporting.Paging.PageElementLayer.AddToPage(IPageHandler handler)
    at Telerik.Reporting.Paging.PageElementManager.AddToPage(IPageHandler handler)
    at Telerik.Reporting.Paging.PageCompositionBase.SendPhysicalPages(Boolean lastPage)
    at Telerik.Reporting.Paging.InteractiveLayout.PageComposition.PageOverride()
    at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
    at Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
    at Telerik.ReportViewer.WebForms.ReportPageOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, Hashtable renderingContext)
    at Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride()
    at Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context)
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Development
Top achievements
Rank 1
 answered on 08 May 2012
2 answers
104 views
Hi, I have a stored procedure that returns for example, a Company column, SubCompany column and TotalCharges like this:

Company SubCompany TotalCharges
A AA 30
A BB 40
B CC 15
B DD 20

I want a report grouping by Company only and sum of TotalCharges with a GrandTotal like this:

Company TotalCharges
A 70
B 35
Total 105

Is there any way to do it? I can modify my stored procedure to bring this information already from the database, but I want to use the same stored procedure without any change because I'm using it in another report.
I really don't know if I need to use a Table or some other control, I'm new with this sorry!
I'm using Telerik Reporting 5.1.11.928 for a Silverlight Project
Thank you.
Chris Thierry
Top achievements
Rank 1
 answered on 07 May 2012
3 answers
176 views
Hello

I have 2 panels one over the other with 2 texboxes in each.
If the bottom panel exceeds the space left on the current page I need the upper panel stretched its size to the bottom of a page and the bottom one started from the new page.

Could anyone help me please?

Best regards, Yuriy
IvanY
Telerik team
 answered on 07 May 2012
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?