Telerik Forums
Reporting Forum
2 answers
655 views
Just upgraded telerik reporting to 6.1.12.611 and I don't understand how to use the ReportSource property in code behind.

Here is my current section of code which worked in the previous version:

        If dtrReader.HasRows Then
            Dim dt As New DataTable
            dt.Load(dtrReader)
            ReportViewer1.Visible = True
            ReportViewer1.Report.Reports(0).DataSource = dt
            ReportViewer1.RefreshReport()
        End If

and this line of code no longer works: 
ReportViewer1.Report.Reports(0).DataSource = dt

and gives the warning that the Report property is now obsolete. Please use the ReportSource property instead.

I can not figure out how to use the ReportSource property. Can someone please show me how to use it?

Thanks,

Jerry Jansen
Top achievements
Rank 1
 answered on 13 Jun 2012
1 answer
183 views
I've just upgraded to the 611 version and I can no longer successfully build my solution. It seems that the RenderReport method will no longer accept a ReportBook parameter although all the documentation claims that it does.

My scenario is that I create a ReportBook from 3 Reports and then pass it over to the ExportToPDF method. I now get the following compile time errors.

Error    66    Argument 2: cannot convert from 'Telerik.Reporting.ReportBook' to 'Telerik.Reporting.ReportSource'   
Error    65    The best overloaded method match for 'Telerik.Reporting.Processing.ReportProcessor.RenderReport(string, Telerik.Reporting.ReportSource, System.Collections.Hashtable)' has some invalid arguments


    void ExportToPDF(string reportName, Telerik.Reporting.IReportDocument reportToExport)
    {
        ReportProcessor reportProcessor = new ReportProcessor();
        RenderingResult result = reportProcessor.RenderReport("PDF", reportToExport, null);
 
       using (FileStream fs = new FileStream(fileName, FileMode.Create))
        {
            fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
        }
     }

I have tried multiple ways to configure this using the ReportSource class but am unable to figure out how this works.

Your assistance, as always, is greatly appreciated.

Thanks
Clyde
IvanY
Telerik team
 answered on 13 Jun 2012
1 answer
169 views
Hi,
While searching through forums, i got to know that it does not support 3D chart types and it seems that we can generate the 3D chart image outside of the Report class and show it in the Report through the picturebox report item.
Anyone can help me how to create the 3D charts in telerik reporting using the above process.



Steve
Telerik team
 answered on 13 Jun 2012
1 answer
881 views
Hi , 
i am using telerik reporting to generate mails  , i have a textbox when i must put the  site and the current date in short format .  i am tring with : format("{d:0}", Now()) but does not work .
have you any idea ?
thank you for reply . 
Steve
Telerik team
 answered on 13 Jun 2012
1 answer
82 views
We are using Telerik reporting and we would like to customize the look of the ReportViewer.


We have managed to change the basic skin, but we still need to modify the presentation of the Parameter Area that is auto-generated.


The parameter area seems to be generated by this web request: /Telerik.ReportViewer.axd?instanceID=xxxx&optype=Parameters


How can we modify the way that the web handler is formatting the editors for each parameters? It is placing each parameter in a table with two columns, which does not look good. We need to control where the parameter dropdowns are placed (at least in a table with 3 or 4 columns, not fixed to 2).


Any help would be appreciated
Steve
Telerik team
 answered on 13 Jun 2012
1 answer
894 views
I have set up my MVC 3 application to use the report viewer.  This works fine locally, but it will not load once deployed to IIS.  I opened up fiddler and whenever a request for /Telerik.ReportViewer.axd?... is made, a 404 error occurs.  I have seen many other posts with this problem, and it was usually issues with the web.config, but it seems my web.config is correct.

In my web.config:

<httpHandlers>
      <add type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" validate="true"/><br>
    </httpHandlers>

  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true" />
    <handlers>
      <add name="Telerik.ReportViewer.axd_*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
    </handlers>
  </system.webServer>

Paul D.
Top achievements
Rank 1
 answered on 12 Jun 2012
1 answer
130 views
Hi there,

I'm facing a little problem:

Is it possible to switch the subsets in the designer?

For example:
I've got 2 parts of a barcode. The first should always be subset A, the second always subset C.
Now, what I want to do, is defining a barcodefield, that takes my first part with subset A and the rest in subset C.

http://www.telerik.com/help/reporting/report-items-barcode.html 

This page was quite helpfull, for switching the subset via fieldvalue, but that doesn't fit my question of dealing with the switch in the designer.

Any help is greatly appreciated~
Elian
Telerik team
 answered on 12 Jun 2012
1 answer
100 views
Hi all

I want to know is how to Xaml send data from the Report.

I wish I was hoping you could help us thank you.

^^;

..

Test.Xaml

args.ParameterValues.Add("Test", "2012010001");



Report.CS

string  St_Query_Parameter_Data = this.ReportParameters["Test"].Value.ToString();

Mssql Query  : Select * from Test_Data Where NO_CODE = St_Query_Parameter_Data !! Error
St_Query_Parameter_Data  <== Null Data


Hadib Ahmabi
Top achievements
Rank 1
 answered on 12 Jun 2012
1 answer
71 views
Telerik  Reporting   use   in   silverlight    client...

Telerik  Reporting  use  in  silverlight???

Data  set  in   Silverlight   client  ,  how   to  use   "Telerik Reporting"   showing    the   report   data  ?

Data in a database has been sent to the  silverlight client.

Official  website  there  is no  such Demo???  I  can't  find  it...
Elian
Telerik team
 answered on 12 Jun 2012
1 answer
63 views
Hi,
I am working telerik reporting showing class detail. I have grouped it by ClassID. It has the "Time" field which I have to sum in the "GroupFooterSection", for this purpose I have sum the time in Fill() method of report and assigned the value to the textbox in GroupFooterScetion. But it is showing the same value for each group, and also it is giving me the sum of all classes instead of showing group wise result.

Regards,
Sonia Shahid
Hadib Ahmabi
Top achievements
Rank 1
 answered on 12 Jun 2012
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?