Telerik Forums
Reporting Forum
1 answer
159 views
Hello,

  Is it possible to create and execute custom VBA macros during export into Excel or Word using ReportProcessor?
  It is necessary to improve document style and formating.

Thanks,
-Andrey Popov
Steve
Telerik team
 answered on 28 Sep 2011
4 answers
110 views

Hi

I'm going through the documentation and cannot find the assembly in 1.2 below.
Where can I find this assembly???

To create a PDF and open it directly within a webform, use the ReportProcessor object to create a stream of bytes and write those bytes to the ASP.NET Response object. 

  1. In your web application, verify you have the following assemblies referenced and add them if you do not:
    1. Telerik.Reporting
    2. Telerik.Reporting.ImageRendering
    3. Telerik.Reporting.Processing
  2. Add the ExportToPDF() method (see code example below) to your application.
  3. Call the ExportToPDF() method.  For example you might call this within a button click event handler for a "Run" button:  
Steve
Telerik team
 answered on 28 Sep 2011
4 answers
282 views
Hello,

I am using the Silverlight report viewer to display reports via the Telerik WCF service.

The viewer is secured behind a layer of authentication, but I am concerned about the security of the WCF service endpoint, because our developer has made reports with user credentials hardcoded in the connection string, so if you stumbled across the endpoint, you would still be able to access the reports.

What I'd ideally want to do is make sure that all users of the WCF service are authorised.
I can't find any documentation about this anywhere.

Is there a solution?
Are there any approaches that I should be considering?

Thanks,
 Ed
Jaime Bula
Top achievements
Rank 2
 answered on 28 Sep 2011
3 answers
86 views
Hi,

I have been having a problem displaying a simple report in a winforms app with the report viewer. I followed the tutorial videos, but do not know what is going wrong.

Below is what I get when I select the Report Property of the Report Viewer. In the video, the reports would show up in this list. The name of the report I want to appear in this list is TestReport.cs





Below is how my solution is setup:



And since I could not select my report via the property menu, I tried to do it in code like this, which also failed:



And finally, here is the error I am getting when running the app and click refresh.




My main question is, how do I set the report via the report property of the report viewer?

My second question is, how do I set which report to show via code?

Thanks in advance
ajpetersen
Top achievements
Rank 1
 answered on 27 Sep 2011
4 answers
86 views
Hello Telerik,
I'm using 5.1.11.713, and I'm developing a new report, when I print or export it I don't see a subreport (and a field filled with .Value property)
If I set UseNativePrinting to true it prints it....
the only strange thing I'm doing is so :

