Telerik Forums
Reporting Forum
8 answers
605 views
Can I copy/paste reports in order to duplicate them and just change the details to have a bunch of different layouts?
Report1.cs,..... reportn.cs...

That way I do not have to recreate most things and quickly get results...

Thanks,

G
Peter
Telerik team
 answered on 14 Jun 2012
5 answers
316 views
i try to add Telerik ReprtViewer to my window Grid
this is the code :
<Window x:Class="MCCHomeWork.Main"
        xmlns:vm="clr-namespace:MCCHomeWork"
        xmlns:trr ="http://schemas.telerik.com/wpf"
        Title="Main" Height="300" Width="529">
    <Grid Name="MyGrid">
        <trr:ReportViewer Name="rep1"/>
        <Button Content="Click" Name="button3"  Width="75" Height="100" Click="button3_Click" />
    </Grid>
</Window>

it display an exception in the run time that say :
Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception.
the cursor point to the InitializeComponent(); in the Window Constructor
& when i remove the line :
<trr:ReportViewer Name="rep1"/>
the project works with out exceptions

Thanks in Advance ...
Michal
Top achievements
Rank 1
 answered on 14 Jun 2012
2 answers
668 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
205 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
183 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
909 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
94 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
916 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
149 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
127 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
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?