Hello Team,
I got recently issue in printing the template using telerik-angular-report-viewer in Angular 8. It used to work untill day before yesterday suddenly it stopped working. Did any modules got changed to print the template?
I'm using below code for print button:
"<tr-viewer #viewer1
[containerStyle]="viewerContainerStyle"
[serviceUrl]="ReportUrl"
[templateUrl]="'node_modules/@progress/telerik-angular-report-viewer/dist/dependencies/telerikReportViewerTemplate-sass.html'"
[reportSource]="Viewdata"
[scaleMode]="'SPECIFIC'"
[scale] = "1.0"
[renderingEnd]="boundReportRendered"
[error]="ReportError"
[viewMode]="'PRINT_PREVIEW'">
</tr-viewer>
<button id='btnprint' style="display:none;" name='btnprint' (click)="viewer1.commands.print.exec()">Print</button>"
Can you please get back on the issue im facing!?
Thanks in Advance.
Thanks,
Srija P.
I am working .net core rest api backend and angular front end.
I am trying to make a ReportBook adding reports to programmatically.
Front End TypeScript
reportReady() {
const reportSource =
this
.viewer.getReportSource();
reportSource.report = 1 +
'_'
+
this
.id;
const params = reportSource.parameters;
params.summaryId =
this
.id;
params.baseurl = Config.getServerUrl();
params.OriginalOrDuplicateParam =
''
;
reportSource.parameters = params;
this
.viewer.setReportSource(reportSource);
}
Backend i have reports controller with Custom Report Resolver
private
InstanceReportSource InvoiceSummaryReportBook(
string
reportId)
{
try
{
InstanceReportSource result =
new
InstanceReportSource();
using
(var db =
new
FilteredHahnDbContext())
{
var summaryId = reportId.Split(
"_"
).LastOrDefault();
var summaryIdGuid = Guid.Parse(summaryId);
var summaryDetails = db.InvoiceSummaryDetails.Include(x => x.Invoice)
.Where(x => x.InvoiceSummaryMasterId == summaryIdGuid).ToList();
// Creating a new report book
var reportBook =
new
ReportBook();
var typeReportSource =
new
Telerik.Reporting.TypeReportSource();
typeReportSource.TypeName =
typeof
(ReportBook).AssemblyQualifiedName;
//Add first report
var glossaryReportSource =
new
UriReportSource();
glossaryReportSource.Uri =
this
.MapPath(
"InvoiceSummaryReport.trdp"
);
reportBook.ReportSources.Add(glossaryReportSource);
var params1 =
new
ParameterCollection();
var index = 0;
foreach
(var summaryDetail
in
summaryDetails)
{
if
(summaryDetail.Invoice.InvoiceTypeId == EInvoiceType.Individual)
{
var glossaryReportSource2 =
new
UriReportSource();
glossaryReportSource2.Parameters.Add(
"invoiceId"
, summaryDetail.InvoiceId.ToString());
result.Parameters.Add($
"reports({index}).invoiceId"
, summaryDetail.InvoiceId.ToString());
typeReportSource.Parameters.Add($
"reports({index}).invoiceId"
, summaryDetail.InvoiceId.ToString());
glossaryReportSource2.Uri =
this
.MapPath(
"IndividualInvoice.trdp"
);
reportBook.ReportSources.Add(glossaryReportSource2);
}
else
{
var glossaryReportSource2 =
new
UriReportSource();
glossaryReportSource2.Parameters.Add(
"invoiceId"
, summaryDetail.InvoiceId.ToString());
result.Parameters.Add($
"reports({index}).invoiceId"
, summaryDetail.InvoiceId.ToString());
typeReportSource.Parameters.Add($
"reports({index}).invoiceId"
, summaryDetail.InvoiceId.ToString());
glossaryReportSource2.Uri =
this
.MapPath(
"OrderInvoice.trdp"
);
reportBook.ReportSources.Add(glossaryReportSource2);
}
index++;
}
reportBook.TocReportSource = typeReportSource;
//Return the new instance
result.ReportDocument = reportBook;
return
result;
}
}
catch
(Exception ex)
{
throw
;
}
}
Above Method used in
public
ReportSource Resolve(
string
reportId)
{
InstanceReportSource result =
null
;
var rprtId = reportId.Split(
"_"
).FirstOrDefault();
switch
(rprtId)
{
// 1 Invoice Summary ReportBook
case
"1"
:
result = InvoiceSummaryReportBook(reportId);
break
;
}
return
result;
}
For each report "invoiceId" is different. As you can see in code i am trying three different methods to pass parameters but none are taking effect.
Is there any option to change Reporting Designer theme to dark?
I can't work on default white theme...
Telerik,
The Standalone Report Designer has a very dated UI. WPF provides so many more capabilities and when you use the Telerik WPF controls, so many possibilities exist.
Issues.
1. Please put the tool windows in a Docking system, like Teleriks. Forcing the property window to be pinned to the right side is a UI/UX issue. Studies have shown that placing it on the left, makes it easy to use since the object your assign property value is very close and the distance the mouse must be moved it greatly shortened.
2. Make the tool window fonts re-sizable. In the modern age of 4K computer monitors, the very date UI and small fonts make the designer difficult to use.
3. Enable the designer to create assemblies instead of just loose report files. The assembly files can be loose and then compiled as a separate tasks, i.e. shell out and run the appropriate "dotnet" build command to build the assembly. This would enable .NET Core developers form loosing out on many features of the reporting product by being forced to use the standalone designer. For example, Report events.
Thank you,
Karl
Hi,
I am trying to export programmatically to docx and xlsx using Report Processor but get the error rendering format is not available error message.
https://www.telerik.com/support/kb/reporting/export-reports/details/missing-docx-xlsx-pptx-xps-export-options
Referred the article above but still got the error
I am using Telerik.Reporting 12.1.18.620 ,Telerik.Reporting.OpenXmlRendering 12.1.18.620 and Document.OpenXML 2.0.5022.0
Please provide me a sample project with the reference dlls rendering in word and xlsx.
Thanks
Hi,
I'm using the label wizard and it works great.
Some uses are asking if the labels can be printed left to right and then down, as opposed to the current flow of top to bottom the to the next column to the right.
Thank you for your time,
Karl
Hi,
Here is the scenario for my report: I'm printing list of products. Every product can have image and I want to show product with images.
I need to show pictures on my report from odata data source.I have binary data(type of base64) of those pictures. PictureBox doesn't show image from binary data. So, that's why I extend and configured Report Designer by making user function to convert binary data to Image object. For this purpose this thread did help me: https://www.telerik.com/forums/html-binary-image-in-html-textbox
Now, the report is showing picture when I run it from Telerik Report Designer tool. But, when I use&run it from my project, it's not showing the image. It shows just blank. My project contains Telerik Reporting Rest service endpoint to generate report in server side, and HTML5ReportViewer control to show report in client side.
Ho do I configure my project to be able show image?
See attached files for what I have done.
<%@ Page Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="eTicketsPerEventId.aspx.cs" Inherits="BoxOffice_EventManagment_PrintAttendeeTickets_eTicketsPerEventId" %>
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=4.1.10.921, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"head"
Runat
=
"Server"
>
</
asp:Content
>
<
asp:Content
ID
=
"Content2"
ContentPlaceHolderID
=
"ContentplaceholderRight"
Runat
=
"Server"
>
</
asp:Content
>
<
asp:Content
ID
=
"Content3"
ContentPlaceHolderID
=
"conMain"
Runat
=
"Server"
>
<
telerik:ReportViewer
runat
=
"server"
ID
=
"report1"
Width
=
"100%"
Height
=
"700px"
BorderStyle
=
"None"
Report
=
"ReportTestClassLibrary1.ViewEticketsByEventId, SimpleTickReporting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
>
</
telerik:ReportViewer
>
</
asp:Content
>
<
compilation
debug
=
"true"
batch
=
"false"
>
<
assemblies
>
<
add
assembly
=
"System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
assembly
=
"System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
assembly
=
"Telerik.Reporting, Version=4.1.10.921, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"
/>
<
add
assembly
=
"Telerik.ReportViewer.WebForms, Version=4.1.10.921, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"
/>
</
assemblies
>
</
compilation
>
<
controls
>
<
add
tagPrefix
=
"uc1"
tagName
=
"NewsArticles"
src
=
"~/MasterPages/Controls/NewsArticles.ascx"
/>
<
add
tagPrefix
=
"uc1"
tagName
=
"CurrentEvents"
src
=
"~/MasterPages/Controls/CurrentEvents.ascx"
/>
<
add
tagPrefix
=
"telerik"
namespace
=
"Telerik.Web.UI"
assembly
=
"Telerik.Web.UI"
/>
<
add
tagPrefix
=
"asp"
namespace
=
"System.Web.UI"
assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
tagPrefix
=
"asp"
namespace
=
"System.Web.UI.WebControls"
assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
tagPrefix
=
"cc2"
namespace
=
"AjaxControlToolkit"
assembly
=
"AjaxControlToolkit"
/>
<
add
tagPrefix
=
"cc1"
namespace
=
"TS.Common.WebUI.Controls"
assembly
=
"CommonClassLib"
/>
<
add
tagPrefix
=
"ST"
namespace
=
"SimpleTick.WebControls"
/>
<
add
tagPrefix
=
"telerik"
namespace
=
"Telerik.ReportViewer.WebForms"
assembly
=
"Telerik.ReportViewer.WebForms, Version=4.1.10.921, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
/>
</
controls
>
<
httpHandlers
>
<
remove
verb
=
"*"
path
=
"*.asmx"
/>
<
add
verb
=
"*"
path
=
"*.asmx"
validate
=
"false"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
verb
=
"*"
path
=
"*_AppService.axd"
validate
=
"false"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
verb
=
"GET,HEAD"
path
=
"ScriptResource.axd"
type
=
"System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
validate
=
"false"
/>
<
add
path
=
"Telerik.RadUploadProgressHandler.ashx"
type
=
"Telerik.Web.UI.RadUploadProgressHandler"
verb
=
"*"
validate
=
"false"
/>
<
add
path
=
"Telerik.Web.UI.DialogHandler.aspx"
type
=
"Telerik.Web.UI.DialogHandler"
verb
=
"*"
validate
=
"false"
/>
<
add
path
=
"Telerik.Web.UI.SpellCheckHandler.axd"
type
=
"Telerik.Web.UI.SpellCheckHandler"
verb
=
"*"
validate
=
"false"
/>
<
add
path
=
"ChartImage.axd"
type
=
"Telerik.Web.UI.ChartHttpHandler"
verb
=
"*"
validate
=
"false"
/>
<
add
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
verb
=
"*"
validate
=
"false"
/>
<
add
path
=
"Telerik.ReportViewer.axd"
type
=
"Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.1.10.921, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
verb
=
"*"
validate
=
"true"
/>
</
httpHandlers
>
I would like to add a gap in the graph based on my first series.
My data are in DateTime Scale so if my first series x0 value is e.g. 30.11.2019 next label steps are 30.12.2019, 30.01.2020 etc.
I want to set the x0 value to 01.11.2019 when my first series x0 value is 30.11.2019, 01.12.2019 when my first series of data is 11.12.2019 etc.
I notice there are 'maximum' and 'minimum' fields in label's properties but I can only enter there static date like 01.01.2010...
I would like to add there an expression: ' = "01/"+First(Fields.StartDate.Month)+"/"+First(Fields.StartDate.Year) ' but in response I show warning "Propery value is not valid".
Is there any way to solve my problem?