Telerik Forums
Reporting Forum
1 answer
202 views

Hi, I'm too newer in Telerik Reporting, and I not have idea to when make a ReportViewer or Telerik.Reporting.Report, I have an example works fine, is a report with 2 parameter, and I can see it on screen or sent to printer, now I want to sent it to user mail, without interaction of user, how I can do this? I'm work in WPF with VS2013,  annexed my code:

 

in XAML:
<tr:ReportViewer Name="ReportViewer1" Width="800" Height="500" >
    <tr:ReportViewer.ReportSource>
        <telerikReporting:TypeReportSource TypeName="ReportLibrary, ReportLibrary" />
    </tr:ReportViewer.ReportSource>
</tr:ReportViewer>
in .cs:
var TRS = new TypeReportSource();
TRS.TypeName = typeof(pgoRelacionCobranza).AssemblyQualifiedName;
ReportViewer1.ReportSource = TRS;

FechaIni = dpFechaIni.SelectedDate.Value.Day.ToString() +"/" + dpFechaIni.SelectedDate.Value.Month.ToString() + "/" + dpFechaIni.SelectedDate.Value.Year.ToString();
FechaFin = dpFechaFin.SelectedDate.Value.Day.ToString() + "/" + dpFechaFin.SelectedDate.Value.Month.ToString() + "/" + dpFechaFin.SelectedDate.Value.Year.ToString();
               
var TRS = new TypeReportSource();
TRS.TypeName = typeof(pgoRelacionCobranza).AssemblyQualifiedName;
TRS.Parameters.Add(new Telerik.Reporting.Parameter("pFechaIni", FechaIni));
TRS.Parameters.Add(new Telerik.Reporting.Parameter("pFechaFin", FechaFin));
ReportViewer1.ReportSource = TRS;
if (rbPantalla.IsChecked == true)
{
    ReportViewer1.RefreshReport();
    stkReportView.Visibility = System.Windows.Visibility.Visible;
}
else
{
    System.Windows.Forms.PrintDialog printDlg = new System.Windows.Forms.PrintDialog();
    printDlg.AllowSomePages = true;
    printDlg.AllowCurrentPage = false;
    printDlg.UseEXDialog = true;
    DialogResult result = printDlg.ShowDialog();
    // If the result is OK then print the document.
    if (result == DialogResult.OK)
    {
        ReportProcessor reportProcessor = new ReportProcessor();
        reportProcessor.PrintReport(TRS, printDlg.PrinterSettings);
    }
}

Silviya
Telerik team
 answered on 14 Aug 2018
2 answers
221 views
Hi,

I have a simple report that runs from a stored procedure. The stored procedure returns 50 rows to the detail section via a table. My issue is that the report is generating 67 pages, when it should in fact be only two. I have checked the stored procedure and the output is 50 rows. The report seems to be repeating the same data over and over again. This issue occurs both in the designer and the report viewer. I am user the Q2 2010 version of Telerik reporting.

Appreciate any help,


Andy.
Willy
Top achievements
Rank 1
 answered on 13 Aug 2018
1 answer
822 views

I would like to add a custom button to the HTML 5 Report Viewer's toolbar.  Is there an example of how to accomplish this? 

So far I have managed to create a functional custom button by adding a link to the template with a new data-command attribute, and then adding a new command to the report viewer object (see below).  

This works, and my custom command's exec() function is called when the button is clicked and the enabled() method returns true.  However, the issue I'm having is that I do not know how to get the new button to appear in a disabled state.  I expected the button to appear disabled when the emailReport command's enabled() call returns false, but this is not the case.  Am I going about this the right way, or is there a better way to accomplish this? 

Thanks!

<a title="Email Report" href="#" data-command="telerik_ReportViewer_emailReport"><i class="fa fa-envelope"></i>

 
this.reportViewer.commands.emailReport =  {
        enabled: () => {
            // todo
            return false;
        },
        checked: () => {
            // todo
            return false;
        },
        exec: () => {
            // todo
        },
    };

 

Silviya
Telerik team
 answered on 13 Aug 2018
0 answers
113 views

Hi,

We are using Telerik reporting to generate "Code128" barcode. If we use actual size to generate the barcode, we are able to scan it. If we are trying to reduce the size of barcode using "Module" property, it is not scannable.

 

Veeru
Top achievements
Rank 1
 asked on 13 Aug 2018
1 answer
106 views

Hi,

Is it possible to change HTML 5 report viewer loading yellow box to custome message. and if Yes, Please can you provide an example of making it read for example.

Hope to hear from some soon.

Regards,

Silviya
Telerik team
 answered on 13 Aug 2018
6 answers
1.0K+ views

I am completely new to Telerik and am trying the Telerik Reporting module. I have read the documentation several times but am still confused as to how to proceed.

I am developing an Angular 5 web application using Visual Studio 2017 and I want to display a report. The web application was created using the Angular SPA Template (ASP.Net Core SPA Templates) and resides in its own Project. I have created a new ReportLibrary Project and following the wizard I defined my first report using the Visual Studio Report Designer. When I preview the report the data is displayed fine.

Within our web application we have developed our own Web API with controllers communicating via repositories to our SQL database and passing data, defined in DTOs, back to the Angular client.

It appears I have to add a new Reporting REST Service Project to my Solution, which I did using the wizard, however when I build the project I get many reference errors.

What I cannot figure out is what to do next to display a report in my Angular web application? I have added the imports to my Angular Reporting Module and created an Angular component to display the report using the code from your 'How To' guide. Within the Report Viewer selector I see I have to configure the report source to display, the example code points to a .trdp file, my report, in my Report Library, appears to be a .cs file.

Some guidance would be very appreciated please.

Silviya
Telerik team
 answered on 10 Aug 2018
1 answer
91 views

Hi All ,

we have two web servers, with f5 to manage the calls between these two web servers. so we call the web servers through f5 as round robin way. The telerick reporting generate an instance id for each session and under each session there are many clients, and the instance ID generated for the first call in the session. so If the instance ID created in the web server 1. so if the requests directed to web server 2 it returns an error the instance id is expired but if the requests directed to web server 1 it works.  so we need to make the instance ID is shared between the two web servers.

I change the Telerik instance timeout configuration to be an hour instead of 15 minutes. also I make the cashing is File and make an shared folder for both servers. but still we have the same issue.

 

Can Any one help  me to fix issue

Silviya
Telerik team
 answered on 10 Aug 2018
2 answers
278 views
I have tables which are all based on the same datasource and are filtered based on the record details section the table is in. How can I hide these tables if they are empty? The empty styles appear to work based on the whole data source and not the whether the actual table is empty. I potentially do not have any knowledge of the filter applied to the table by the report designer, so I can't recreate any filters programatically to check that way. Is there any functionality to simply check the number of rows in a table after the report has applied its filters?
Karl
Top achievements
Rank 1
 answered on 10 Aug 2018
5 answers
303 views
Hi,

I've created a new Sample Solution for Bulk Sending Invoice PDFs as E-Mail Attachment with C# Command Line Application.
Check out the Link:

http://webapps-in-action.com/post/Creating-Invoices-as-PDF-E-Mail-Attachment-with-Telerik-Reporting-2013Q2-using-only-66-lines-of-code

Cheers, Otto.
JOSE
Top achievements
Rank 1
 answered on 09 Aug 2018
1 answer
185 views

We have created a template with tables in the group label section. Now when the value of these tables is extended to multiple pages we are missing the columns in the rendered pdf. Please have a look at the attached pdf output for further info. Can you please suggest us a way to fix it and let us know why is it happening.

 

Silviya
Telerik team
 answered on 09 Aug 2018
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?