Telerik Forums
Reporting Forum
4 answers
424 views

Hi,

I am encountering a problem during the Export to Word from the Report Viewer.

I added the references to DocumentFormat.Open XML(v. 2.5.5631.0)  and  Telerik.Reporting.OpenXMLRendering (Q2 2015 SP1).

The export in XLSX, PPTX and PDF runs fine, but when i try to export to DOC i get this Error:

[OpenXmlPackageException: "Only one instance of the type is allowed for this parent"]

---- DocumentFormat.OpenXml.Packaging.OpenXmlPartContainer.InitPart(.....)

---- DocumentFormat.OpenXml.Packaging.OpenXmlPartContainer.AddNewPartInternal(.....)

---- ​Telerik.Reporting.OpenXmlReader.Wordprocessing.DocumentBuilder.get_​Settings(.....)

 

 Googlin' didn't help me, but from what i can see, seems to be related to the document content. But i don't understand why. The excel / pdf / ppt works fine.

I have a copy of the Telerik.Reporting Cache Files if you need it

 

Thanks

 

 

 

Nasko
Telerik team
 answered on 13 Nov 2015
1 answer
269 views

When I try to open a .trdx file with Telerik Report Designer Q2 2014, I get the following error message:

Fatal error in workbench.  Now closing...

An error has occured while loading the ReportDesigner's Workbench

 

Any ideas???  I have a lot of reports that I am responsible for...

Stef
Telerik team
 answered on 12 Nov 2015
1 answer
163 views

Hello Friends,

 

I am new to the Telerik Reporting, I want to make a stand alone telerik report with linq datasource at run time in MVC application.

Please help me to get rid of this.

 

Nasko
Telerik team
 answered on 11 Nov 2015
2 answers
84 views

Hello!

Im trying to install Reporting for trial purposes in my company. I did in one machine without any trouble, however when I try to installed in a virtual machine, that is our main resource, the virtual machine aborts itself withouts any warning.

The program don't even finish to download the resources before the machine resets. This happens installing only reporting or other parts of the DevCraft suite. Im running Win8 on VirtualBox V5.0.8 hosted on an iMac with Capitan 10.11.1.

Any help or ideas would be appreciated.

Thank you in advance

Juan Francisco
Top achievements
Rank 1
 answered on 11 Nov 2015
2 answers
172 views

Hi,

 

Hope you are fine.

 

I am passing parameter from reportviewer to report like

TypeReportSource trs = new TypeReportSource() { TypeName = typeof(TYMReporting.Reports.ZoneReport1.ZoneReportTelerik).AssemblyQualifiedName };
trs.Parameters.Add(new Telerik.Reporting.Parameter("ID","1"));
 
