Telerik Forums
Reporting Forum
3 answers
133 views
Hello,

I have this issue that I set the XAxis label Rotation through the property "PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle" but this value is ignored.

I've managed to find what makes this annoying bug, it seems that when I set an skin this issue appears, and the way that I found to have the rotation and the look of the skin is to comment or delete the line that sets the skin name like the one below:
this.chart1.Skin = "Telerik";

Is this an known issue? The thing is that I don't have the latest version, I use the Q3 2010 and the company is not thinking to buy right now the latest version.

Thanks!
Tiago Ribeiro
Steve
Telerik team
 answered on 25 Sep 2012
3 answers
207 views
When generating PDF I get a whitespace/gap between the two mentioned sectioned, which I don't know the source of.
There is no grouping applied in the report. I am using a trial version of Telerik Reporting version 6.1.12.820. 

Did anyone come across this problem?

Roland
Steve
Telerik team
 answered on 25 Sep 2012
1 answer
184 views
After the most recent update to Reporting, a NullReferenceException is thrown when a ReportViewer is loaded without setting the ReportSource. When I load the the view that contains the viewer, I'm seeing this exception which I can't catch and suppress. My particular use case is in a Application that dynamically creates reports based on user input and then sets the source through data binding. This is a show stopper for a release I have to meet next week, so any quick help that can be provided would be much appreciated.My particular use case is in an MVVM Application where I dynamically create reports based on user input and then set the source through data binding.  

Here is the stack trace: 

Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewerModel.CreateReportSourceSnapshot() + 0x26 bytes Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewerModel.RefreshReportInternal(bool reloadParameters, Telerik.ReportViewer.Common.LogHistoryRecord logHistory, bool resetCachedResults) + 0xb5 bytes
Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewer.RefreshReport() + 0x4c bytes
Telerik.ReportViewer.Wpf.dll!Telerik.ReportViewer.Wpf.ReportViewer.OnLoaded(object sender, System.Windows.RoutedEventArgs e) + 0x26 bytes
PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs) + 0x78 bytes
PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source, System.Windows.RoutedEventArgs args, bool reRaised) + 0xbe bytes
PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender, System.Windows.RoutedEventArgs args) + 0x79 bytes
PresentationCore.dll!System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs e) + 0x17 bytes
PresentationFramework.dll!System.Windows.BroadcastEventHelper.BroadcastEvent(System.Windows.DependencyObject root, System.Windows.RoutedEvent routedEvent) + 0x149 bytes
PresentationFramework.dll!System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(object root) + 0xa9 bytes
PresentationCore.dll!MS.Internal.LoadedOrUnloadedOperation.DoWork() + 0x16 bytes

Steve
Telerik team
 answered on 25 Sep 2012
2 answers
327 views
Hi.

Within my details section, I wish some of the reportitem properties to be written out as a table.
The data source is ObjectDataSource (clr object).

If I have a datasource like this

class DetailObject
{
public int Prop1 {get;set;}
public int Prop2 {get;set;} 
public int Prop3 {get;set;} 
public int Prop4 {get;set;} 
public int Prop5 {get;set;} 
public int Prop6 {get;set;}  
}

I want properties 1,2 and 4 to be written out as a table within the details section and 3 and 5 in another table.
I am faced with the problem that tables need to be bound to collections. Leaving the datasource empty or binding to "= ReportItem" causes the table not to render at all (instead of rendering one and allow direct access to reportitem properties).

The workaround appears to be to create a value object that matches the the table layout and fake a list. Like this:

class Table1Values
{
public int DetailProp1 {get;set;}
public int DetailProp2 {get;set;} 
public int DetailProp4 {get;set;}  
}

class Table2Values
{
public int DetailProp3 {get;set;}
public int DetailProp5 {get;set;} 
} 

And then expand my DetailObject class with an Enumerable like this:

class DetailObject
{ 
// ( all the other stuff) 

public IEnumerable Table1Data {
get {
yield return new Table1Values
{ DetailProp1 = Prop1, 
DetailProp2 = Prop2,
DetailProp4 = Prop4
};
}};
}

Then it is possible to bind a table datasource to "=Fields.Table1Data" and binding cells to DetailProp1, DetailProp2 and DetailProp4. 

Am I missing something obvious, or is this how one should go about creating a table within the details section where the table is a table layout of predetermined individual ReportItem properties?
Tormod
Top achievements
Rank 1
 answered on 25 Sep 2012
16 answers
1.7K+ views
Hi - 
I'm trying out Telerik Reporting for the first time (I have used SSRS for a few years before). 

