Telerik Forums
Reporting Forum
4 answers
1.1K+ views
Hello,

I am binding table one of columns with Panel that has textbox and picturebox. I am giving Picturebox1.value="{Fields.[RowIcon]}", where RowIcon is byte[] contains image byte. Text box value comes properly  as per its binging expr. but for picture box it says invalid image data while processing picutre box.

I also tried changing RowIcon type to Image. But got same error.

Please help.

Regards,
Manish
Michela
Top achievements
Rank 1
 answered on 08 Oct 2018
1 answer
562 views
I have a Web Application using Telerik.Reporting.Services.WebApi with Html5 ReportViewer with a custom controller, where depending on the report type it uses a custom resolver.
There are 3 different report types and each one uses a HostAppId with a custom resolver. The storage is a Telerik.Reporting.Cache.File.FileStorage pointing to the same path for all 3 report types.

But after starting the application and generating the first report type, the other 2 types generates information in the storage path, but the report does not display any information, always being '0 pages loaded so far ...'.
It opens infinite requests - one after another - to an url like this "~/clients/085352-e708/instances/083615-c3d7/documents/085412-2b2a085412-5cbd/info" giving the same json response for them all:
{
"documentReady":false,
"pageCount":0,
"documentMapAvailable":false,
"bookmarkNodes":null,
"documentMapNodes":null
}

I believe that somehow by changing HostAppId, the cache is lost. How I fix this?

ReportBaseController

public class ReportBaseController<TReportResolver> : ReportsControllerBase
   where TReportResolver : IReportResolver, new()
{
   protected virtual string HostAppId { get; }

   protected string ReportCachePath => HttpContext.Current.Server.MapPath($"~/App_Data/reportcache");

   public ReportBaseController()
   {
       if (!Directory.Exists(ReportCachePath))
           Directory.CreateDirectory(ReportCachePath);

       this.ReportServiceConfiguration = new ReportServiceConfiguration
       {
           HostAppId = this.HostAppId,
           ReportResolver = new TReportResolver(),
           Storage = new Telerik.Reporting.Cache.File.FileStorage(ReportCachePath)
       };
   }
}


Controllers of the 3 different report types:

public class ReportSystemController : ReportBaseController<SystemReportResolver>
{
   protected override string HostAppId => "ReportSystem";
}

public class ReportClientController : ReportBaseController<ClientReportResolver>
{
   protected override string HostAppId => "ReportClient";
}

public class ReportListController : ReportBaseController<ListReportResolver>
{
   protected override string HostAppId => "ReportList";
}
Nasko
Telerik team
 answered on 05 Oct 2018
5 answers
1.8K+ views
Why are the two versions of Telerik.Reporting.OpenXmlRendering not included in the telerik nuget feed? This makes deployment especially difficult. Is there some way around this other than having to add the dll to my own source control?
Karl
Top achievements
Rank 1
 answered on 05 Oct 2018
2 answers
87 views

Hi admins, is it necessary to have the Report Server installed to display reports from asp .net web sites? In the marketing gumph this did not appear to be the case.

If not can you point me at the doco for displaying without the Report Server please.

Silviya
Telerik team
 answered on 05 Oct 2018
3 answers
251 views

Hi,

i'm try to pass two parameter to my report, in WPF/MVVM scenario, but the report can't see(Missing or invalid parameter value.). To be sure that report have the right parameters, i've put a texbox(into report) and set his value to the parameter's value. When i refresh report, "Missing or invalid parameter value" disappare, the textbox value have the correct ID but report no fetch record from Datasource.

This is my code:

XAML:

                <tr:ReportViewer telerik:StyleManager.Theme="Material" IsEnabled="{Binding ReportEnabled}"
                                 ReportSource="{Binding FormInternalReport_Source, Mode=TwoWay}" 
                                 HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.ColumnSpan="2" />

 

