Telerik Forums
Reporting Forum
2 answers
346 views
I am creating bulk reports by generating reports programatically and then directly saving them to files on disk without opening.

I would like to skip saving reports which have no data in them but I need a way to check if the report is empty.

What property in the Telerik.Reporting.Report object should I check in order to do this?

The .Items property seems to include column headings so its of no use to me. I found the .Bindings collection and thought about .Bindings.Any() but I cannot find any documentation on it so I am not sure if that is an adequate solution.
Stefan
Top achievements
Rank 1
 answered on 18 Mar 2013
8 answers
377 views
Hi,
  I have set up a chart in Telerik with two series.  For each series, I am setting the series.datalabelscolumn to a column in my data.  I would like to format these values.  I have tried searching changing the series.DefaultLabelValue, but nothing seems to be happening.  I think that when I am changing the defaultlabelvalue, it is changing my chart y-value that would normally be displayed to the right of my bar chart item, not the column that I am setting it to.  Can you provide me with any guidance?  Thanks.
Mohammed
Top achievements
Rank 2
 answered on 16 Mar 2013
2 answers
397 views
I've created a report that has a business object as its data source. For a number of tables I select lists within the object and use it to layout the report. What i noticed is that for each table the constructor of the business object is called each time.

What I would like to do is initialize the object outside the report and then use NeedDataSource to pass the appropriate data in (looking at the data member in sender object?) to pass in the appropriate data.

NeedDatasource is not firing and I read that it will not be if the report has a datasource. So now I am not passing in the data source but the report is still instantiating its own I suppose because when defining the data source in the designer enables the report to create its own. I theorize that if I create the report this way and then unhook the tables from data sources that needdatasource will be fired but this seems like an odd way to do things.

I am obviously missing something, any pointers would be greatly appreciated.

Thanks,
Don Rule
Translational Software
Don
Top achievements
Rank 1
 answered on 16 Mar 2013
3 answers
250 views
Hi

I'm using

Reporting: 6.2.13.110
WPF-Controls: 2012.3.1129.40

I upgraded from Q1/2012 to the version mentioned above and experience weird behaviour since then.

I use the ReportViewer in a MVVM Scenario where it is nested in a DataTemplate to dynamically toggle the view
based on the DataType of some property.

<DataTemplate DataType="{x:Type local:ReportViewerViewModel}"
                     x:Shared="False">
           <local:ReportViewer />
       </DataTemplate>
 
       <DataTemplate DataType="{x:Type local:PdfViewerViewModel}"
                     x:Shared="False">
           <local:PdfViewer DataContext="{Binding FilePath}" />               
       </DataTemplate>


Report displays fine, but changing the Property to engage another datatemplate crashes the app.

There is a null reference exeption, and also "Dispatcher processing has been suspended, but messages are still being processed." - Exception.

ReportViewer looks like this:

<UserControl x:Class="Ra.WPF.ReportViewer"
...
             Name="_this">
    <Grid DataContext="{x:Null}">
        <telerikReportViewer:ReportViewer Name="_rv"
                                          telerik:StyleManager.Theme="Windows7"
                                          ReportSource="{Binding DataContext.ReportSource, ElementName=_this}" />
    </Grid>
</UserControl>


I'm also wondering why the telerik people (documentation people) call this production code.

Look here: http://www.telerik.com/help/reporting/wpf-report-viewer-embedding-the-viewer.html

Following the example you get bloated with binding errors.

I know the reason for this to happen, but does a newbe?

Besides from that the VS-Report Designer is a whole mess in my opinion.
I still can't handle nested collections, there is groups disppearing or inacessible through the designview, just to mention a few.

Could just throw the whole reporting away!


Martin

Stef
Telerik team
 answered on 15 Mar 2013
3 answers
151 views
Hi,
Telerik report printing is not working in Mozilla Firefox, but working in Internet Explorer and Google chrome. why?.

Thnaks & Regards
Anzar.M
Stef
Telerik team
 answered on 15 Mar 2013
3 answers
163 views
I am having an issue using the latest (internal) build with the the Reporting control HTMLTextBox.

When I use a HTML fragment like <u>Test</u> the control renders as expected with an underline. Attached is screen shot HTMLFragment.