There's a few useful expressions that I've used in SSRS, which I have trouble reproducing in Telerik reports...

1) Referencing a dataset with the Exec() function:
 - I have a table "TableA", and a TextBox outside of the table
 - I would like the TextBox value to be the Sum() from TableA =  Exec('TableA', Sum(Fields.Column1))
 - unfortunately this is not supported...  Any plans to have it in the future?  What's the cleanest workaround?

2) Referencing the value from another TextBox:
 - I have 2 Textboxes, "TextBoxA" and "TextBoxB"
 - I would like TextBoxB value to equal the value from TextBoxA (in SSRS I would do: ReportItems!TextBoxA.Value )
 - this doesn't seem to be supported...  Any plans to have it in the future?  What's the cleanest workaround?

3) ColumnNumber() function:
 - I was trying to use ColumnNumber() in a header for some business scenario
 - the function always returned "1"...

thanks for your help!
 - bash
Ubuntu
Top achievements
Rank 1
 answered on 24 Sep 2012
13 answers
3.0K+ views
What is the method for setting the data source for subreports?

I currently have a report with 2 subreports. At runtime I set the report's data source to a DataSet. I also set the data source for the 2 subreports to the same DataSet. No data appears to be getting to the subreports.

public PeakReport(DataSet ds)
{
            /// <summary>
            /// Required for telerik Reporting designer support
            /// </summary>
            InitializeComponent();

            DataSource = ds;

            subAMDaily.Report.DataSource = ds;
            subPMDaily.Report.DataSource = ds;
}
Elian
Telerik team
 answered on 24 Sep 2012
4 answers
275 views
Hello,
 I am new in telerik. I would like to figure data + collection in one Report from my Bussiness object.

for example (it is only example but it describes my situation):

I have this classes:

public  class  Thing
{
     public string Name {get; set;}
     public string Price {get; set;}
}

public class  Person
{
 public string Name {get; set;}
 public string SurName{get; set;}
 public List<Thing> Things{get; set;}
}

result should be something like this:
--------------------------
name + surname  John Novak
things
 Car $100
 Toilet paper 42
 Mask $20
--------------------------

My question is, how do I figure out information about one person and person's things at the one report. I investigated "Telerik reporting tep by step" guide, but it deals only with database.

I am creating PDF from my bussiness object and I really don't know how to bind subreport.  I investigated that I can use subreports: Master report will show name + surname and subreport will show things.
Question is how to fill DataSource of  subreport.

My method for creating report is :

 

var dp = new DataProvider();

 

 

var myReport = new Report1();

 

myReport.DataSource = dp;
//!!!! Is tehere way, how to say, that Report2 (which is subreport in Report 1) will be filled by dp.SomeCollection

 

string mimType = string.Empty;

 

 

string extension = string.Empty;

 

 

Encoding encoding = null;

 

 

byte[] buffer = Telerik.Reporting.Processing.ReportProcessor.Render(

 

 

"PDF", myReport, null, out mimType, out extension, out encoding);

 

 

FileStream fs = new FileStream("c:\\reportWithExternalDataSource.pdf", FileMode.Create);

 

fs.Write(buffer, 0, buffer.Length);

fs.Flush();

fs.Close();


I hope I described my problem. Can anybody help me please.


thanks

kure256

Kalpesh
Top achievements
Rank 1
 answered on 24 Sep 2012
16 answers
549 views
Hi there,

I have juts one solution where I have to compute a lot of data.
After computing I have a lot of lists I want to display in a report.
My object looks like this:
--------
List of objects | (contains) =>
                       |- List of StatusData
                       |- List of PowerData
                       |- List of ReferenceData
                       |- List of Curves

What do you thing is the best practice to get this data in different tables?

Best Regards
Manfred
Roland
Top achievements
Rank 1
 answered on 24 Sep 2012
1 answer
272 views
Hi..
We created labels with background image.
When exported on our dev machine it looks fine.
On the server or a user's machine the labels are all blurry when exporting to PDF.
We are using the WPF Report viewer.
Export to other formats works fine.
any ideas?
thx
Steve
Telerik team
 answered on 24 Sep 2012
1 answer
169 views
I have a crosstab table that I am binding to "Samples". Each sample has a date, I order these coming out of sql from oldest to newest (ie 01/01/11 comes before 02/01/11).

I have verified my IEnumerable is ordered correctly, as shown by the attached screenshots (photo1 & photo2). But when the report is generated, it does not order it correctly (photo3 & photo4). It also ignores the order of a DataTable (photo5)

Why is it ignoring the order of my datasource? Any ideas?

Thanks
IvanY
Telerik team
 answered on 21 Sep 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?