Telerik Forums
Reporting Forum
8 answers
311 views
Hello, I'd like to know what property should I used to set the color for every series in a Pie report. Thanks
Nasko
Telerik team
 answered on 13 May 2015
3 answers
129 views

Hi

i have an kendo ui grid and i need to pass selected rows in my grid to report to let me print them from report 

i try to find any thing like that in demo but i faild

so please hope to give me sample code or sample example to let know how can i do that

 thanks a lot ....

 

        @(Html.Kendo()
              .Grid<kind>()
              .Name("kinds_")
              .Columns(columns =>
              {
                  columns.Template(@<text></text>).ClientTemplate("<input type='checkbox' #= kind_id ? checked='':'checked' # class='chkbx' />");
                  columns.Bound(e => e.kind_name).Width(300).Title("اسم المجموعه الرئيسيه");
 
                  columns.Command(command =>
                  {
                      command.Edit()
                             .Text("تعديل")
                             .UpdateText("حفظ")
                             .CancelText("الغاء");
                      command.Destroy().Text("حذف");
                  });
              })
              .Filterable(filterable => filterable.Operators(operators => operators.ForString(str => str.Clear().StartsWith("يبدء بـ").IsEqualTo("يساوى").IsNotEqualTo("لا يساوى").Contains("يحتوي علي").DoesNotContain("لا يحتوي علي"))).Operators(operators => operators
                                                                                                                                                                                                                                                                          .ForNumber(str => str.Clear().IsEqualTo("يساوى").IsNotEqualTo("لا يساوى").IsGreaterThanOrEqualTo("أكبر من أو يساوى").IsGreaterThan("أكبر من").IsLessThanOrEqualTo("أقل من أو يساوى").IsLessThan("أقل من"))).Messages(m => m.And("و")
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     .Or("أو")
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     .Filter("بحث")
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     .Clear("إلغاء")
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     .Info("حدد فلتر البحث الذى تريده")))
              .ToolBar(tools => tools.Create().Text("اضافه مجموعه رئيسيه جديده"))
 
        @* السطر ده عشان تخلى التعديل عن طريق PopUp *@
              .Editable(editable => editable.Mode(Kendo.Mvc.UI.GridEditMode.PopUp).TemplateName("AddEditkind"))
         
              .Pageable()
              .Sortable()
              .Filterable()
              .DataSource(source => source.Ajax()
                                          .Model(model =>
                                          {
                                              model.Id(e => e.kind_id);
                                          })
                     
                                          .Events(events => events.Error("error_handler"))
                                          .Read(read => read.Action("Read_kind", "kinds"))
                                          .Update(update => update.Action("Update_kind", "kinds"))
                                          .Create(create => create.Action("Create_kind", "kinds"))
                                          .Destroy(destroy => destroy.Action("Destroy_kind", "kinds")))
         
              .ClientDetailTemplateId("CategoriesTemplate")
        )
 
@section scripts
{
    <script type="text/javascript">
 
        $(function () {
            $('#kinds_').on('click', '.chkbx', function () {
                var checked = $(this).is(':checked');
                var grid = $('#kinds_').data().kendoGrid;
                var dataItem = grid.dataItem($(this).closest('tr'));
                dataItem.set('kind_id', checked);
            })
        })
 
        function error_handler(e) {
            productsTemplate
            if (e.errors) {
                var message = "Errors:\n";
                $.each(e.errors, function (key, value) {
                    if ('errors' in value) {
                        $.each(value.errors, function () {
                            message += this + "\n";
                        });
                    }
                });
                alert(message);
            }
        }
    </script>
}
 

 

Stef
Telerik team
 answered on 13 May 2015
1 answer
372 views

I am using MVC Demo for Telerik Reporting. I have few questions which I really want to know before start working with Telerik Reporting.

 1.) I am binding Report Data source dynamically from code behind(on Report's Code page). Initially Report is Loading fine. What I want, when user enter value into report parameter and click on preview button.... Is that possible to handle those parameters and update object data source and update reporting from code side? Actually I don't want get whole data at time.Right now I don't find any event that give me report parameters value on Preview Button click.

 

 2.) Initially if I don't come on Report Page with whole data, Is that possible to update data-source programaticaly later. Like on Preview Button click, or any other button click out side Report  Viewer. Because I want to add one functionality  where I would have one button on Page and on click of that button I would read report Parameters and save into DB. But right now I am not able to read Report Parameters server side once Report Loaded.

 

3.) I have added One Report parameter and trying to just display it on Designer nothing else but It is just render with initial value.Later if I change parameter to any value it doesn't reflect. Is there any problem in setting report viewer. I have checked Telerik Example and Report Parameter value get update there. So that I am sure I m missing some thing but not able to found it. 

 

 

 

 

Nasko
Telerik team
 answered on 13 May 2015
17 answers
1.0K+ views
Hi,

I would like to purchase telerik controls for my company but I will buy this product if you can provide me solution of below these problems because we are happy to buy this product.

Problem 1:  I am using report Viewer for printing but every time when I click a button it shows a print dialog box which is very annoying sometimes. Is there anyway that I can set a default printer for that print button one time only.

