Telerik Forums
Reporting Forum
1 answer
153 views
Hello.

I just basically installed Telerik Reporting. Created a new class library. Went to Add New item -> Telerik Report.

Added a textbox and a picture, hit "Preview" and get

"The source of the report definition has not been specified.".

Why is this? Shouldn't i be able to simply just preview just the simplest of things? Feels like something is very wrong, maybe I have to reinstall.

VS 2010.

/E
Steve
Telerik team
 answered on 25 Nov 2010
1 answer
79 views
Hi I am having a requirement where I am having a dataservice(wcf data service or ado.net service) which I shuould use as a datasource for report. how can I do this? Please guide me.


Regards,
Abhinay
Peter
Telerik team
 answered on 25 Nov 2010
1 answer
213 views
Hi,

I was wondering if it is posible to have a textbox that is visible when viewed through a viewer but is hidden if/when the report is printed off.
Peter
Telerik team
 answered on 25 Nov 2010
3 answers
221 views
I'm having some difficulties running the Silverlight viewer against the self hosted WCF service example in the latest documentation.

Upon setting the ReportServiceUri and report qualified name the viewer starts to load then displays this text in the main report window :
An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.

I can't trap the exception and get at the innerException details, it seems to throw within the component.

I think the service is hosted OK as It works fine using the HTTP Get method described in the example to get the PDF export into the browser.

Has anyone else got this working ?
Massimiliano Bassili
Top achievements
Rank 1
 answered on 25 Nov 2010
6 answers
769 views
Hi,

I've develpoed a dozen Telerik reports for my application.

I connect to any handy datasource to design and preview reports but in production I always supply a dataset myself like this...

Public Sub New(ByVal sConn As String, ByVal sSQL As String, ByVal ReportTitle As String)
       InitializeComponent()
        Dim ds As DataSet = SnagRData1.getDataSet(sSQL, sConn, "qSchedXtab")
        Dim dt As DataTable
        dt = ds.Tables("qSchedXtab")

        Me.DataSource = dt
    End Sub

This works fine for everything except my new xtab report where I get the exception - the data is present and correct but the report crashes the development PC as it trys in vain to use the data passed to it.

If I delete the SQLdatasource1 used to preview it still cannot match the data correctly.

Please help
Steve
Telerik team
 answered on 25 Nov 2010
3 answers
136 views
Hi Friends,
                   I have been using the below code to save my report.
                  
void SaveReport(Telerik.Reporting.Report report, string fileName) 
    { 
        ReportProcessor reportProcessor = new ReportProcessor(); 
        RenderingResult result = reportProcessor.RenderReport("PDF", report, null); 
 
        using (FileStream fs = new FileStream(fileName, FileMode.Create)) 
        { 
            fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length); 
        } 
    }     

But how to make a report from code behind for a large table.I have referred the following link
http://www.telerik.com/help/reporting/programmatic-control-of-reports.html. Its ok for tables with few columns.I have also seen the code from InitializeComponent() of the designer.cs file.I want everything to work from code behind(Creating report,Assigning SqlDatasource and so on.) Can any one help me.Can any one give a sample code for large table queries. Im not using ReportViewer to see the report.I just want to save my report as file.


          Telerik.Reporting.Report report = new Telerik.Reporting.Report();
            Telerik.Reporting.SqlDataSource dataSource = new Telerik.Reporting.SqlDataSource();
            dataSource.ProviderName = "System.Data.SqlClient";
            dataSource.ConnectionString = @"Data Source =(local)\SQLEXPRESS2008;
                                 Initial Catalog=TestDb;Integrated Security=True;Pooling=False";
            dataSource.SelectCommand = @"SELECT * FROM [TestTable]";
            report.DataSource = dataSource;

Wat to do after this if my 'TestTable from Db 'has more than 20 columns and more rows..Can i use Telerik.Reporting.Table for this??


Regards and Thanks
Titti.S





Massimiliano Bassili
Top achievements
Rank 1
 answered on 25 Nov 2010
1 answer
149 views
What does reset style do?....I mean I can GUESS :)  But it seems like it's not resetting all the properties.

I've got two textboxes, both I want to look the same.  So the one I just freshly dropped onto the report looks default (arial 10).  Then there's another one who's got Tahoma, grey color, aligned right.  If I copy the style if the new box I dropped and paste it into the Tahoma one, nothing changes.  I assume this is becasue "Default" isn't a style?  I would assume though that the properties set on the one textbox should propagate to the other one since the default settings are still technically a style.

Ok, so given that didn't work I tried in the opposite direction.  Copied the style from the tahoma and pasted it into the new one and everything worked great....however that's not what I wanted so I tried a Reset Style on both.

I got Arial 10pt on the one box, and Tahoma 11pt on the other.

What is it resetting it to?
Steve
Telerik team
 answered on 24 Nov 2010
1 answer
107 views
I  created   a  report   to display   a  bar  chart.
I  added  this   report  as  a  sub report  inside    the  group header of another  report.
The  problem  is  Chart  individually  executing well and giving  correct results. 
But  after  adding the this report  as a sub report to another report  the  chart is not being  displayed  well.  
Steve
Telerik team
 answered on 24 Nov 2010
2 answers
186 views
I have a drop down parameter that list 2000+ items. Is there a way to limit this and function like your combobox. For example have the user type and auto find using a like statement that brings back the top 50 items.


thanks
Dwayne Starkey
Top achievements
Rank 1
 answered on 24 Nov 2010
0 answers
72 views
Hi,

How can I pass a full ReportBook of reports to external page with ReportViewer control in it?

I've created my individual reports in code...

Dim reportBook As New Telerik.Reporting.ReportBook()
            reportBook.Reports.Add(New TelerikWebReports.SubCon1Rep())
            reportBook.Reports.Add(New TelerikWebReports.SubCon2Rep())
etc.

then I set

LaunchReportViewer = True

which fires off TelerikReportViewer.aspx in a colorbox
In the page_Load event I want to do something like...

ReportViewer1.Report = reportBook

do I need to pass this as a session object?

Thanks
graham
Top achievements
Rank 1
 asked on 24 Nov 2010
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?