Telerik Forums
Reporting Forum
1 answer
284 views
Hello,

I am trying to use the ObjectDataSource with some parameters being passed to the DataMember method (it returns a data table and accepts 2 string parameters). Have configured the values to be passed in the 'Configure Data Source Parameters' screen of the DataSource wizard.

When using it in Designer, it will pass null parameters (break in debugger to examine the values passed proves this) BUT when doing a Preview the values specified in the wizard are being passed on. This causes a bit of an issue, as unless I set default values for my parameters (which kind of defeats the purpose) I am not able to access the Fields returned and design my report.

Is there something I'm missing here?

I have attached a couple of screenshots, please let me know if any more info is required.

Also, on a side note: When previewing the report, when parameters are being passed on, I noticed that my 'GetData()' method is called multiple times. How does that work? One would expect the report to call the method once and get the data table, then use it for the report... is this the behaviour when running in release mode as well?

Thanks in advance,

George
Peter
Telerik team
 answered on 13 Nov 2012
0 answers
75 views
I am looking at using the reporting product in a "disconnected" Silverlight application, where the user may not be connected to the internet, and the reports will/may be based on ObservableCollections serialised to Isolated Storage. I have looked at the samples and documentation for some inspiration and i think that I may use Business Objects, the classes are in a seperate project than the main one.

I am looking at creating dataobjects from these but I am experiencing some issues, the data annotations do not seem to be "resolved" in the silverlight class project (the ones with the classes in). I am then trying to create lists from these collections, and use these, in terms of performance or using the product the best way, am I on the right lines.

I have looked at samples/help files, such as Business Objects in the help file.

I may also use the RadRichTextBox to create the Report in, but the reporting tool seems to give me more flexibility, especially with the external Report building Tool.

I am making an assumption that i can use the reporting system when disconnected, if I cannot then fine, I'll use an alternative route.

The main problem I have been experiencing is seeing the classes that I created as a list when configuring the datasource, I seem to be able to view that in the configure datasource today, must have had a bad moment yesterday.

Thank you in Advance
Stephen Rouse
Top achievements
Rank 1
 asked on 12 Nov 2012
2 answers
88 views
I have been struggling with this problem for about a week now and have tried every trick I know and then  some.    I have looked at various articles in the forums : http://www.telerik.com/community/forums/reporting/telerik-reporting/every-other-page-is-blank.aspx with no success. 
I have a simple report  with 7 groupings where the data is coming from a SQL stored procedure.  The SP runs fine but some result sets produce the report with every other page blank and other datasets produce the report perfectly.   It runs the same sp in both cases.  One case returns about 450 rows and the other about 520.  I have set the detail line visible to false and then the report runs fine so I suspect it does have something to do with the detail.  I have also tried setting each control to visible = false 1 at a time but that did not work.  Short of sending in a project to debug, is there anything else I can do to track this down.  There is NO code behind in the report so everything being manipluated in the report is done in the designer.

The detail line as about 8 fields on it.

Any other suggestions on how to track down the issue before I bundle up the project.  (The database is well over a gig so I would have to get that down and change the DB to some stand alone db in order to make a project for you to look at.

Doug
Steve
Telerik team
 answered on 12 Nov 2012
2 answers
129 views

Hi,

I am using Telerik Reporting Q3 2012 with Silverlight 5. I would like to add reports in a Report Book dynamically. Could you please tell is there any way that I can send Report Names from client to the server so that I can create their instance dynamically and add them into the report book, like,

string rptNames = “Rpt1,Rpt1”;
string[] names = rptNames.Split(‘,’);
 
            Type type = Type.GetType(names[0]);
            var o = Activator.CreateInstance(type);
             ReportBook.Reports.Add((Report)o);
…..

I want to send rptNames from the client and get it on the server.

Thanks!

Adil

Adil
Top achievements
Rank 1
 answered on 12 Nov 2012
4 answers
138 views
I am setting the PlotArea.DataTable.Visible to true, so that my series data are shown as values in a table below my chart. However, I have a lot of datapoints plotted in the chart so I would like to limit the number of columns shown. Something like the LabelStep functionality for Labels. Is there any way to do that with the ChartDataTable?

See the attached file for my current ChartDataTable presentation.

Best Regards,
Erik
Erik
Top achievements
Rank 1
 answered on 12 Nov 2012
1 answer
209 views
I ' m a beginner of using telerik report viewer.Could I use IDAutomationHC39M font using telerik report viewer? My requirement is needed to use that font.so pls give me the way of how to use it.

kind regards,
Msyma

Peter
Telerik team
 answered on 12 Nov 2012
3 answers
446 views
Hi.

After set the next page settings in my report: the margins i left 5,right 5, top 5 and bottom 5, format A4 small. Print preview is correct. But after page print right margin over then left.

I thing the problem in  ReportViewerModel.Print.cs of you source code Telerik.ReportViewer.Silverlight 
There are the next method:
 static void SetPageVisual(PageInfo pageInfo, PrintPageEventArgs e, Action<Exception> onError)
            {
                try
                {
                    var printPage = GetUIElement(pageInfo.Buffer);
                    var visualRoot = new StackPanel();
                    visualRoot.Children.Add(printPage);
                    visualRoot.HorizontalAlignment = HorizontalAlignment.Left;
                    e.PageVisual = visualRoot;
                    var printTransform = new CompositeTransform();

                    printPage.RenderTransform = printTransform;
                    printTransform.TranslateX = -e.PageMargins.Left;
                    printTransform.TranslateY = -e.PageMargins.Top;

                    var printWidth = e.PrintableArea.Width + e.PageMargins.Left + e.PageMargins.Right;
                    var printHeight = e.PrintableArea.Height + e.PageMargins.Top + e.PageMargins.Bottom;

                    if (printWidth < printPage.RenderSize.Width || printHeight < printPage.RenderSize.Height)
                    {
                        var scaleFactor = Math.Min(printWidth / printPage.RenderSize.Width,
                                                   printHeight / printPage.RenderSize.Height);
                        printTransform.ScaleX = scaleFactor;
                        printTransform.ScaleY = scaleFactor;
                    }
                    visualRoot.UpdateLayout();
                    e.HasMorePages = true;
                }
                catch (Exception ex)
                {
                    onError(ex);
                }
            }
        }