Problem 2:  I want to tell you that I have tried this method for directly send the job to the printer but it works fine in my development machine and the job goes directly to the printer but when I deployed the same code in the server the page never comes back.

        Dim printerSettings As New System.Drawing.Printing.PrinterSettings

        Dim standardPrintController As New System.Drawing.Printing.StandardPrintController        
        Dim reportProcessor As New Telerik.Reporting.Processing.ReportProcessor
        reportProcessor.PrintController = standardPrintController
        reportProcessor.PrintReport(o, PrinterSettings)






Stef
Telerik team
 answered on 12 May 2015
4 answers
367 views

Hi 

 

I am currently using the Reporting tool 2011 Q3

 

I know it is an outdated version of the tool.

 Just would like to know if anyone could assist me.

 I have the standard options that comes with the report viewer to export the data.

 When the users export the data in excel or pdf the file seems to export as i have created the report.

The issue i am having is when i export the data in a csv format 
i have two sub reports in my main report and a page break which separates the two sub reports.

The first sub reports data gets exported but the second one doesn't any idea how i could resolve this or remove the option of exporting to Csv.

 

i have tried 

<Telerik.Reporting>
    <Extensions>
      <Render>
        <Extension name="CSV" visible="false">
        </Extension>
      </Render>
    </Extensions>
  </Telerik.Reporting>

 

but it does not work.

 

Regards

 

Ismail
Top achievements
Rank 1
 answered on 12 May 2015
2 answers
122 views

Hello, i would like to get action (in mine case it is NavigateToReport) object on textbox databound event.

 As i see in VS watch there is parameter which gives action object. But its visible only in runtime.

 public void textboxdatabound(object sender, EventArgs e)
{
    var tbox = (Telerik.Reporting.Processing.TextBox)sender;
    var action = ((Telerik.Reporting.Processing.ReportItemBase)(tbox)).Action;  <--- Gives unknown member error.
}

Stef
Telerik team
 answered on 12 May 2015
0 answers
119 views

Hi all,

here is the attachment of telerik report sample which i created,

I need to show the different currency symbols in single report , one amount with Home currency means region Currency , and other amounts in Converted amounts

with Dollar or other etc... so at home currency i need to show regional currency symbol and other converted amounts should be with other symbols. how can i achieve those different symbols in a report

 

Thanks

Prashanth

 

Prashu
Top achievements
Rank 1
 asked on 12 May 2015
6 answers
79 views

 I created a method to print a bunch of invoices. Each one printed individually by another method (and resolver) has a correct output. However, when I use the report book method, the PageFooter sections does not appear at all.

 I pasted the resolver method because the design is correct and I don't see any other relevent part for this question. Please let me know for further information.

01.private ReportSource ResolveInvoices(string ids)
02.{
03.    var book = new ReportBook();
04.    ids.Replace("[Invoices]", "").Replace("\"", ""
05.          .Split(',').ForEach(item =>
06.    {
07.        int id;
08.        if (!int.TryParse(item, out id)) { return; }
09. 
10.        var report = Activator.CreateInstance(typeof(ReportDefinitions.Invoice)) as Report;
11.        Debug.Assert(report != null);
12.             
13.        report.ReportParameters["InvoiceId"].Mergeable = false;
14.        report.ReportParameters["InvoiceId"].Value = "=" + id;
15.        book.Reports.Add(report);
16.    });
17.     return new InstanceReportSource
18.    {
19.        ReportDocument = book
20.    };
21.}

 

Laurent
Top achievements
Rank 1
 answered on 12 May 2015
8 answers
785 views
Hi!

I'm a developer using C# and ASP.net. Let me first of all say that I know that HtmlTextBox does not currently support the <img> tag. 
However, as I (and many others) have discovered, images are more or less essential when you want to generate good looking reports.

What I want to do is use RadEditor to create html pages in the admin part of the application, complete with formatting and images. This is fairly straghtforward and already done. In the viewing part of the application, a user can browse different pages and print/export to pdf.
At this stage I need to use Telerik Reporting to combine the html content with data and render the page/s as pdf exactly as it appears in the browser, plus some header and footer stuff.

My question is twofold:
1. Is there ANY way to accomplish this?
2. Do you really consider images to fall outside the scope of report generation when it comes to html content? If not, can you PLEASE implement image (and possibly table) handling in pdf?

Kind regards,
Stefan
raju
Top achievements
Rank 1
 answered on 11 May 2015
5 answers
393 views

Hi I am using the report viewer for the web and have noticed that the reports, when viewed on the web (using the viewer control) are not rendering the full report in portrait. It appears to be trimming off the bottom third of the report and bleeding it over to the next pages.

So… on the viewer the page looks like it is shorter than it is, but when I print or export it, the report prints as I would expect. Also on the viewer it shows 5 pages but when printed it prints 2 (this is due to the viewer trimming the bottom of the reports off)

If this a bug or just something I have not enabled

See screen shot for example.

Thanks
Derb

Stef
Telerik team
 answered on 11 May 2015
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?