Telerik Forums
Reporting Forum
5 answers
1.2K+ 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
331 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
269 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
510 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
542 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
66 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
507 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.8K+ 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
104 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
2 answers
202 views
I am running across a situation where I have the need to display a SubReport or not depending on if the data source contains any items.  That part is no problem, I can set the visibility of the SubReport to false if the data source contains no items.  However, the SubReport is in a Group Footer section, and even if I set the SubReport visibility to false, the group footer still allows the room for it, so I end up with an extra page with page header/footer.

I then try to set the visibility of the Group Footer section based on the same logic as the SubReport visibility, and that seems to work, except that it applies the same visibility to ALL group footers.  So say I have 5 groups, and only 1 of them needs to display the SubReport, it will set the visibility of the Group Footer to true for ALL 5 groups, rather than just the individual group that should display the SubReport.

The only solution I have found so far, is to programmatically set the Height property of the Group Footer section to 0, which works for the most part, as the section will grow to make room for the SubReport that needs to be displayed.  However, the SubReport is a dynamic height, and I need to force it to 7.65in.  I tried programmatically settings the Group Footer height to 7.65in when the SubReport needs to be displayed, but I get the same issue, where it sets the height to 7.65 for ALL groups instead of just the one.

How would I go about forcing the Height of the SubReport, in order for the Group Footer to size itself accordingly?  I do not see a Height property of the SubReport.  I think that the answer is just to set the height of the SubReport, that way it will be per group, rather than for the whole report, but I am just not finding the Height property.  Thanks.

Brian Williams
Brian
Top achievements
Rank 1
 answered on 14 Apr 2014
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?