Hello ,
I am using Myriad pro font in the report. There is no difference in the regular, bold and italic text of the generated Pdf report. It works fine when changed to Arial font. I have the font installed and embedded in the pdf. Is there anything specific that needs to be done for bold and italic to show up in the report ?

We have an ASP.NET web app running on .Net 4.6.1 which uses Telerik Reporting extensively to create PDFs. We have just updated our Telerik Reporting library fro 2014 to 2017 (tried all versions).
We have a number of "PictureBox" elements in our PDF reports where we generate an image in code and assign that to the PictureBox's Value element (snippet below).
1. Report designer code for the PictureBox:
---------------------------------------------------------
this.pictureBox6 = new Telerik.Reporting.PictureBox();
this.pictureBox6.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(0.47999998927116394D), Telerik.Reporting.Drawing.Unit.Inch(2.2999999523162842D));
this.pictureBox6.MimeType = "";
this.pictureBox6.Name = "pictureBox6";
this.pictureBox6.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(2.2899999618530273D), Telerik.Reporting.Drawing.Unit.Cm(2.2899999618530273D));
this.pictureBox6.Sizing = Telerik.Reporting.Drawing.ImageSizeMode.ScaleProportional;
this.pictureBox6.Style.BackgroundColor = System.Drawing.Color.Transparent;
this.pictureBox6.Value = "";
2. Create a Bitmap image dynamically and assign to the PictureBox element:
-----------------------------------------------------------------------------------------------------
var flag = new System.Drawing.Bitmap(10, 10);
for (int x = 0; x < flag.Height; ++x)
for (int y = 0; y < flag.Width; ++y)
flag.SetPixel(x, y, Color.White);
for (int x = 0; x < flag.Height; ++x)
flag.SetPixel(x, x, Color.Red);
var image = flag;
pictureBox6.Value = image; // RUNTIME ERROR BELOW:
"An error has occurred while processing PictureBox 'pictureBox6':
Invalid image data.
------------- InnerException -------------
Could not find a part of the path 'D:\DEV\MyProj\MyProj.Web\'.
I have tried the following already:
- var image = Image.FromFile("D:\\DEV\\MyProj\\MyPorj.Web\\Content\\Images\\5.PNG");
pictureBox6.Value = image;
- MemoryStream ms = new MemoryStream();
image.Save(ms, ImageFormat.Bmp);
pictureBox6.Value = image;
Both of the above return the same error. For the life of me, I can't figure out the cause of this error. Downgrading back to Telerik Reporting 2014 fixes the problem. Please help.
Hi,
I have a report in which one of the tables uses objectDataSource, while the others use either SQL or Cube data sources.
I followed the docs (http://docs.telerik.com/reporting/standalone-report-designer-extending-configuration), and added necessary assembly references in the ReportDesigner config file. When I open and preview the local trdx report using report designer, I am able to see the table that uses objectDataSource populated correctly.
However, when I include the report in my Web Api application, and render it in HTML5 report viewer (http://docs.telerik.com/reporting/html5-report-viewer), the table doesn't show any data, while the other tables that use SQL and Cube data sources are populated correctly.
The reason I can think of is the assembly references weren't loaded when the report is rendered in HTML5 report viewer in the Web Api application. But I am not sure what needs to be done to overcome it. Can anyone please shed any light on this? Many thanks.
Hello, my problem is when I try to generate printout in c# app, design in Designer to trap file, the final generated printout looks like scaled in plus.
My target is to get 95 mm x 44 mm label, and this one is designed, in Designer, printout is fine. When I try to print is by below code, label Paper Size looks like scaled. How to set paper size or fix my problem?
Code:
string path = HostingEnvironment.MapPath(@"~/Content/printouts/packageLabel.trdp");
System.Drawing.Printing.PrinterSettings printerSettings = new System.Drawing.Printing.PrinterSettings();
printerSettings.PrinterName = "Bullzip PDF Printer";
System.Drawing.Printing.PrintController standardPrintController = new System.Drawing.Printing.StandardPrintController();
Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
reportProcessor.PrintController = standardPrintController;
UriReportSource reportSource = new UriReportSource();
reportSource.Uri = path;
reportProcessor.PrintReport(reportSource, printerSettings);
I have a web application designed with Telerik ASP.Net AJAX tools. There are many reports in the application being presented to users, these reports were made using Telerik.Reporting assembly about 4 years back. Many of these reports are using HTTP session values to populate some text values. Code used for which is as shown under.
txtUserCodeId.Value = System.Web.HttpContext.Current.Session["BackgroundCode"].ToString();
There is a need now to update these reports with some updates. I have tried to use the HTML5 Report Viewer. I have been able to get it to work, however all the session values being used are now not holding any value and come up with null exception giving errors.
These session values are not report parameters, which I have been able to assign as required. Do I have any options to use session values or alternative methods.
Regards and Thanks...
So, I have a report and a subreport in the same directory. The report runs fine from Report Designer when I click Preview, but when I run the report from within our application, I get an error:
An error has occurred while processing SubReport 'TestsSubReport':
Could not find file 'F:\MAJIQ\Elixir\ABCD\Install\Application\7.2.17221.02\COAReport (Tests Sub Report).trdp'."
Any help is greatly appreciated.
-Joe
Hello,
I have few reports when I am using data tables (like in att1) and everything was working really nice, but then i have upgraded Reporting to R2 2017. The problem is that if there is no Data returned for my table i was using property "NoDataMessage" to display some text (att2). In newest version if i put anything into "NoDataMessage" property it crashes my report with
"Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"
The only way to make it work is to leave this property empty, or to set it's value to some integer (but it won't be displayed anyway). I do not really want to modify the queries as it was really handy to display Text when there was no data returned from database.
Can anyone help me with this?
Hi,
When I trying to export a report with different search parameter, I've got different result in report viewer, but I've got same result in export to excel.The problem seems to be browser caching. Does telerik reporting have solution for this issue?
regards

I am currently developing a reporting app with Angular. This app is housed in .NET MVC architecture due to the constraints I must work within. In order to keep my data access tier from knowing anything about the reports themselves, I have a separate DatabaseManager that makes my queries and returns the results in a business object. My angular front-end gets the query parameters from the user, makes the rest call to an MVC ApiController.
My question is this: how do I take the business object and display the data in the report within the angular app? I have the angular report viewer in my component html. On the back-end, I can create an instance of the report I made in the designer, set it's DataSource to the business object, and make that the ReportDocument property of an InstanceReportSource. After returning that to the front-end, I am stuck.
How can I get that InstanceReportSource in the report viewer? Am I going about this in the wrong way to begin with?