Telerik Forums
Reporting Forum
2 answers
157 views

Hello,

MyMasterReport contains 3 subreport
in the report Master I have MyMasterReport.Datasource = MyModelClass

I wold like to have this:

subreport1.Datasource = MyModelClass.List1  //List1 is a property of my class MyModelClass and is a List<myObject1>
subreport2.Datasource = MyModelClass.List2  //List2 is a property of my class MyModelClass and is a List<myObject2>
subreport3.Datasource = MyModelClass.List3  //List3 is a property of my class MyModelClass and is a List<myObject3>

so, I create MyModelClass with a lot of property, one for each datasource

I send MyModelClass  to master report, and it works:

-----------------------------

MyModelClass my_datasource_master = new MyModelClass();

master_report = new Reports.MyMasterReport();
master_report.Datasource = my_datasource_master;

--------------------------

 

How can I add MyModelClass.List1 to subreport1, etc... ?

In subreport1 I have just datasource, is myObject1 (and every subreport has indipendent datasource)

My problem is to link  MyModelClass property List1 to my subreport1 datasource.

As you suggest in your post "https://www.telerik.com/forums/set-subreport-datasource-programmatically", in MyMasterReport I create binding has the follow image, but the subreport items are empty

And after the InitializeComponent() how can I do? Can I passing a List of Object as Parameters?
------------
Help me please,
Thank you

Denis
Top achievements
Rank 1
 answered on 10 Nov 2020
1 answer
317 views

Hello,

I have a problem to add the Telerik report to existing MVC 5 web app.  Now the error is ReportAccts:1 Uncaught (in promise) Invalid clientID. I did try different approaches like scaffolding type of app, the manual one, with API and just regular MVC5 controllers but without success.

Here is the link to 7z archive which will be active for 7 days: https://fil.email/gmmr1MNl

This is simple MVC5 web project but without packages because the size of them is too big. I not found a similar one in the demo. When you run it please use the link: http://localhost:58810/Report/ReportAccts

Could you please help?

Andrey
Top achievements
Rank 1
Veteran
 answered on 09 Nov 2020
1 answer
189 views

Hi all 

 

am getting this log error but not extra information but seems to be within telereik 

 

Message :Object reference not set to an instance of an object. Stack Trace :   at Telerik.Reporting.Writing.TextLineWriter.WriteContent(DocumentWriter writer, VisualElement element, ElementPageInfo pageInfo, IPageClip pageClip)     at Telerik.Reporting.Writing.ContentItemWriter.Write(DocumentWriter writer, VisualElement element, ElementPageInfo pageInfo)     at Telerik.Reporting.Processing.ProcessingElementVisitor.Visit(LayoutElement element)     at Telerik.Reporting.Writing.DocumentWriter.Telerik.Reporting.Writing.IWriter.WriteStartElement(VisualElement element, ElementPageInfo pageInfo)     at Telerik.Reporting.Paging.PageElementLayer.AddToPage(IPageHandler handler)     at Telerik.Reporting.Paging.PageElementManager.AddToPage(IPageHandler handler)     at Telerik.Reporting.Paging.PageCompositionBase.SendPhysicalPages()     at Telerik.Reporting.Paging.PageCompositionBase.OutputPage()     at Telerik.Reporting.Paging.PageCompositionBase.CreatePages()     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 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)     at Telerik.ReportViewer.WebForms.ReportExportOperation.RenderReport(String format, IList`1 processingReports, 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.BasicHandler.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0()     at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 06 Nov 2020
5 answers
528 views

Their is multiple textbox whose vertical spacing remove and set border to some textbox for show some space in between two  then below text is cutoff.

and  I do not want to remove that boarder or want some space in between two how can I solve it ? and If some textboxes are visible false the donot want that empty space on report. Please Help me to solved it.

 

 

Mads
Telerik team
 answered on 06 Nov 2020
2 answers
385 views

I am looking to execute a stored procedure after a report has finished rendering. 

Scenrio:

Using HTML5 Report Viewer and dynamically passing the report to open in the viewer. Not all reports will execute a stored proc after report completes rendering.

If familiar with Oracle Reports this would mimic the functionality of an After Report Trigger..

Is there anyway using .net core C# code to do this in a library ?

Michael
Top achievements
Rank 1
 answered on 06 Nov 2020
2 answers
1.1K+ views

Hi,

In my angular program, I am using kendo-angular-upload to allow user upload multiple PDF files or images then uploaded file details (file name, extension, size, content type, file content) are save into database. The file contents are saved in byte array format.

I need a "Print All Files" button to combine all uploaded documents (can be combination of PDF files / images) then user can download / print in one click. So I am thinking to generate all uploaded document in one Telerik Report and user can view / download / print from there.

Below are my questions:

> Is there any way I can generate report from byte array? If can, kindly provide example.

> Is there any way I can combine multiple records of byte array into 1 report? If can, kindly provide example.

Thank you.

Todor
Telerik team
 answered on 06 Nov 2020
5 answers
306 views

Stand Alone Q2 2016

We need to include a value from the first data set record in the page header of reports.  In other report writers (Crystal) you siply put the field into the header and the value in the first record shows up file.

In Telerik it looks like we need to use pageExec and reference a scope.  I am using the following expression in a text field in the header and it is showing up in the report fine.  The scope "ReportHeaderName" is the label of another text field located in the table that is in our detail section. 

[=pageExec("ReportHeaderName",first(Fields.ReportHeaderName))]

The problem I am having is that the field does not get exported to Excel. 

How do I resolve the problem?

Neli
Telerik team
 answered on 06 Nov 2020
10 answers
1.3K+ views

Hi All, 

Format type in excel for the date and number fields is showing as 'General' and 'Custom'.

How to convert the excel format to 'Short Date' and 'Number' format type from report side.

Please find the attached files.

Thanks

Vikram

Todor
Telerik team
 answered on 06 Nov 2020
1 answer
304 views

Hello everyone,

i have some questions concerning the filter option in tables.

I used the filter on rows (table groups in group explorer) -I cannot find this feature anymore. Using filter on the Detail group (in the group explorer) don´t seem to work -i cannot get any result if i´m using it there.

Also my example file which has / had row filters implemented does not work anymore?

Adding a external group seems to have an effect on new row groups - but also adds new lines in the table which i don´t need?

Is this feature gone?

How can i get to filter rows?

Regards Alex

Neli
Telerik team
 answered on 04 Nov 2020
3 answers
363 views
How do I create a report book in a .net core 3.1 application. I've got single reports working and I tried to create a custom resolver, but the documentation doesn't seem to fully apply to .net core. It really shouldn't be this hard. I've got several reports working, I just want to put them into a single document based on several conditions.
Eric R | Senior Technical Support Engineer
Telerik team
 answered on 03 Nov 2020
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?