if (tipoLegame != -1)
         {
             switch (tipoLegame)
             {
                 case 0:
                     subReportAnagrafica.ReportSource = new SubPersonaFisica();
                     break;
                 case 1:
                     subReportAnagrafica.ReportSource = new SubPersonaGiurica();
                     break;
                 case 2:
                     subReportAnagrafica.ReportSource = new SubSCO();
                     break;
             }
 
             subReportAnagrafica.ReportSource.DataSource = dettagli;
             SetField(dettagli.Field);
 
             var risultatoDomande = reportFactory.GetListaDomandeRisposteUtente(IDUtente, IDQuestionario);
             this.table1.DataSource = risultatoDomande;

Any suggestion? I'm calling it from silverlight

...
 
  public ReportGen(int idQuestionario,int idCliente)
        {
            InitializeComponent();
 
            this.IDQuestionario = idQuestionario;
            this.IDCliente = idCliente;
 
            reportViewer.ReportServiceClientFactory = this;
            reportViewer.Report = myreport;
 
            if (CanUserExportToExcel())
            {
 
                btnEsporta.Visibility = System.Windows.Visibility.Visible;
            }
            else
            {
                btnEsporta.Visibility = System.Windows.Visibility.Collapsed;
            }
 
            this.reportViewer.RenderBegin += new RenderBeginEventHandler(reportViewer_RenderBegin);
            this.Closed += new EventHandler<WindowClosedEventArgs>(DettaglioReportCliente_Closed);
        }
 
    private void reportViewer_RenderBegin(object sender, RenderBeginEventArgs args)
        {
            args.ParameterValues[STR_PARAM_QUESTIONARIO] = IDQuestionario;
            args.ParameterValues[STR_PARAM_IDUSER] = App.UtenteLoggato.IDInterno;
            args.ParameterValues[STR_PARAM_IDCLIENTE] = IDCliente;
        }
Steve
Telerik team
 answered on 27 Sep 2011
1 answer
374 views
Good .. I am new to telerik reporting, I am studying the Free version, because  I'm search of a reporting application to implement in my project.

1 - Suppose, that I have records of patients in a sanatorium, and I have to print each on a separate medical history ... I can be done with telerik reporting.

2 - I would place a subreport in report at the bottom of the page, to appear at the end of each sheet. in the footnotes.

3 - If possible create events, that run in each cycle of a new line generation of reports. where specific activities.

4 - You can change position and change the size, using a base value of database, example:
  if (data.name == true)
        textbox.location = (data.X, data.Y);
        textBox.Size = (data.W, data.H);


excuse my bad English, so my ideas in Spanish writing to explain better.

------ Spanish.

1 - Supongamos, que tengo Historias Clinicas de Pacientes en un Sanatorio, y tengo que imprimir cada historia clinica en hoja separada... se puede realizar con telerik reporting.

2 - Se puede colocar en un reporte un subreporte en la parte inferior de la pagina, con el fin de que aparezca al final de todas las hojas. en el pies de pagina.

3 - Si es posible, crear eventos que se ejecutan en cada ciclo del reporte en la generación de una nueva línea de informes (detail) y realice actividades específicas.

4 - Se puede cambiar de posición y cambiar el tamaño te un TextBox, tomando de referencia un valor la base de datos, por ejemplo:
 if (data.name == true)  
       textbox.location= (data.X, data.Y);
       textBox.Size=(data.W, data.H);
 
5 - Telerik report me permite asociar en un solo PDF, varios reportes. me explico
Se solicita los reporte del un dortor, el doctor tienes asociados un conjunto de pacientes, ellos un conjuntos de reportes según el caso. la idea es que se quiere generar un reporte que contenga todos los reportes que se llame desde el doctor.
(Me enredo explicando esta idea en ingles.)

Steve
Telerik team
 answered on 27 Sep 2011
1 answer
107 views
hello, i'm a newbie for telerik..
i get the task which i need to get the field from dataset to put in my telerik report but i dont know how to do that. i tried to bind the dataset but still didnt work. can somebody help me? thanks..
Steve
Telerik team
 answered on 27 Sep 2011
3 answers
216 views
I have a series of reports that depend on a variety of differing SQL queries. They vary by joins and several other criteria, so simple parameter substitution is not an option. I need to set the SQL Select Command at the time the report is initiated on the ASPX page that contains the Report Viewer.

In another thread, I have found out how to access certain report variables using the following technique:


Dim
report As Telerik.Reporting.Report = DirectCast(Me.ReportViewer1.Report, Telerik.Reporting.Report)

 

 

 

Dim txt As Telerik.Reporting.TextBox = TryCast(report.Items.Find("titleTextBox", True)(0), Telerik.Reporting.TextBox)
 

 

 

txt.Value = "

 

Updated Title Text"

How would I do the equivalent for the Datasource name, connection string or select command?

I need a clue as to the syntax and form, as the above "find" for a text control doesn't seem to apply.

 

 

 

 

 

Steve
Telerik team
 answered on 27 Sep 2011
6 answers
409 views
I have an existing .NET web application and currently working on implementing Telerik reports in it. Is it better to create reports in the same web application or to create a reports class library and then call them from the application? What are the pros and cons for each approach?
Steve
Telerik team
 answered on 27 Sep 2011
4 answers
385 views
I have laid out a table with the bottom row being empty. On the table_DataBound method, I am inserting text into that field. That field could be 50-100 lines of text. I am trying to align the report such that every item in the datasource (bound to my table) is on its own page (ie each processed table is on its own page).

I have attached some png's of the current output (each page of the resulting pdf).

Any help would be appreciated.
Kris
Top achievements
Rank 1
 answered on 26 Sep 2011
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?