Telerik Forums
Community Forums Forum
0 answers
38 views
Como puedo exportar un informe que realicé en telerik a excel, estoy ocupando la extensión xls, sin embargo me lo entrega pero con el formato del informe, y yo pretendo pasarlo sin formato solo que respete las filas y las columnas.

private string creaReporteHomecito(ReporteHome listModel)
        {
            //CREAMOS EL REPORTE
            ReportHome home = new ReportHome();
            home.table1.DataSource = listModel.Ppi;
            home.table2.DataSource = listModel.IsrRS;
            home.table3.DataSource = listModel.IsrRA;
            home.table4.DataSource = listModel.IsrRSO;
            home.table5.DataSource = listModel.IsrRH;
            home.table6.DataSource = listModel.IsrRAR;
            home.table7.DataSource = listModel.PdI;
            home.table8.DataSource = listModel.IrE;
            home.table9.DataSource = listModel.IrR;
            home.table10.DataSource = listModel.IepsE;
            home.table11.DataSource = listModel.IepsR;


            //EXPORTAMOS EL EXCEL ReportProcessor reportProcessor
            = new ReportProcessor();
            Telerik.Reporting.InstanceReportSource instanciaReportSource = new Telerik.Reporting.InstanceReportSource();
            instanciaReportSource.ReportDocument = inicio;
            RenderingResult renderingResult = reportProcessor.RenderReport("CSV", instanceReportSource, null);
            


            //EXPORTAMOS EL EXCEL A MEMORYSTREAM
            MemoryStream ms = nuevo MemoryStream();
            ms.Write(renderingResult.DocumentBytes, 0, renderingResult.DocumentBytes.Length);
            ms.Flush();
            System.Web.Mvc.FileContentResult resultado = nuevo System.Web.Mvc.FileContentResult(ms.GetBuffer(), renderingResult.MimeType);
            result.FileDownloadName = "ReporteGeneral.CSV";

            byte[] excelBytes = ReadToEnd(ms);
            cadena excelBase = Convert.ToBase64String(excelBytes);

            volver excelBase;
        }
Daniel
Top achievements
Rank 1
 updated question on 24 Jan 2022
3 answers
61 views
Hello everyone,
I need any suggestions, which automation testing tool for desktop applications should I use? I'm working on a project with a desktop application designed in C#.
Athira
Top achievements
Rank 1
 answered on 20 Jan 2022
1 answer
16 views
Hi one question please, I have an issue related to ComboboxComponent using keyboard "Enter".
Here I use valueChange on my autocomplete to do some stuff (call api etc.) after the value is being changed. My case is following:
1. I search an address in my autocomplete and that address has to suggest 3 other sub address, it works so
2. I go down with the "Arrow bottom" and select the address with key "Enter" and its ok the value is changed 
3. Then I select the second sub suggested address with the key "Arrow bottom" and hit "Enter" in this case I see in my autocomplete that the value i changed and it selected the address, but the valueChange doesn't trigger and I am not able to call an api.
4. So the value changes it means valueChange triggers when I click the outside, namely when I the "blur" happens.
Could you fix it or tell me how to fix this issue? Thanks.
Svetoslav Dimitrov
Telerik team
 answered on 18 Jan 2022
1 answer
10 views

Hi,

I am using a Kendo React Window in the following way:


import React, {useContext, useEffect, useState} from 'react'
import { Window } from '@progress/kendo-react-dialogs';

const IncidentSummary = (props) => {

      const TitleComponent = (props) => {
        return <div style={{
          fontSize: "large",
          fontWeight: "bold",
          marginLeft: "2vw",
        }}>
          {props.title}
            </div>;
      };

    const close = () =>{
      return <div></div>
    }

    return (
        <div>
                    <Window className='is-window' title={<TitleComponent title={"Summary"}/>} initialLeft={70} initialHeight={"28vh"} initialWidth={"90vw"} initialTop={430} style={{boxShadow:'3px 3px 11px 0 #b6b7b9', border:"2px double black", backgroundColor:"rgb(252,252,252)"}}  closeButton={close} draggable={false}>
                      <span>Content</span>
                    </Window>
        </div>
    )
}

