Telerik Forums
Reporting Forum
5 answers
162 views
Guys,
This is a breaking change and I haven't yet figured out why it is happening to my project when I am upgrading to Q1 2014.
The xaml code is -
             xmlns:tr="http://schemas.telerik.com/wpf"

        <tr:ReportViewer x:Name="reportViewer" HorizontalAlignment="Stretch" Margin="10"
                         ReportSource="{Binding ReportSource}">
            <telerikControls:StyleManager.Theme>
                <telerikControls:Windows7Theme />
            </telerikControls:StyleManager.Theme>
        </tr:ReportViewer>

Application breaks in execution with message -
'The invocation of the constructor on type 'Telerik.ReportViewer.Wpf.ReportViewer' that matches the specified binding constraints threw an exception.' Line number '34' and line position '10'

I am referencing to following dlls in the project :
1. Telerik.reporting - v4.0.30319
2. Telerik.ReportViewer.Wpf - v4.0.30319
3. Telerik.Windows.Controls - v4.0.30319
Stef
Telerik team
 answered on 16 Apr 2014
5 answers
1.3K+ views
Hi All,

I have report with a picturebox:

Size = 2in, 0.76in
Anchor = Right, Top
Sizing = ScaleProportional

I would like to have the content of the picture box aligned to the right side. Is there any way how to do that? 

In more detail:
The value of the image is set in the code based on the current customer logo. Each customer has different proportion of their logos. The size of the PictureBox is the maximum size the logo could occupy on the report. I want to have the logo as big as possible (but not more then the maximum size) and be aligned to the right side of the report.

Thank you!

Pavel
Joel
Top achievements
Rank 2
 answered on 16 Apr 2014
12 answers
381 views
Should i be able to use multipe subreports in a report ?

i have a reports on a DataSet created from an XML file. The main report is on table A. The first subreport is on table B. I created a second subreport and set its datasource to table C but it always shows the data from table B

i am using the NeedDataSource event in the main report to load the xml file and set the datasource of the main report to its table

i am also using the NeedDataSource event for each subreport to set their datasources.

no matter what i do the second subreport always shows the same data as the first subreport

is it not possible to have multiple subreports ?

thanks

Mike


PAGCA
Top achievements
Rank 1
 answered on 15 Apr 2014
3 answers
320 views
Hi,

I have a simple case scenario where I programatically export my report to various file format then email our report to our customer.
Now it happens that those reports contains no data and in this case we want to send a proper email informing them that their report contains no data (which is good usually because we send alerts report :) )

anyway, it sounds like a simple enough scenario though I couldn't yet place my hand onto it ...

code looks like this:
RenderingResult result = reportProcessor.RenderReport(exportFormat, telerikReport, null);
 if (result.HasErrors)
wish I could say if error == "No data" then ...else ...

any help / suggestion?
Regards
Jim
PS: version used Q1 2011 SP1 (5.0.11.510)...I know time to upgrade right ;)
Peter
Telerik team
 answered on 15 Apr 2014
5 answers
550 views
Using Reporting Q1 2013. I have a HTMLTextbox inside a data bound table column. When report runs, the HTML content shows up fine but text appears to be trimmed because it's not automatically wrapping. See the attached screen shot.

HTMLTextbox has 'CanGrow = True' and 'CanShrink = False'.

Appreciate your help.
Stef
Telerik team
 answered on 15 Apr 2014
4 answers
578 views
Hi,

Does Telerik Reporting support this feature? For example I have a report shows
all orders for a customer as following format
Order #, Item #, Price, Qty, Amount.
Most orders contains more than one item, can we just print the forst order # and leave the rest order # blank? I know we can create a group base on order #, and put the order # into the group header, but that will occupy an extra row (the group header) and the right side does not have anything to print.

Thanks in advance
-phelix
Nasko
Telerik team
 answered on 15 Apr 2014
1 answer
75 views
I have an object data source that looks a bit like

ThingData
    Location
    ThingName
    ThingId
    SummaryData (List)
           SummaryA
                Field
                Field
           SummaryB
                Field
etc.

I have grouped by 'ThingId' and I have added List to the detail section of the of the Report. The List DataSource is set to SummaryData.

In the List I can use SummaryA and SummaryB fields, everything is fine.

In Print Preview (and Export) however, there is always a page break before each List, even though it could fit on the preceding page. It works fine in the standard view.

I searched this forum and found references to this being a bug due to be fixed, that post was in 2013. Looking at other options:

- Grouping: I don't think I can group unless I flatten my data

- SubReport: This would mean a SQL call for each SummaryData row, which I want to avoid

Anyone have any suggestions? Thanks.



Nasko
Telerik team
 answered on 15 Apr 2014
3 answers
575 views
My Report.aspx page contains a ReportViewer control, and I set the TypeName & ReportSource during the ReportViewer1.Load method.

For all reports I try, some of my toolbar buttons are disabled (e.g. Previous Page, Next Page, Last Page) and what's more is the "First Page" button when clicked seems to act as the print button!

Also, the current page is always "0". See attachment.

Below is my markup/code for the Report.aspx page.
Private Sub ReportViewer1_Load(sender As Object, e As System.EventArgs) Handles ReportViewer1.Load
     
                'set report type
                Private repDataSource As New Telerik.Reporting.TypeReportSource
                repDataSource.TypeName = "XXX.Case_Report, XXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b10c045d816b947a"
                ReportViewer1.ReportSource = repDataSource
 
 
         
End Sub
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Report.aspx.vb" Inherits="xxx.Report" %>
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=7.0.13.426, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <style type="text/css">
         /* max height */
            html, body, form 
            
                height: 100%; 
                margin: 0px; 
                padding: 0px; 
                background-color:White
            
             
    </style>
    <title></title>
</head>
<body style="padding:0;margin:0">
    <form id="form1" runat="server">
     
        <telerik:ReportViewer ID="ReportViewer1"  runat="server" Width=100%
            Height="700px" ShowDocumentMapButton="False" ShowHistoryButtons="False"
            ShowNavigationGroup="true" ShowParametersButton="true"
            ShowPrintPreviewButton="False" ToolbarVisible=true  ></telerik:ReportViewer
     
    </form>
</body>
</html>
 

Stef
Telerik team
 answered on 15 Apr 2014
3 answers
1.9K+ views
Hey guys, I was wondering if there is a expression to round to a certain decimal point(EG. 11.9789 -> $11.98). I know with SQL reporting there is a Round(number,2) which solved this problem. 

Any help would be appreciated. Thanks
Stef
Telerik team
 answered on 15 Apr 2014
2 answers
121 views
Hi,

I'm having an issue with a clients environment where we are trying to upgrade SharePoint 2010 to sp2 and during the process the web.config on all sites are having the Telerik.reportviewer.axd key added multiple times.

Are you able to assist. Please see attached image
Johnathon
Top achievements
Rank 1
 answered on 15 Apr 2014
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?