Telerik Forums
Reporting Forum
5 answers
265 views
Hi, we are using Q3 2012 Reporting, and have a class library that contains all our reports. We are creating sub reports and in our main report, in the sub-report properties tab, click ReportSource, and then select Object Instance, and finally, select document from the drop down. The resulting list only contains some, but not all of the reports in our report class library. Why is this so?
Stef
Telerik team
 answered on 23 Oct 2013
3 answers
725 views
Hello,

I need to place image in the html control in the Telerik Report. Please help me to find it.

Thanks
Siva
Nasko
Telerik team
 answered on 23 Oct 2013
1 answer
96 views
Is there any movement on getting the documentation for the Reporting product in MSHelp3 format?
Stef
Telerik team
 answered on 23 Oct 2013
1 answer
626 views
I have this code:
ReportProcessor reportProcessor = new ReportProcessor();
Hashtable deviceInfo = new Hashtable();
var source = new InstanceReportSource { ReportDocument = report };
RenderingResult result = reportProcessor.RenderReport( "PDF", source, deviceInfo );


On this last line (the RenderReport call) I get this exception:
The type initializer for 'Telerik.Reporting.OpenXmlRendering.Wordprocessing.WordprocessingReport' threw an exception.
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Telerik.Reporting.Processing.ExtensionManagerBase.CreateExtensionInfo(String typeName, String extensionName)

Which contains an inner exception:
Could not load file or assembly 'DocumentFormat.OpenXml, Version=2.0.5022.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.":"DocumentFormat.OpenXml, Version=2.0.5022.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
   at Telerik.Reporting.OpenXmlRendering.Wordprocessing.WordprocessingReport..cctor()



This was working before I upgraded from Windows 8 to WIndows 8.1. I upgraded to the latest reporting version, which did not help. I am not sure why it is trying to access OpenXml when I am asking it to generate a PDF.

Ivan Hristov
Telerik team
 answered on 23 Oct 2013
6 answers
192 views
Hello,

I have the following data:
Type       Time                                        Value 1       Value 2
Type 1
2013-03-02 13:01:00                
0              
15
Type 2
2013-03-02 13:01:00 0 8
Type 1 2013-03-02 13:02:00 0 15
Type 2 2013-03-02 13:02:00 0 8
Type 1 2013-03-02 13:03:00 0 15
Type 2
2013-03-02 13:03:00 6 2
Type 1 2013-03-02 13:04:00 0 15
Type 2 2013-03-02 13:04:00 5 3

I wish to draw a line chart with the Time column on the X axis, and 4 lines, being {Type 1-Value1}, {Type 1-Value 2}, {Type 2-Value1}, {Type 2-Value 2},

So far i haven't succeeded in creating this chart. I tried using DataGroupColumn, manually defining series, etc.... but without luck. I am trying to do this from within the standalone report designer, so I can't use code.

Any help is highy appreciated,

Kind regards,
Stijn
Nasko
Telerik team
 answered on 22 Oct 2013
2 answers
361 views
Hi ,

While creating a report, for Purchase order specifically, i want the header part of the report (company particulars) from a different table, how do i link this to a data source created for the company details to the header, when trying to add fields from the DATA EXPLORER to a textbox, it is showing error that the report is linked to another data source( which is my primary data source which has the purchase order no, date etc.,)

Regards,
Jai
JaiGanesh
Top achievements
Rank 1
 answered on 22 Oct 2013
1 answer
158 views
Hi,

I have a report containing several textboxes in my header section all bound to a sqldatasource.

In of them I need to modify the value from a delimited string (item1;item2;item3 ...) to a string with newlines at each ;
item1
item2
item3

My textbox is bound to Fields.MyDataField

I have added an event handler

private void textBox4_ItemDataBinding(object sender, EventArgs e)
{
    Telerik.Reporting.Processing.TextBox txt = (Telerik.Reporting.Processing.TextBox)sender;
    Telerik.Reporting.Processing.IDataObject dataObject = (Telerik.Reporting.Processing.IDataObject)txt.DataObject;
 
    _myDataMember = (string)dataObject["MyDataField"];
    if (_myDataMember != null)
        StringToList();
    //Here I need to rebind textbox to the modified string
 
}

In debug mode I can see all my data field values in the dataObject EXCEPT from the one I need to modify??? This one is null. BUT if I let the report render I can see the values fine.

Apart from this strange behavior, assuming the data is there, how do I rebind my textbox showing my modified string?

Thanks,
Per
Per
Top achievements
Rank 1
 answered on 22 Oct 2013
1 answer
137 views
Hi,

I've started using the new HTML5 reportviewer for MVC but unfortunately the samples and documentation seems to be pretty lacking.

How do I pass across a simple parameter to a report?  Either via a link - e.g.. a link to show an Invoice which contains the invoice id.

OR 

    Allowing user selection on a page and passing that to the report?

Stuff like this should be simple but there doesn't seem to be any documentation at all on it.
Peter
Telerik team
 answered on 22 Oct 2013
1 answer
412 views
Hello everybody,

I am losing my hair on this one. Notice, I have never used routing or MVC before, so I am probably missing something obvious. I have a classic Web Forms project and need to integrate the new HTML5 Report Viewer.

Actually, when I start the HTML5 report viewer, I get the message inside the viewer "Error registering the viewer with the service". The html page is configured as suggested in Telerik's documentation, I have created a controller named "ReportsController" (as in doc).

To make run this controller, I have added the following in the Global.asax :

protected void Application_Start(object sender, EventArgs e)
{
      WebApplication1.App_Start.WebApiConfiguration.RegisterRoutes(GlobalConfiguration.Configuration);
}

and I have created a class named "WebApiConfiguration.cs" as follows:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
 
namespace WebApplication1.App_Start
{
    public static class WebApiConfiguration
    {
        public static void RegisterRoutes(HttpConfiguration httpConfiguration)
        {
            httpConfiguration.Routes.MapHttpRoute(
                name: "DefaultApi",
                routeTemplate: "api/{controller}/{id}",
                defaults: new { id = System.Web.Http.RouteParameter.Optional }
                );
 
            Telerik.Reporting.Services.WebApi.ReportsControllerConfiguration.RegisterRoutes(httpConfiguration);
        }
    }
}

Notice, I made no changes inside the webconfig.file

If I type http://localhost:65483/api/reports in the browser, I actually get some xml code :

[{"name":"PDF","localizedName":"Acrobat (PDF) file"},{"name":"CSV","localizedName":"CSV (comma delimited)"},{"name":"XLS","localizedName":"Excel 97-2003"},{"name":"XLSX","localizedName":"Excel Worksheet"},{"name":"PPTX","localizedName":"PowerPoint Presentation"},{"name":"RTF","localizedName":"Rich Text Format"},{"name":"IMAGE","localizedName":"TIFF file"},{"name":"MHTML","localizedName":"Web Archive"},{"name":"DOCX","localizedName":"Word Document"},{"name":"XPS","localizedName":"XPS Document"}]

But the HTML5 report viewer always tells : "Error registering the viewer with the service".

Really don't know what to do about this. As I said, I have no experience in routing / MVC.
Thanks a lot for your help and time,
Vlad


Milen | Product Manager @DX
Telerik team
 answered on 21 Oct 2013
3 answers
142 views
I'm wondering how to find the report format type (PDF, HTML, RTF, CSV, ...) to be able to conditionally choose the correct image (based on resolution) in my case (Something like RenderFormat global parameter in SSRS)., any idea?
Stef
Telerik team
 answered on 21 Oct 2013
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?