Telerik Forums
Reporting Forum
5 answers
197 views

Hi

when i resize the broswer,some vertical gaps appear.do resizing more times ,the gap will be larger more and more.you can check the attached files.

snap1 is the original status,just loaded.everything is ok. then click the query button to retieve data.it's ok.then drag the broswer's border to enlarge the size,the gap appeared.see the snap2.if i click the query button again,the gap disappeared .

 

i noticed that if i didn't click the query button,it' ok when changing the browser's size.it just occured after processing the retrieve action.

how to resolve this problem?

thanks!

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="ReportBase.master.cs" 
    Inherits="Rp.UI.Common.ReportBase" %> 
 
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=4.0.10.423, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" 
    Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %> 
<%@ Register Src="ReportViewer.ascx" TagName="ReportViewer" TagPrefix="uc1" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
    <style> 
        html, body, form  
        {  
            height: 100%;  
            margin: 0;  
            padding: 0;  
            overflow: hidden;  
        }  
        .Report  
        {  
            margin: 0;  
            padding: 0;  
            vertical-align: top;  
        }  
    </style> 
    <asp:ContentPlaceHolder ID="head" runat="server">  
    </asp:ContentPlaceHolder> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    </telerik:RadAjaxManager> 
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="Default, Textbox, Label" /> 
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Sitefinity">  
    </telerik:RadSkinManager> 
    <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Horizontal" BorderSize="0" 
        BorderStyle="None" Height="100%" Width="100%">  
        <telerik:RadPane ID="RadPaneTop" runat="server" Scrolling="None" Width="100%">  
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">  
            </asp:ContentPlaceHolder> 
        </telerik:RadPane> 
        <telerik:RadPane ID="ReportPane" runat="server" OnClientResized="resizeViewer" Scrolling="None" 
            CssClass="Report">  
            <telerik:ReportViewer ID="ReportViewer" runat="server" DocumentMapVisible="False" 
                ProgressText="正在获取数据..." ParametersAreaVisible="False" ShowParametersButton="false" 
                ShowZoomSelect="True" Height="100%" Width="100%">  
                <Resources ExportButtonText="导出" ExportSelectFormatText="选择输出格式..." ProcessingReportMessage="正在获取数据..." /> 
            </telerik:ReportViewer> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
    <telerik:RadCodeBlock runat="server">  
 
        <script type="text/javascript" language="javascript">  
 
         function resizeViewer()  
        {            
           <%=ReportViewer.ClientID %>.AdjustReportAreaHeight();  
        }  
 
        function closeLink()  
        {  
            parent.closeActiveTab();  
        }  
        </script> 
 
    </telerik:RadCodeBlock> 
    </form> 
</body> 
</html> 
 
<%@ Page Title="" Language="C#" MasterPageFile="~/Common/ReportBase.Master" AutoEventWireup="true" 
    CodeBehind="ListAll.aspx.cs" Inherits="Rp.UI.ReportCenter.SalesOrder.ListAll" %> 
 
<%@ MasterType VirtualPath="~/Common/ReportBase.Master" %> 
<asp:Content ID="ContentHeader" ContentPlaceHolderID="head" runat="server">  
 
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">  
    <div id="Top" style="width: 100%; height: 26px;font-size:10pt;">  
        <div style="float: left">  
            <div style="float: left; margin-top:5px;">  
                <asp:Label ID="Label1" runat="server" Text="选择查询方式:" ></asp:Label> 
            </div> 
            <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal" 
                Width="148px">  
                <asp:ListItem Value="All">汇总</asp:ListItem> 
                <asp:ListItem Selected="True" Value="Part">分大区</asp:ListItem> 
            </asp:RadioButtonList> 
        </div> 
        <div style="float: right;">  
            <asp:Button ID="btnQuery" runat="server" Text="查  询" onclick="btnQuery_Click" /> 
            <input id="Button1" type="button" value="关  闭" onclick="closeLink()" /> 
        </div> 
    </div> 
</asp:Content> 
 
xie yufei
Top achievements
Rank 1
 answered on 17 Jun 2010
0 answers
79 views
Hello everyone,

I need to vertically center an image (that is being generated in run time), with cell that contains it. This cell's height increases as other cells increased by their contents. Initially i centered vertically. But as its height increases it remains at same position as set on while designing. Does anybody have idea how to solve this?

Please have a look at attached image that explains it better.

Hope I will have a better solution.

Regards
$hekh@r d-Ziner

$hekh@r d-Ziner
Top achievements
Rank 2
 asked on 17 Jun 2010
0 answers
91 views
Hi,


I am facing printing problem in server.I wrote this code
 System.Drawing.Printing.PrinterSettings printerSettings = new System.Drawing.Printing.PrinterSettings(); 
                System.Drawing.Printing.PrintController standardPrintController = new System.Drawing.Printing.StandardPrintController(); 
                 
                Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor(); 
                reportProcessor.PrintController = standardPrintController; 
                reportProcessor.PrintReport(report, printerSettings); 
this code working in local system like developer system printing is good.But it's not working on MY server please it's very argent how to solve this problem.

thanks and regards
shanker.B

shanker bangari
Top achievements
Rank 1
 asked on 17 Jun 2010
1 answer
392 views
I'm sure this is an easy fix...but it has defeated me so far.

I am trying to set the text in a textbox dynamically at runtime according to what the current datarow items contain. I have been trying to create a simple test to get the syntax worked out but have been having no luck. I have been unable to locate the answer in the forums either.

