Telerik Forums
Reporting Forum
4 answers
155 views
I'm trying to print a report to envelopes in a Silverlight application. The printer has envelopes in tray 1, and plain paper in tray 2. Is there a way to get it to always pull envelopes from a specific tray, or to specify a particular paper size that the printer should use? Right now it always pull from the plain paper tray. I have the paper size in the report set to the size of the envelope. It's a standard #10 envelope.

Thanks
IvanY
Telerik team
 answered on 13 Nov 2012
1 answer
126 views
We're having quite a few problems with the Telerik reporting tools. Perhaps these issues are all just something we're doing wrong (and frankly we'd be happy if they were), but we're starting to believe that it's really a series of bugs in the product. This one we refer to internally as "Extra Pages".

Extra Pages
Some of our reports generate (seemingly) random extra pages. For whatever reason we have some reports that will generate an extra page even if the previous page has only one or two items in the detail section. However, this problem *might* have been solved after we upgraded to the Q3 2012 release.

We're continuing to test, but before we waste too much time here can anyone confirm or deny that an issue related to extra pages was addressed in the latest release?

Greg
IvanY
Telerik team
 answered on 13 Nov 2012
1 answer
265 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
58 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
70 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
117 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
117 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
184 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
389 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
296 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
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?