Telerik Forums
Reporting Forum
5 answers
268 views
Is it possible to use a pre-made form as the background / basis for a report in Telerik Reporting?

In other words, I have a PDF form on which I'd like to drop data fields.  is it possible to load or import the form into the report writer and then drop fields on it per normal?  I can think of the "stretching" limitation, but I'm curious if the report could not stretch the page, but spawn to new ones as the data were merged in some way.

Thanks!
Steve
Telerik team
 answered on 28 Oct 2010
1 answer
95 views
Does anyone know of any way to exclude certain columns only from CSV when exporting reports to CSV? I have columns to display the sum of some numbers on other formats but i dont want them in the CSV
Steve
Telerik team
 answered on 28 Oct 2010
4 answers
368 views
With the new Q2 release Telerik Reports hyperlinks are now supported,
and I am trying to enable interactive sorting without tables. Table
performance seems very slow or even hangs  when using table grouping.

With the fields in the detail section directly, and  using the NeedDataSource, or ItemDataBinding(for the report details section)  event I can grab my report params but in these events the sorting methods don't work. "Telerik.Reporting.Data.SortDirection.Asc"

The sorting does work under InitializeComponet() but
I can't get the params or at least don't know how at that stage of
report rendering. .

I am designing the reports in a class library  

Thanks

Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;
 
           if ((string)report.Parameters["SortDir"].Value == "Asc")
           {
 
               this.Sorting.Add(new Sorting("firstname", Telerik.Reporting.Data.SortDirection.Asc));
               
                
           }

private void Report3_NeedDataSource(object sender, EventArgs e)
        {

            Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;

            if ((string)report.Parameters["SortDir"].Value == "Asc")
            {

                this.Sorting.Add(new Sorting("firstname", Telerik.Reporting.Data.SortDirection.Asc));
                report.DataSource = this.sqlDataSource1;
                
            }
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }




private void Report3_NeedDataSource(object sender, EventArgs e)
        {

            Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;

            if ((string)report.Parameters["SortDir"].Value == "Asc")
            {

                this.Sorting.Add(new Sorting("firstname", Telerik.Reporting.Data.SortDirection.Asc));
                report.DataSource = this.sqlDataSource1;
                
            }
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
       
private void Report3_NeedDataSource(object sender, EventArgs e)
        {

             report.DataSource = this.sqlDataSource1;
                
            }
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
private void Report3_NeedDataSource(object sender, EventArgs e)
        {

            Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;

            if ((string)report.Parameters["SortDir"].Value == "Asc")
            {

                this.Sorting.Add(new Sorting("firstname", Telerik.Reporting.Data.SortDirection.Asc));
                report.DataSource = this.sqlDataSource1;
                
            }
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
       {

            Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;

            if ((string)report.Parameters["SortDir"].Value == "Asc")
            {

                this.Sorting.Add(new Sorting("firstname", Telerik.Reporting.Data.SortDirection.Asc));
                report.DataSource = this.sqlDataSource1;
                
            }
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
private void Report3_NeedDataSource(object sender, EventArgs e)
        {

            Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;

            if ((string)report.Parameters["SortDir"].Value == "Asc")
            {

                this.Sorting.Add(new Sorting("firstname", Telerik.Reporting.Data.SortDirection.Asc));
                report.DataSource = this.sqlDataSource1;
                
            }
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
Steve
Telerik team
 answered on 28 Oct 2010
2 answers
90 views
I'm starting with the trial for reporting and Web toolkits using VS2010, 4.0 framework.  I have a web application with a report viewer that is consuming reports defined on a separate dll library.  In one report I have a field (textbox) that has what I want to be "active"content - meaning I want the user to click that textbox and have it navigate to another report serving much like a drill down.  This I have been able to accomplish.

Additionally, I am trying to maintain a set of navigation hyperlinks outside the report/report viewer that can also serve a similar report navigation purpose.  These hyperlinks would instruct the report viewer to change its report source, parameters, etc.  The key here is that I am creating an alternative to a document map - its just a business requirement.

How would I know when the user has clicked on the report field, thus triggering the navigation action?  I need to know this because I need to update the hyperlinks to reflect the new report "context".  I'm a bit dumbfounded by the lack of useful events in the report control hierarchy.  The report viewer appears to be blissfully ignorant of important actions like the one described above...  is this true or am I just missing something obvious?

Thanks in advance,
Ed
Peter
Telerik team
 answered on 27 Oct 2010
1 answer
89 views
I have a stored procedure that builds a temp table within itself and returns its results. however when i add the sqldatasource to a report via the wizard i get results when i execute it. but no data fields show up. and it does not allow me to continue the wizard as far as designing the report with theme etc. it stops at the selected datasource.
any ideas on how i can rememdy this?

Joshua
Joshua Gates
Top achievements
Rank 1
 answered on 26 Oct 2010
1 answer
172 views
Hi there

I have a problem when setting text wrap to False for a text box on a report. When viewing the report, it seems to work fine (i.e. the text is truncated at the point where the text box end.)

When printing to PDF or printer, the text in essence still wraps, but because the wrap is set to False, the box does't grow and it seems to just 'throw away' the last bit of the text after a space. 

I need it to print in the way the report viewer displays it - truncated.

I have seen a few older posts regarding this problem but I couldn't find that it was resolved.

The version of the software that we currently use is 'Telerik_Reporting_Q2_2010_v4_1_10_714_dev'.

For this text box, I have set TextWrap, Multiline and CanGrow all to false.

Kind regards

Steve
Telerik team
 answered on 26 Oct 2010
2 answers
85 views
Hi,my problem is that I have to use more than one stored procedures for different parts of my report.
For example if I have three parts in the report I have to use three stored procedures which provide the data.
Arash
Top achievements
Rank 1
 answered on 26 Oct 2010
12 answers
596 views
Hi there,

I am using the web report viewer. My report has one parameter called 'ClassName' which is added to the report by code. The data source of this parameter is from a query. if the data source is an empty collection, the report viewer shows '<select a value>' in the parameter combo box which is fine. If I click the Preview button it shows 'Please input data for all parameters' which is also fine. However, whenever I click the refresh button or click the Export button(after selecting a format) on the viewer tool bar, I will get the following error:

Invalid value of parameter 'ClassName'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: Invalid value of parameter 'ClassName'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[Exception: Invalid value of parameter 'ClassName'.]

[CancelProcessingException: An error has occured while processing the report. Processing canceled. Check the InnerException for more information.]
   Telerik.Reporting.Processing.Report.ProcessItem() +339
   Telerik.Reporting.Processing.ReportItemBase.Process(DataMember data) +315
   Telerik.Reporting.Processing.ReportProcessor.ProcessReport(IReportDocument reportDocument, IDictionary processingContext) +563
   Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +456
   Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageIndex) +815
   Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperation(NameValueCollection urlQuery, HttpContext context) +244
   Telerik.ReportViewer.WebForms.HttpHandler.ProcessRequest(HttpContext context) +297
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Is there a way to handle this error? It should show 'Please input data for all parameters'.
Please help.

Thanks,
Richard

Steve
Telerik team
 answered on 26 Oct 2010
4 answers
113 views
I have a group summary item that has the following expression:

= (Sum(Fields.ActualAttendance) / Fields.DaysTaught)

Actual attendance and DaysTaught are integers.  i would like to display the result with single precision decimal.  How can I do this in an expression?  The problem is that the integer arithmetic is returning a tuncated integer so using the format option always display .0
What I need is to cast the integers to decimals beforehand.

Thanks
Steve
Telerik team
 answered on 25 Oct 2010
5 answers
134 views
Hello,

When I create a new report using the Telerik Reporting Template in Visual Studio 2010, there are a number of changes I need to make each time.  Can the VS Template be modified to avoid this repetition or is there another recommended technique?

Thanks!
Steve
Telerik team
 answered on 25 Oct 2010
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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?