My report consists of a main report which contains a sub-report. The sub-report is where the tbtest textbox is located. I am using SQL Datasources for both the main and sub reports.

The following code is located in the sub-report codebehind (VB):
    Private Sub detail_ItemDataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles detail.ItemDataBound 
        'Get the detail section object from sender 
        Dim section As Telerik.Reporting.Processing.DetailSection = DirectCast(sender, Telerik.Reporting.Processing.DetailSection) 
        'From the section object get the current DataRow 
        Dim row As System.Data.DataRow = DirectCast(section.DataObject.RawData, System.Data.DataRow) 
        If (row("Hospital") <> Nothing) AndAlso (row("Surgeon") <> Nothing) Then 
            Dim testTextbox As Telerik.Reporting.Processing.TextBox = DirectCast(section.ChildElements.Find("tbtest", True)(0), Telerik.Reporting.Processing.TextBox) 
            testTextbox.Value = "Hospital and Surgeon exist" 
        End If 
 
    End Sub 
 

When I try to run the report I get the following error:
An error has occured while processing DetailSection 'detail':
Unable to cast object of type 'DataObject' to type 'System.Data.DataRow'.


Any help would be appreciated. Thanks.
GlenB
Top achievements
Rank 1
 answered on 17 Jun 2010
0 answers
103 views
We currently use barcode format FREE3OF9 but it doesn't look like that is avalible in the Telerik barcode control.  Is there away to add that to the control if I have Font file?
Robert Canal
Top achievements
Rank 1
 asked on 16 Jun 2010
1 answer
119 views
Hi,
I am new to the tool, and need some help.

My application environment is ASP.NET 2.0 for a website.

Adding files to the bin folder:
- I have placed 3 dlls in the folder (Telerik.Reporting.dll, Telerik.ReportViewer.WebForms.dll, and LandWatchReport.dll
- The last listed file is generated in the bin of the class project that produced a report that I could run on the local machine.

Creating References
- Question: While I can create a reference to the LandWatchReport.dll, I am unable to Add Reference to the Telerik dlls - the add dialogue works, they just don't show up being added. Is this a problem?
- Question: The support website shows a References Node in the Visual Studio instance.  I do not know how to reveal the References Node in the Solution Explorer.

Creating Initial Report View
- I created a new web form and inserted the report viewer object.
- Now, it is unclear how I point the report viewer to the dll associated with the LandWatchReport.dll.
- It is unclear how I make reference to a report name within that dll.  (it make reference to identifying assemblies, but I don't have assemblies)

I will have more questions, but hopefully someone can indulge me on these rather basic topics to get going.

Thanks.





Steve
Telerik team
 answered on 16 Jun 2010
4 answers
268 views
Hi Telerik Team,

Is there any possibility to convert a web page to PDF using Reporting tools?

Thanks in advance

Steve
Telerik team
 answered on 16 Jun 2010
2 answers
143 views
Hi all,

I have a report with an objectdatasource bound to its datasource. I know the type of the object used into this objectdatasource. I would like to get this object from the report's code behind to execute some tasks but I can't find it anywhere nor how to do this.

Can you please help me ?

Thanks
Regards,

Steeve
LE DREAU Steeve
Top achievements
Rank 1
 answered on 16 Jun 2010
0 answers
116 views
Hi,


I am facing printing problem in server.I wrote this code 

using (System.Windows.Forms.PrintDialog printDlg = new System.Windows.Forms.PrintDialog()) 
printDlg.AllowSomePages = true
printDlg.AllowCurrentPage = false
printDlg.UseEXDialog = true
 
if (System.Windows.Forms.DialogResult.OK == printDlg.ShowDialog()) 
Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor(); 
reportProcessor.PrintReport(report, printDlg.PrinterSettings); 

this code working in local system like developer system, printing is good.But it's not working on server please it's very argent how to solve this problem.

thanks and regards
shanker.B
shanker bangari
Top achievements
Rank 1
 asked on 16 Jun 2010
1 answer
122 views
I'm just learning Telerik and am fairly new with C# and VS as well, so my apologizes for how simple a question this must be.

I have two tables: Order_Header and Order_Details.  Every order has a single entry in Order_Header and multiple entries in Order_Details (one for each product purchased).  

Order_Header: [OrderID], [OrderDate], [OrderNumber], [Taxes], [ShippingCost], [OrderTotal], [GST], [PST], [HST]
Order_Details: [DetailID], [OrderID] (ref Order_header), [ProductID], [Quantity], [SellingPrice]

My report is grouped by [Order_Header].[OrderNumber] (unique to each individual order).  
The Group Header shows [Order_Header].[OrderNumber], [Order_Header].[ShippingCost], .[GST], .[PST], .[HST]
The report details shows [Order_Details].[ProductID], [Order_Details].[Quantity], [Order_Details].[SellingPrice]
Ideally the report footer will summarize Quantity, Selling Price, ShippingCost, GST, PST, HST

My challenge is this: If i do SUM(ShippingCost) in the report footer, it sums it once per every item in Order_Details, rather than once per Order_Header.  Is there a solution to this?  Sum by group or somesuch?  I'm also not above accumulating a variable in the codebehind if someone is kind enough to explain how.

Thanks!

P.S. Windows 7, Visual Studio 2008, Telerik Reporting Q1 2010, and Chrome/Firefox/Opera/Safari/IE for browser

Peter
Telerik team
 answered on 15 Jun 2010
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?