Telerik Forums
Reporting Forum
1 answer
80 views
Dear Telerik team !
Telerik has made complete report. but I do not know how to load the report from reporviewer  in  page aspx.
I attach for your project and help me see.

http://www.mediafire.com/file/q1ggnyj2y2y/Telerik Report.rar 

Sincerely..
Steve
Telerik team
 answered on 21 Jun 2010
3 answers
161 views
I'm using the reportviewer (Windows 2000, Vista, Windows7) on a radform to display images in multiple pictureboxes and general text.  The users have complained that if they choose a different page size when printing the report the images are distorted proportionally to the page size.  An image appearing normal in 8.5x11 will appear stretched in 8.5x14.  I have experimented with printing, and found that no matter what options are chosen in the printer settings, or preferences, this will occur.  I have tried choosing "Actual Size" and unchecking "Scale to Fit" without success.  Is there a property in the reportviewer or elsewhere that will prevent the images from distorting if a different page size is chosen?  Thanks.

 
Steve
Telerik team
 answered on 21 Jun 2010
1 answer
88 views
Hi,

Forgive me if this has already been answered in this forum already.  I could not find it.

Is it possible to know if the environment is in report preview mode versus actually running a report?

I'd like to do something like this in the report class, derived from Telerik.Reporting.Report:

....
if ( InReportDesignPreviewMode )
{

    this

 

.DataSource = MyBusinessClass.LoadTestData();
}
else
{
    this.DataSource = MyBusinessClass.LoadRealData();
}
...

I did try this.DebugMode() and it didn't behave as I thought it would.

Thanks for your input on this matter.

Michael

Steve
Telerik team
 answered on 21 Jun 2010
1 answer
84 views

Good morning,

We have a problem that we cannot resolve watching the documentation.

After we created a report using wizard, we tried to impost specified parameters, but we do not managed to make them independents between them. For example  we do not succeed to execute a research for only one of the indicated parameters also having insert NULL  provision and finally we have some trouble to apply filters from a master to a subreport.

We would like to ask you a help to resolve these problems.

Thank you so much.

We look forward to your answer,

Yours faithfully.

Peter
Telerik team
 answered on 18 Jun 2010
1 answer
252 views
I am trying to retrieve a single character from a parameter in a WInforms report for a conditional formatting rule.  The expression is: = SubStr(Parameters.Weekends.Value,1,1).  I get "The expression contains undefined function call SubStr".  What am i missing?

TIA
Barry Tarr
Peter
Telerik team
 answered on 18 Jun 2010
2 answers
257 views
Hello,

I have searched lot of documentation and fourm. I was not able to find answer to my question.

Q1 : I am generating Tables dyanamically on Telerik Report. So how would i position these tables one after each other and close to page margins?

Q2 : I want to aggregate any column at the bottom of my table. so how should i do Sum of a partular column and then if i want to further process that table like Goal - Actual = Differance scenario.

I hope i made it clear regarding second quetion.

Thanks.
Chintan Shah
Top achievements
Rank 2
 answered on 18 Jun 2010
1 answer
77 views

I have a richtextbox in Silverlight and I save the content as xaml in the database.

When I use it,  I convert the filed to html and use it in Telerik reporting as a htmltextbox.

The problem is when using WriteEndElement it create the endtag as />, If there is no content.

When I binding the htmlfield to htmltextbox,  it ignore the endtags and it creates the endtags last in the text.

Below, see the content of the htmltextbox. It ignore the red text, entags,  and I missed the text “Head”.

Is this a fault?

 

<div><p STYLE="font-size:12;font-family:Verdana;color:#000000;font-weight:normal;font-style:normal;text-align:Left;"><span STYLE="font-size:14;font-weight:bold;">Head</span></p><p STYLE="font-size:12;font-family:Verdana;color:#000000;font-weight:normal;font-style:normal;text-align:Left;"><span STYLE="font-weight:bold;" /></p><p STYLE="font-size:12;font-family:Verdana;color:#000000;font-weight:normal;font-style:normal;text-align:Left;"><span STYLE="font-weight:normal;">Hello.</span></p><p STYLE="font-size:12;font-family:Verdana;color:#000000;font-weight:normal;font-style:normal;text-align:Left;"><span STYLE="font-weight:normal;" /></p><p STYLE="font-size:12;font-family:Verdana;color:#000000;font-weight:normal;font-style:normal;text-align:Left;"><span STYLE="font-weight:normal;">Hello two.</span></p></div>

 

I also have another question. Will it come a RichTextBox in Telerik reporting?

 

/Fredrik

Steve
Telerik team
 answered on 17 Jun 2010
5 answers
188 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
70 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
86 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
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?