Telerik Forums
Reporting Forum
1 answer
395 views
Hello,

I'm trying to build up a table-based report where I'm trying to keep the layout as tight as possible width-wise.  I'd like to be able to programmatically set the widths of my columns based on the width of the largest value in the data set so that the columns would be at the minimum width required to not wrap any of the content.  I was looking through the object model for the column and cell objects and couldn't figure out if there was a property that would get me the actual content size.  Do you know if there's a way to accomplish this?  Thanks so much for your help!

Regards,
Brian
Nasko
Telerik team
 answered on 17 Feb 2015
1 answer
192 views
Hi, 

So I have an HTMLTextbox declared inside my report, it's formatted into italic and bold by using HTML Tags like <i> and <b>, the texts were formatted properly but only on Report Viewer (both Print Preview and Interactive layout), I tried exporting it to PDF but when it was converted to a PDF file, all the HTML formatting that I did on the HTMLTextboxes were gone. Can someone explain to me why this is happening? Thanks
Lea
Top achievements
Rank 1
 answered on 17 Feb 2015
1 answer
60 views
We've used the WCF implementation of the ReportService for telerik for quite some time.

Currently, every few days, our deployed project that's hosted on IIS randomly stops returning available reports. The service is still running, however it returns 0 reports. If I redeploy the project it works fine. 

Our setup is a solution with a service project, and 2 reporting projects that have DLL's included in the service project. I checked the bin folder in the deployed project to make sure the DLL's were still in there after the reports stopped returning.

Any ideas? Please help...
Stef
Telerik team
 answered on 16 Feb 2015
3 answers
116 views
Okay Telerik. This is the kind of stuff that hurts my soul when I run into it. 

Some pretty basic stuff (after I have to add connection strings to my devenv.exe.config in order to use entityframework in my data class for designer preview).

I have a class, where I am loading data using EntityFramework in the constructor of this class. Currently, if I load an entity, and try to access a boolean value off of it, I receive a ridiculous error saying: 'Method not found: 'Boolean [NameSpace].[Entity].get_[PropertyName]().' This is not an issue of mis matched entities. If I literally comment out trying to access a boolean field, it works fine. As soon as I attempt to access a boolean value from a pulled entity, it gives me that error.

I haven't run into this issue until today, and quite honestly this was working fine before today. I'd love some feedback because I'm completely dead in the water on this.
Stef
Telerik team
 answered on 16 Feb 2015
1 answer
135 views
I have N number of Panel's that I want to stack vertically in my report. Each of those Panel's contains M number of child Panel's, which I also want to stack vertically. Each of these children contains a one or more TextBox/HtmlTextBox/Table's of an unknown size. I need everything to be dynamically sized, I do no know about the size of anything in advance. The report will be exported to PDF format.

A complete code sample is shown below. It creates 3 root level Panel's and each of these contains 2 child Panel's, which contains 2 TextBox's. Why is some of the content missing?

public partial class Report : Telerik.Reporting.Report
{
    public Report()
    {
        InitializeComponent();
 
        for (int i = 0; i < 3; ++i)
        {
            Panel panel = new Panel()
            {
                Docking = DockingStyle.Top,
            };
 
            for (int j = 0; j < 2; ++j)
            {
                panel.Items.Add(GetPanel(j));
            }
 
            this.detail.Items.Add(panel);
        }
 
        this.detail.Items[0].Style.BackgroundColor = Color.LightBlue;
        this.detail.Items[1].Style.BackgroundColor = Color.LightCoral;
        this.detail.Items[2].Style.BackgroundColor = Color.LightCyan;
    }
 
