Telerik Forums
Reporting Forum
1 answer
151 views

Hello,

I have a question about range bar charts. I use the latest release of reporting standalone designer. What I want to, is to have in the same category more than one range bar.

 

Here is what I get:

This is the data

 

What I expect is, that in category "Pause" a second range bar will be visible at the range from 1080 to 1439.

Is this not possible with report designer?

Regards

Karsten

 

Dimitar
Telerik team
 answered on 16 Sep 2022
1 answer
916 views

I have a pretty simple report that shows a couple of fields and a cross tab with some child data. It's just for demo purposes for now. It runs against an object data source, a .NET 6 class and I'm setting the data source at runtime like so:

var reportProcessor = new ReportProcessor(); var reportSourcePath = Path.Combine(_config["reportTemplatePath"], "Test.trdp"); Telerik.Reporting.Report report = null; using (var sourceStream = File.OpenRead(reportSourcePath)) { var reportPackager = new ReportPackager(); report = (Telerik.Reporting.Report) reportPackager.UnpackageDocument(sourceStream); } report.DataSource = GetDataSource(customerId); // Returns a .NET 6 object instance

Rendering the report thusly:

var reportSource = new InstanceReportSource();
reportSource.ReportDocument = report;
var result = reportProcessor.RenderReport("PDF", reportSource, new System.Collections.Hashtable());

This all works on Windows but fails on Mac at the RenderReport line with the following stack trace that I can't quite parse:


System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Threading.ManualResetEventSlim.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.SpinThenBlockingWait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.InternalWaitCore(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait(CancellationToken cancellationToken)
   at Telerik.Reporting.Paging.PageCompositionBase.SeparateThreadOutputBehavior.Finish()
   at Telerik.Reporting.Paging.PageCompositionBase.CreatePages()
   at Telerik.Reporting.Paging.PagerBase.Telerik.Reporting.Paging.IPager.CreatePages(IPageHandler handler, LayoutElement root)
   at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(LayoutElement root, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback, PageSettings pageSettings)
   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 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.<>c__DisplayClass46_0.<RenderReport>b__0(SingleStreamManager sm)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReportSafe(Func`2 renderCallback, String format, IRenderingContext renderingContext)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo, CancellationToken cancellationToken)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo)
I had an earlier error that I solved by installing the libgdiplus library but I can't figure out what's causing this. It seems to be related to the paging but to my knowledge, there is no paging in the report. Or at least no obvious paging; I modified it from the Speakers Report sample so maybe there's some lingering there? Either way, I don't know why it's failing on Mac but not Windows.
William
Top achievements
Rank 1
Iron
 answered on 16 Sep 2022
1 answer
375 views

Hi,

I have a set of data with a timestamp that changes with the order of milliseconds. I would like to add in my report a Line chart (or similar) showing the data as a function of the timestime. Unfortunately it appears that the LineChart allows you to lower the base unit only to seconds and not milliseconds. 

Is there any way to force the millisecond time?

As a workaround I tried two things:

First, to plot the data adding as cathegories the milliseconds, seconds, minutes, and h of the data. It works, but to be honest is not very pretty (see Img0.png)

Alternatively, I also tried to generate a Calculated field where I substract the Timestamp of the data with the First Timestamp, in order to have a time that starts from 0. From this Field, I wanted to manually calculate the milliseconds (adding also seconds, minutes, etc) in order to make a Scatter graph. However the obtained field has some issues. In the dataSource it appears as date, showing it has Minute, Second, etc, but if I try to refer to these subfields it gives me errors. I attached two pictures, one with the error shown if I just make a preview of the two data calculated, the other showing the Calculated Field (note that for the second one I'm simply collecting the Millisecond field). 

Could you please help me with this, maybe with an example? thank you in advance! 

Keep in mind that I would prefer to resolve it within Telerik, without the need to use outside code/calculations.

 

Antonino
Top achievements
Rank 1
Iron
 answered on 13 Sep 2022
0 answers
110 views
When I attempt to follow the instructions to create a Report Template, the wizard returns [Template Build Failure] message,  How can I determine what is the cause of this failure?
Steve
Top achievements
Rank 1
 asked on 12 Sep 2022
0 answers
138 views
I will send the data table to the local report file and print it out in the form of a table.
I tried to send only Parameters using UriReportSource, but I don't know how to send dataTable.
And I don't know how to show it in the form of a table in the trdp file.
You must send data to a report file in a specific folder and print it out, not through the server.
arbam
Top achievements
Rank 1
Iron
 asked on 12 Sep 2022
1 answer
105 views

I found some postings about this, but they're all more than 10 years old.  I'm hoping something has been added to address this since then.

On a label report, how can I tell the report to skip the first N labels so I start at a certain row and column?

Surely a hack to insert null rows at the top of the result set isn't the only option?  Is there some event I can use or anything to cause the engine to skip labels until I say continue?

Thank you!

0 answers
230 views

We had a report viewer set up that broke when we migrated from versiion 18.something to the current version because the report viewer would not accept an xmlReportSource.

This is very inconvenient to say the least.

There is some hint in the documentation that you can still do a simple local rendering but all of the viewers seem to only work with the REST service.

I've set up the HTML5 viewer but I had another ReportsController within my project so i had to rename it to keep it from being clobbered by the install of the Rest service.

Once installed I found at runtime that the Reports route was being confused with an entirely separate WebServices project. The only workaround that I found was to rename the controller to TelerikRestReportsController. The call to the viewer is functioning now and you can see in the first attached file that I am getting a response. Unfortunately I am now seeing the following:

Any suggestions would be greatly appreciated.

Don
Top achievements
Rank 1
 asked on 12 Sep 2022
1 answer
122 views

I would like to know if Telerik has a solution for this challenge that we are running into. I have a Telerik Report that our system will automatically export into a PDF, but users have an option to click a checkbox and additional PDFs from the current objects children will be stitched onto the end of the PDF report. So the report itself might be 10 pages, and then our application will then stitch on an additional 5 PDF files that are 2 pages each (totaling 20 pages).

Is there a way to place bookmarks in the main report, that will be able to link to the PDF files that are stitched onto the end of the report?

Todor
Telerik team
 answered on 09 Sep 2022
1 answer
95 views

Good day!

Could you please help me to find the solution?

I have several htmlboxex in the report which accept html-strings from text-editor(for ex. <p>Comment</p><p>Comment</p><ol><li>List</li><li>List</li><li>List</li></ol><p><br></p><p>Comment</p><p>Comment</p>). And when I open the preview mode or look at it in html-viewer I get annoying extra gaps (see attached support.png). I tried to replace these <p>-tags with <div>-tags in the retrieved string in my sql-query (<div>Comment</div><div>Comment</div><ol><li>List</li><li>List</li><li>List</li></ol><div><br></div><div>Comment</div><div>Comment</div>). It helps. But there are some other tags that cannot be replaced (tags of ordered and unordered lists for example). And these gaps are still rendered. Could you please help me to find the solution how to make this text to be rendered correctly (see attached original.png, result.png)?

Thanks

Best regards, Helen

Todor
Telerik team
 answered on 07 Sep 2022
1 answer
549 views

HI,

 

I have group in Telerik report. The data source I used to create the group had some duplicated rows. Therefore, There are duplicated groups in report. Is there any way to remove those duplicated groups?

Highlighted in below image is duplicated.

 

Dimitar
Telerik team
 answered on 06 Sep 2022
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?