Why is you set the  visualRoot.HorizontalAlignment = HorizontalAlignment.Left?
IvanY
Telerik team
 answered on 12 Nov 2012
9 answers
316 views
I created a sample silverlight application with just the ReportViewer in xaml. When I run I immediately get the following message:
The type 'Office_BlackTheme' was not found because 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls' is an unknown namespace. [Line: 8 Position: 36]

I didn't set the theme, my xaml is like this.

<my:ReportViewer ReportServiceUri="http://localhost:8731/ReportService.svc" Report="ReportTester.OtpReport, ReportTester, Verson=1.0.0.0, Culture=neutral, PublicKeyToken=null" />

I've only got the Telerik Reporting stuff installed. So not any of the other licenses.

Hope someone can shine a light.
Steve
Telerik team
 answered on 12 Nov 2012
1 answer
121 views
Hello,

I*m using:
Telerik Reporting 2012 Q3 - Version=6.2.12.1017

Visual Studio 2010
Silverlight 5

Problem:
Icons are missing when I want to show the report in a window programatically:

var report = new ReportViewer
    {
        Report = "Test.MyReport, Test",
        ReportServiceUri = new Uri("../ReportService.svc", UriKind.Relative)
    };
var grid = new Grid();
grid.Children.Add(report);
var window = new ChildWindow
                 {
                     Content = grid
                 };
 window.Show();

Example of a request for an image that is automatically made:
  1. Request URL:
    http://localhost:3798/Telerik.ReportViewer.Silverlight;component/images/Print.png
  2. Request Method:
    GET
  3. Status Code:
    503 Service Unavailable



If I try this in XAML then all icons are loaded (no extra requests are made like the one above):
<controls:ChildWindow x:Class="Views.MyChildWindow"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:telerik="clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight">
    <Grid x:Name="LayoutRoot">
        <telerik:ReportViewer
            x:Name="ReportTestViewPrint"
            ReportServiceUri="../ReportService.svc"
            Report="Test.MyReport, Test">
        </telerik:ReportViewer>
    </Grid>
</controls:ChildWindow>
 
var window = new MyChildWindow();
window.Show();

I'm doing something wrong?

Thanks in advance.

Steve
Telerik team
 answered on 12 Nov 2012
3 answers
269 views

Hi,

 

We are using Telerik Reporting Q2 2010 v4_1_10_921_dev for our project reports. we are working on localizing Reports.

 

we started by using "localizing Telerik Reports video" as reference.

http://tv.telerik.com/watch/reporting/localize/localizing-telerik-reports

 

As mentioned in video, when we enter the french text in the Text block and hit enter french resource file will be generated automatically. But when we try enter text and hit enter its giving error
"Code generation for property "Text" failed". Refer attached screen shot.

 

Steps we followed :

 

Set the report localize property to true

Set the language property to french

Replace the text with french text and hit enter ( as mentioned in video) and error pops up.

 

Request you assist in solving problem.

Thanks and Regards
Jyoti

Steve
Telerik team
 answered on 09 Nov 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?