export default IncidentSummary

 

With following styling:


.is-window .k-window-titlebar {
    background: black;
    border: 1.5px solid black;
    color: white;
    width:auto;
    padding-bottom: 0.2% !important;
    padding-top: 0.2% !important;
    height: 3.5vh !important;
  }

 

I observe that following things are working fine in my local, but are causing problems after build and deployment:

1. The Scrollbar doesn't appear even when the content inside the window has more height than the window max-height after build and deployment

2. The Title Summary is not coming up to be vertically center aligned even though it is aligned properly in local.

 

What could be the reason for these issues and how could I resolve them?

 
Stefan
Telerik team
 answered on 18 Jan 2022
1 answer
38 views
I don't remember signing up on this website so I'd like to delete my account, please help me
Karina
Telerik team
 answered on 17 Jan 2022
1 answer
27 views
Is there a way to print a radgrid across multiple sheets when it has horizontal scrolling, i.e. has more columns than can be rendered on the screen at one time or on a single page when rendered to print even in landscape mode? 
Attila Antal
Telerik team
 answered on 13 Jan 2022
0 answers
24 views

Hello

 

We tried to purchase a product and our credit card was charged twice but we never received the products. Accounts email seems to be ignoring us. Who can we contact?

Craig
Top achievements
Rank 1
 asked on 06 Jan 2022
1 answer
28 views

Hi,

I want to change the color of what I marked here,

I would be happy for help on how to do this.

Thanks.

 

 

Stenly
Telerik team
 answered on 30 Dec 2021
0 answers
22 views

Hello Team,

I am using Telerik RadScheduler for displaying office 365 appointments and managing like add new appointments/update/delete/recurring events, but I am facing issues like when I bind results (getting from graph API) but event displaying and when I try to edit event series then showing error like scheduler is null. and when I tried to delete any instance of the recurring event then showed error like -

Cannot parse parentAppointment recurrence rule during delete operation. Appointment ID is AAMkAGNlZjMyYTkwLTg1ODMtNDdiOC04ZWU2LWEwODI3NGY5NWZhNQFRAAgI2cpeKDYAAEYAAAAA8ebGSehtsk6DrBFw5D1DqwcAA61wHQ7JOEmG--l8ZI1bjQAAAAABDQAAA61wHQ7JOEmG--l8ZI1bjQAAdckkQgAAEA==, parentAppointment ID is AAMkAGNlZjMyYTkwLTg1ODMtNDdiOC04ZWU2LWEwODI3NGY5NWZhNQBGAAAAAADx5sZJ6G2yToOsEXDkPUOrBwADrXAdDsk4SYb-_XxkjVuNAAAAAAENAAADrXAdDsk4SYb-_XxkjVuNAAB1ySRCAAA=. 

 

Please help me to solve that issue.

anand
Top achievements
Rank 1
 asked on 28 Dec 2021
1 answer
23 views

Hi,

I would love if you could help me, how do I change the background of the Appointment Dialog and also the border of the dialog?

I tried to change in all sorts of places in the code without success.

Thanks
Stenly
Telerik team
 answered on 24 Dec 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Benjamin
Top achievements
Rank 2
Iron
Christopher
Top achievements
Rank 1
Iron
Bernd
Top achievements
Rank 4
Bronze
Iron
Iron
Timothy J
Top achievements
Rank 1
Iron
Iron
Iron
Marian
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Benjamin
Top achievements
Rank 2
Iron
Christopher
Top achievements
Rank 1
Iron
Bernd
Top achievements
Rank 4
Bronze
Iron
Iron
Timothy J
Top achievements
Rank 1
Iron
Iron
Iron
Marian
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?