ViewModel:

       private ReportSource _FormInternalReport_Source;
        public ReportSource FormInternalReport_Source
        {
            get { return _FormInternalReport_Source; }
            set
            {
                Set<ReportSource>(() => this.FormInternalReport_Source, ref _FormInternalReport_Source, value);
            }
        }

        private void ExecuteInsert(object parameter)
        {

            //Report are enable only when Insert Button is clicked
            ReportEnabled = true;

            FormInternalReport_Source = new InstanceReportSource { ReportDocument = new Form_Internal(Report_ID) };
            FormInternalReport_Source.Parameters.Add(new Telerik.Reporting.Parameter(new Telerik.Reporting.Parameter("ID", Report_ID) ));                        
            FormInternalReport_Source.Parameters.Add(new Telerik.Reporting.Parameter(new Telerik.Reporting.Parameter("LanguageID", 1) ));


            try
            {
                RaisePropertyChanged("FormInternalReport_Source");
            }
            catch(Exception ex)
            { }


        }
Can someone help me?

Thanks.

SteSa
Top achievements
Rank 1
 answered on 04 Oct 2018
1 answer
230 views

Hi, 

We are getting the below error when trying to view any telerik report on our hosted webpages. 
Error registering the viewer with the service.


An error has occurred.
The process cannot access the file '\\sfs-iisfile\IIS Content\sfs.portal.webapp\reports-cache\509e4f1d\11.2.17.913\LCT\value.dat' because it is being used by another process.

We have a load Balanced environment and this error seems to happen sporadically, it happened a few months ago and seemed to correct itself but has now happened again.

Has anyone else experienced this issue and could help with possible fixes or suggestions?

Thanks in Advance,
Adam

Silviya
Telerik team
 answered on 04 Oct 2018
2 answers
248 views

Hi, I want to do a report that have multiple master-details,

my environment is Winform , Reporting R1 2017, UI for WinForms R1 2017 SP1,

what I supposed is like attach file 1.png,

there have group header to place master data, and a table to show detail data,

and will print multiple page for multiple master-details data.

I created data class and also a method that return the datasource (return type is List<RptDataMaster>):

public class RptDataMaster
{
    public string WaveNumber{get;set;}
    public string CustomerNumber{get;set;}
    public string OrderNumber {get;set;}
    public List<RptDataDetail> list{get;set;}
     
    public RptDataMaster()
    {
        this.list=new List<RptDataDetail>();
    }
}
 
public class RptDataDetail
{
    public string ItemNumber{get;set;}
    public string ItemName{get;set;}
    public int Qty{get;set;}
}

 

but next, I have no idea how to grouping them up at report designer,

should I add two objectDataSource (bind to RptDataMaster & RptDataDetail) or something?

Please give me some suggestion, thanks!

 

Martijn
Top achievements
Rank 1
 answered on 04 Oct 2018
7 answers
260 views
I am using the Q2 version of Reporting, using the new EF feature.  I create a new report, and define a new datasource. All works well. Now I create a second report, and want to reuse the datasource created in the first report.  However, there are no datasources listed under Project Datasources.  How does a datasource get created that can be used across multiple reports?
Silviya
Telerik team
 answered on 03 Oct 2018
4 answers
438 views

Hello,

In reports, that I need, there are some tables that should be displayed (in interactive mode) in one page but printed in several pages. To prevent page split in the interactive mode I try to make one big table with subtables (I merge cells and then insert panel+table) and then injust KeepTogether property to control the page break places. However, sometimes it is not work as I suppose, and also it doesn't allow me to print small tables (that fit in one page) on different pages.  

Are there better solutions for my need? Is there any way I can clearly define the strict page break place?  

Thanks!

Reports are made in standalone designer, and then shown in html5 report viewer.

Silviya
Telerik team
 answered on 03 Oct 2018
0 answers
84 views

How to Set DataSource to a Report Parameter in Code

Hi, I am trying to set a datasource to a report parameter by code, but i did not find anything, so I hope someone help me with this problem, I know that I can set a DataSource to a TextBox or a Table but not a report parameter, so...

Thanks for your attention!

Juan Sebastián
Top achievements
Rank 1
 asked on 02 Oct 2018
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?