Telerik Forums
Reporting Forum
2 answers
270 views
Hello,

I want to set page header height by binding on my report.
I tryed to use a help function as below:

 

 

        Public Shared Function GetHeaderPageHeight(pageNumber As Integer) As Telerik.Reporting.Drawing.Unit
            If pageNumber = 1 Then
                Return New Unit(10, Telerik.Reporting.Drawing.UnitType.Cm)
            Else
                Return New Unit(20, Telerik.Reporting.Drawing.UnitType.Cm)
            End If
        End Function

 
On binding dialog I set the property Height as my help function, but isn't work.
Please, tell me what I do wrong.

Thanks a lot, excuse my bad english.



Elian
Telerik team
 answered on 06 Mar 2012
0 answers
179 views
Hai !

   I am creating new Report dynamically in ClassLibrary.I have Serialized the Report in XML format .I have no Idea  for how to display the report after deserialization in reportVIewer?


Serialization code:
 
 private void button1_Click(object sender, EventArgs e)
        {
            ForSerialization report = new ForSerialization();
            using (System.Xml.XmlWriter xmlWriter = System.Xml.XmlWriter.Create("c:/tmp/SerializedReport.xml"))
            {
                System.Xml.Serialization.XmlSerializer xmlSerializer = new System.Xml.Serialization.XmlSerializer(typeof(Telerik.Reporting.Report));
 
                xmlSerializer.Serialize(xmlWriter, report);
            }
        }
 
 
 
 
 
 
 
deserialization:
 
  private void button2_Click(object sender, EventArgs e)
        {
 
            using (System.Xml.XmlReader xmlReader = System.Xml.XmlReader.Create("c:/tmp/SerializedReport.xml"))
            {
                System.Xml.Serialization.XmlSerializer xmlSerializer = new System.Xml.Serialization.XmlSerializer(typeof(Telerik.Reporting.Report));
 
                Telerik.Reporting.Report report = (Telerik.Reporting.Report)xmlSerializer.Deserialize(xmlReader);
                 
              
            }
gowthami
Top achievements
Rank 1
 asked on 06 Mar 2012
3 answers
117 views
One of our users is reporting that when they select the export option (pdf, excel etc) the link for "Export" does not enable.  No one else has this problem.  Has anyone seen this, and do you have any idea how to resolve it?  Paging works fine for example.
Steve
Telerik team
 answered on 06 Mar 2012
1 answer
73 views
I have a nested List(three layers in total) where the detail list or the deepest layer just display all the rows in one page. How can I control the row size in each Page?

Please help

Thanks
Steve
Telerik team
 answered on 06 Mar 2012
1 answer
159 views
I am attempting to embed the telerik report viewer into an existing web application and am having problems with the report viewer not displaying correctly (see attachment toolbar.jpg).
I have done plenty of searching around the various forums and have come to the conclusion that the reason for the toolbar not being displayed correctly is because the page's HEAD tag does not contain runat="server".
Unfortunately, our web project requires that runat="server" cannot be set in the head (as other aspects of the application will fail). IS there a way to get the report viewer working in this way?
I have attached the HTML code for a test app which simulates this behaviour.
<head>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:ReportViewer ID="rptViewer" runat="server" SkinsPath="skins" Skin="orange">
        </telerik:ReportViewer>
    </div>
    </form>
</body>
</html>


Many thanks in advance

MIke
 
Chris Gillies
Top achievements
Rank 1
 answered on 06 Mar 2012
6 answers
353 views
Hello,

I try to programmically set  the default file name of my PDF report export but it doesn't work well. I read, on this forum, I have to set the DocumentName of the Report. But it doesn't work. When the dialog box appeared after selecting "Acrobat (PDF) File" in the toolbox of the report viewer, the file name is empty.
I try to set the default file name in the designer, in the constructor, in the OnRenderBegin method, but the file name is still empty.

Is it a bug or I missed something ? I am using the ReportViewer in Silverlight 5 ( version : Telerik_Reporting_Q1_2012_v6_0_12_215) and I use a ReportService.svc file to generate the report.

Thank you for your help.

Gilles
Gilles
Top achievements
Rank 1
 answered on 05 Mar 2012
1 answer
348 views
Dear,

I have made a cross tab report which has drill down both in columns and rows. Now the problem is that when I export this report to pdf; some unnecessary blank pages are inserted in pdf. Also sometimes the column widths become extra long; longer than the design time column length. This behaviour is different with different no. of columns as i drill down on column wise. Sometimes there are blank pages and sometimes there are not. Please help me how to resolve this. I shall be greatful for your quick response.

Regards,
Tehseen
Steve
Telerik team
 answered on 05 Mar 2012
1 answer
170 views
Hi,

I've succesfully got a crosstab working where each row contains the date and number of log-on's for that date which is taken for a dataset containing a single table, e.g.
Date, LogOns
01/01/2012, 500
02/01/2012, 541
03,01,2012, 234



I'm now trying to expand this so that I now have an addition dataset which contains number of tables where each table contains a breakdown for each day
//Breakdown table for 01/01/2012
Time, Count
1am, 30
2am, 50
and so forth

//Breakdown table for 02/01/2012
Time, Count
1am, 90
2am, 10
and so forth

// same for Breakdown table for 03/01/2012

The problem I'm having is that all of my bar charts only use the first table in my new datasource rather than the chart in row 1 using the first table, chart in row 2 using the 2nd table and so forth.  Is there a way to automatically specify that each new row uses the next table in the datasource?  Or am i going to have to create the crosstab and all of its comments manually in code by iterting through each table and adding new rows each time?

many thanks,
Elian
Telerik team
 answered on 05 Mar 2012
1 answer
890 views
Hi,

I moved to a new machine, and all is well except for reporting. I have removed and re-added the DLLs and References to no avail. 
The installer for reporting ran fine. I am running Visual Studio 2008, .net Framework 3.5, and the web.config entries for reporting are 

 <system.webServer>

....

 <handlers>

 ....

      <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode,runtimeVersionv2.0" />

    </handlers>


This project worked on another machine fine, so I am guessing there is some subtle missing piece here. all other telerik products such as RadChart, grid, etc. work fine. Thanks.
Steve
Telerik team
 answered on 05 Mar 2012
4 answers
235 views
Dear All
I create Telerik application and when I publish it to the server I found this problem : 
 the web ReportViewer looks messed up no images no toolbar 
I try to make all the checks in the documentaion but it not work and it works in my pc but for server its not work 
Server is :
OS : windows server 2008 , IIS7
I attached the photo for error and that is the web.config settings :

 

<httpHandlers>
   <remove path="*.asmx" verb="*" />
   <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
   <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
   <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
   <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler" validate="false" />
   <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler" validate="false" />
   <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false" />
   <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler" validate="false" />
   <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" validate="false" />
   <add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=5.3.11.1222, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" validate="true" preCondition="integratedMode,runtimeVersionv2.0"/>
  
  
  
  </httpHandlers>
        <httpModules>
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <!--<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>-->
        </httpModules>
and that is the header for page  (Note I am useing masterpage) :
<%@ Register assembly="Telerik.ReportViewer.WebForms, Version=5.3.11.1222, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerik" %>
  
  
   
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
Mohamed
Top achievements
Rank 2
 answered on 05 Mar 2012
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?