But when I supply the HTMLTextBox well formed HTML like:
<p style="margin-top: 0px;margin-bottom: 12px;line-height: 1.15;"><span style="font-family: 'Verdana';font-size: 16px;"><u>Test</u></span></p>

The underline and last letter is missing does not render as in the attached screen shot HTML.

Any ideas on how I can overcome this?

XAML
<Window     x:Class="ReportViewer.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:tr="http://schemas.telerik.com/wpf"
            Loaded="WindowLoaded"
            Title="MainWindow">
    
    <StackPanel Orientation="Vertical">

        <tr:ReportViewer    x:Name="rvWorks"
                            Margin="5 5 5 5" />

        <tr:ReportViewer    x:Name="rvDoesNotWorks"
                            Margin="5 5 5 5" />

    </StackPanel>
</Window>

C#
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void WindowLoaded(object sender, RoutedEventArgs e)
        {
            UriReportSource works = new UriReportSource();
            UriReportSource doesNotWork = new UriReportSource();

            works.Uri = @"C:\Temp\HtmlTextBox.trdx";
            works.Parameters.Add(new Telerik.Reporting.Parameter("htmlTextBoxValue", "<u>Works</u>"));

            doesNotWork.Uri = @"C:\Temp\HtmlTextBox.trdx";
            doesNotWork.Parameters.Add(new Telerik.Reporting.Parameter("htmlTextBoxValue", @"<span style=""font-family: 'Verdana';font-size: 6px;""><u>Does Not Work</u></span>"));
            
            this.rvWorks.ReportSource = works;
            this.rvDoesNotWorks.ReportSource = doesNotWork;
        }
    }
}
Elian
Telerik team
 answered on 15 Mar 2013
1 answer
113 views
When I hit the print button in my asp.net application report viewer nothing happens (Firefox 19 + Acrobat Reader plugin 11). In IE and Chrome the print dialog is shown.

Using Firebug I open the URL that is requested in the print button (http://mydomain/myapp/Telerik.ReportViewer.axd?instanceID=31b15d2320034cdc994c3b00b0f6ca3c&optype=Print&format=PDF&rand=1363363942793) and If I open it in another tab, the acrobat reader plugin shows the report.

Any idea how to solve this?
Thanks!
Jorge
Top achievements
Rank 1
 answered on 15 Mar 2013
0 answers
148 views
I'm currently working on a Telerik report that will print out 2-sided ID cards for employees. The front side will be basic contact information and a picture, and the backside will display all courses that the employee has taken. I currently have it working by way of placing a page break after the contact information portion of the report. This accomplishes my goal.

A problem arises when their course list is too large to fit on the 2nd page (back of 1st ID Card) - and must extend into a third page (front of 2nd ID card). My desired functionality would be that the contact information is once again generated and the overflow of the 2nd page's courses is displayed on the 4th page (or back of 2nd ID card).

Example of what's happening now:
Page 1: [Contact Info front of card     ]
Page 2: [Overflow of course info e     ]
Page 3: [xtending onto different page]

Desired functionality:
Page 1: [Contact Info front of card     ]
Page 2: [Overflow of course info e     ]
Page 3: [Contact Info front of card     ]
Page 4: [xtending onto different page]

Does anyone have any ideas on how this might possibly be accomplished?
Atlas
Top achievements
Rank 1
 asked on 15 Mar 2013
1 answer
116 views
Hello. I'm in the middle of creating a report that requires some report controls to be rotated. I see in the Telerik Reporting Tutorial that control rotation is available by a property called Angle, and is directly editable in the designer indicated by 'small curved lines around each corner.' I'm using Telerik Reporting Q3 2012 release, and I see no angle property or small curved lines. Any ideas?
Atlas
Top achievements
Rank 1
 answered on 15 Mar 2013
1 answer
112 views
We are upgrading a project and moved .net version to 4.0 from 2.0.  Project is working fine, except that the reportviewer only displays many instances of "Submit Query" instead of the reportview toolbar, and the report does not run.

Any ideas how to get around it?  Windows server 2008.  Telerik.ReportViewer.WebForms  7.0.13.220, Asp.Net 4.0 app pool

Peter
Telerik team
 answered on 15 Mar 2013
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?