Telerik Forums
Reporting Forum
2 answers
125 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
126 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
193 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
411 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
301 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
113 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
254 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
2 answers
338 views
We have created a report using only the font "Arial Unicode MS". Exports to Microsoft Excel work fine (the East Asian text is visible).

However, exports to PDF result in empty boxes instead of text.

PDFs created on my development machine work fine (East Asian text is visible in PDF). But when we deploy to our server (Windows Server 2008 Standard), the PDFs once again result in empty boxes.

Any suggestions?

P.S.  In our case "East Asian Language" = Chinese and Korean.


Roman
Top achievements
Rank 1
 answered on 09 Nov 2012
4 answers
300 views
Firstly, I think Telerik reporting is amazing! A great product...

I'm currently having some issues.. I created a WCF service that returns a report using SOAP. 
Using the example "self-hosted-telerik-reporting-wcf-service.html" my URL looks like this:

http://localhost:54321/reportservice/resources/export?format=PDF&report=YourNameSpace.Report1,YourNameSpace&parameterValues={"FileID":21} When I go into the report designer and setup parameters, my call to this service no longer works. However, when clearing all parameters or hard setting the parameter as a certain value, the call works perfect (returning the report with FileID of the hard coded value) Could really use some help on this... Thanks
Regi
Top achievements
Rank 1
 answered on 08 Nov 2012
3 answers
77 views
Hi,
We need to create a report where a field Size font is dependant from another field value:
example:
Il first field value is 12 then style font size of second one must be 12.
Is it possible to get this behavior ?
Regards
Eric

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