@(Html.TelerikReporting().ReportViewer()
        // Each report viewer must have an id - it will be used by the initialization script
        // to find the element and initialize the report viewer.
        .Id("reportViewer1")
        // The URL of the service which will serve reports.
        // The URL corresponds to the name of the controller class (ReportsController).
        // For more information on how to configure the service please check http://www.telerik.com/help/reporting/telerik-reporting-rest-conception.html.
        .ServiceUrl(Url.Content("~/api/reports/"))
        // The URL for the report viewer template. The template can be edited -
        // new functionalities can be added and unneeded ones can be removed.
        // For more information please check http://www.telerik.com/help/reporting/html5-report-viewer-templates.html.
        .TemplateUrl(Url.Content("~/ReportViewer/templates/telerikReportViewerTemplate-9.1.15.731.html"))
        // Strongly typed ReportSource - TypeReportSource or UriReportSource.
        .ReportSource(trs)

So kindly tell me how can i get the passed parameter on report page. i am trying to get like

public ZoneReportTelerik()
        {
            InitializeComponent();
             
            var dal = new DataEntities();
            var zoneReport = new DataSet();
            var ID=this.ReportParameters["ID"].Value;
}

but its not getting the parameter. it always returns null. kindly guide me please.

 

REgards,

 

Faisal

Nasko
Telerik team
 answered on 11 Nov 2015
1 answer
170 views

We have a dynamically created report that we build using a table.  One of the columns on this report is a PictureBox that we use a LoadImage(path) function for the value.  This report displays correctly in the viewer.  I can also export it to a PDF without a problem.  However, when I try to export it to excel or when I try to write it directly to excel, I get a "parameter is not valid" error with the full stack trace shown below.  I tried this locally and on a test server but I get the same error.  Is there a setting on the PictureBox that I am missing?  Configuration settings?  Any ideas?

 

    Exception type: ArgumentException 
    Exception message: Parameter is not valid.
   
    Stack trace:    at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
   at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
   at Telerik.Reporting.ExcelRendering.PictureBox.GetAdjustedImage(Image originalImage, RectangleU srcRectangle, RectangleU dstRectangle)
   at Telerik.Reporting.ExcelRendering.PictureBox.ProcessImage(Image originalImage, RectangleU& excelRectangle, Image& excelImage)
   at Telerik.Reporting.ExcelRendering.PictureBox.RenderInternal(IWorksheet worksheet, RenderingContext context)
   at Telerik.Reporting.ExcelRendering.RenderingItem.Render(IWorksheet worksheet, RenderingContext context)
   at Telerik.Reporting.ExcelRendering.RenderingItemContainer.RenderInternal(IWorksheet worksheet, RenderingContext context)
   at Telerik.Reporting.ExcelRendering.Table.RenderInternal(IWorksheet worksheet, RenderingContext context)
   at Telerik.Reporting.ExcelRendering.RenderingItem.Render(IWorksheet worksheet, RenderingContext context)
   at Telerik.Reporting.ExcelRendering.RenderingItemContainer.RenderInternal(IWorksheet worksheet, RenderingContext context)
   at Telerik.Reporting.ExcelRendering.Section.RenderInternal(IWorksheet worksheet, RenderingContext context)
   at Telerik.Reporting.ExcelRendering.RenderingItem.Render(IWorksheet worksheet, RenderingContext context)
   at Telerik.Reporting.ExcelRendering.Group.RenderInternal(IWorksheet worksheet, RenderingContext context)
   at Telerik.Reporting.ExcelRendering.RenderingItem.Render(IWorksheet worksheet, RenderingContext context)
   at Telerik.Reporting.ExcelRendering.RenderingItemContainer.RenderInternal(IWorksheet worksheet, RenderingContext context)
   at Telerik.Reporting.ExcelRendering.Report.RenderInternal(IWorksheet worksheet, RenderingContext context)
   at Telerik.Reporting.ExcelRendering.RenderingItem.Render(IWorksheet worksheet, RenderingContext context)
   at Telerik.Reporting.ExcelRendering.Report.Render(IWorkbook workbook)
   at Telerik.Reporting.OpenXmlRendering.Spreadsheet.SpreadsheetReport.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
   at Telerik.ReportViewer.WebForms.ReportExportOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext)
   at Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride()
   at Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext context, ICacheManager cacheManager)
   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)
 â€‹

Koren
Top achievements
Rank 1
 answered on 11 Nov 2015
2 answers
152 views

I have a report I built in Visual Studio but can't seem to find any tools to edit the report.

For example, how to I insert a text box?  How do I insert today's date?

Can a .cs file report be edited in the offline designer?

 

Thanks

Kurt

 

Kurt
Top achievements
Rank 1
 answered on 10 Nov 2015
1 answer
336 views

I have a report, straight table with 15 columns and 7000 rows.  Running in an MVC application.

Report is slow to load and renders the browser useless after it does render.

I am looking to have a discussion on things that can be done to reduce this perfomance bottleneck.

All suggestions welcome,

Kurt

 

Nasko
Telerik team
 answered on 10 Nov 2015
8 answers
168 views

Hi guys,
I want to hide some line portions in a telerik chart, I don't know how to explain it, so I've created an  example image to show you my idea

 

How you can see in this case I assumed that in March there isn't any data, so the line must by invisible in that month

Nasko
Telerik team
 answered on 10 Nov 2015
1 answer
62 views

I am running SQL 2008 R2 on Windows 7.  

Telerik Report Designer, Q3 2015.

I can't seem to get a connection string to connect to my database.  

Any thoughts on what I should select to connect?  

Thanks

Kurt

 

Nasko
Telerik team
 answered on 10 Nov 2015
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?