    private Panel GetPanel(int i)
    {
        Panel panel = new Panel()
        {
            Docking = DockingStyle.Top,
        };
 
        TextBox textBox1 = new TextBox()
        {
            Docking = DockingStyle.Left,
            Location = new PointU(Unit.Mm(0D), Unit.Mm(0D)),
            Size = new SizeU(Unit.Mm(50D), Unit.Mm(0D)),
            Value = i + " - Text Box"
        };
        panel.Items.Add(textBox1);
 
        TextBox textBox2 = new TextBox()
        {
            Docking = DockingStyle.Fill,
            Location = new PointU(Unit.Mm(50D), Unit.Mm(0D)),
            Size = new SizeU(Unit.Mm(124D), Unit.Mm(0D)),
            Value = i + " - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eleifend, dolor ac posuere sollicitudin, nisl nisl hendrerit odio, at pulvinar orci odio vitae ante. Phasellus sapien neque, dignissim nec libero id, iaculis fermentum risus. Aliquam erat volutpat. Praesent mattis lorem vel vulputate fringilla. Donec posuere dui vel nisi egestas, sit amet egestas sapien accumsan. Nullam vehicula ac eros sit amet congue. Integer gravida dolor sit amet justo ultricies, ac euismod nisi auctor. Proin et sem laoreet, sollicitudin ipsum sed, pharetra quam. Sed dapibus, erat in hendrerit tincidunt, dui arcu lacinia mi, maximus ullamcorper purus diam ac nisl. Nunc pulvinar ante vel semper posuere. Ut in pretium sapien. Interdum et malesuada fames ac ante ipsum primis in faucibus. Ut sit amet egestas sem. Duis faucibus libero turpis, sit amet finibus nisl hendrerit nec. "
        };
        panel.Items.Add(textBox2);
 
        return panel;
    }
}
Stef
Telerik team
 answered on 13 Feb 2015
2 answers
186 views
Hello,
I'm trying to setup the MVC-report viewer as instructed (http://www.telerik.com/help/reporting/telerik-reporting-rest-implementing-http-service.html)
My other WebApi controllers seem to be working just fine but when the report viewer widget loads, it reaches ReportsController but then fails ( with call to /api/reports/clients)

ExceptionMessage:"Method not found: 'System.Net.Http.HttpResponseMessage System.Net.Http.HttpRequestMessageExtensions.CreateResponse(System.Net.Http.HttpRequestMessage, System.Net.HttpStatusCode, !!0, System.Net.Http.Formatting.MediaTypeFormatter)'."

ExceptionType:"System.MissingMethodException"

StackTrace:"   at Telerik.Reporting.Services.WebApi.ReportsExceptionFilter.OnException(HttpActionExecutedContext context)
   at System.Web.Http.Filters.ExceptionFilterAttribute.OnExceptionAsync(HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ExceptionFilterAttribute.<ExecuteExceptionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__0.MoveNext()"

Any idea what part have I screwed up?


Petteri
Top achievements
Rank 1
 answered on 12 Feb 2015
3 answers
68 views
Hello,

We have followed the instructions for creating a new report via the quick start wizard instructions.  We continue to get a 404 error stating the Requested URL   http://localhost:55677/Controllers/api/reports/clients cannot be found. 

Is there a specific set of steps to configure a web api project to use the default reporting out-of-the-box?

Thanks!
Stef
Telerik team
 answered on 12 Feb 2015
1 answer
76 views
Hi there, I have been using Reporting 2014 Q3, and have been trying to create a work-around for the fact that when exporting to excel, some of the row heights are not properly set, which results in text being cut off.  To assist in remedying this, I have been trying figure out a way to handle the ExportEnd event on the report viewer.  The issue that I'm running into is that I cannot seem to find the ExportEndedEventArgs in any of the Telerik reporting assemblies.  I'm using WPF and have the WPF assembly in my references, but the only Export* event args that it contains are ExportBeginEventArgs.  Even when I bypass MVVM best practices and tell the ReportViewer to utilize a method in the code-behind, none of the Telerik.ReportViewer.*.dll assemblies contain the class.

Any assistance that could be provided would be great. 

Thanks.
Stef
Telerik team
 answered on 11 Feb 2015
1 answer
240 views
Hello,

I have a Cross Tab Report with Three Fields assigned to its Row Groups. I also Set Interactivity action to toggle group's visibility on runtime. However setting visbility of the first Row Group to off would also collapse all the subsequent row groups. Technically logical, but I want to know if there is a way to do it so the row groups can be toggled on/off with the remainder of the groups show aggregate data.Look at attached screenshots.
Stef
Telerik team
 answered on 11 Feb 2015
1 answer
105 views
Hi

I have a report with 2 picture box columns for boolean values.  I know from the documentation that PictureBox is ignored in the CSV export.  Is there a way to provide a hidden column with a text or checkbox alternative that could be hidden from the report view and other export types, but would be included in the csv export?

Thanks
Karen
Stef
Telerik team
 answered on 11 Feb 2015
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?