or
ReportProcessor reportProcessor =
new
ReportProcessor();
Hashtable deviceInfo =
new
Hashtable();
var source =
new
InstanceReportSource { ReportDocument = report };
RenderingResult result = reportProcessor.RenderReport(
"PDF"
, source, deviceInfo );
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)
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()
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 |
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
}
protected void Application_Start(object sender, EventArgs e)
{
WebApplication1.App_Start.WebApiConfiguration.RegisterRoutes(GlobalConfiguration.Configuration);
}
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);
}
}
}
[{"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"}]