Telerik Forums
Reporting Forum
1 answer
419 views

Hai 
     
When I was takeing Data as below Report Showing output  Data.  

public
static List<Job> GetData(int ab)

{
}

but when  I was takeing data as below

 

public async static Task<List<Job>> GetData(int ab)
{
}

it was showing Error    The expression contains object 'JobName' that is not defined in the current context.



Is Telerik Reports support async methods ?

 

 

 

 

IvanY
Telerik team
 answered on 27 Mar 2013
1 answer
149 views
I have a number of reports (in asp.net).  Some of the reports construct the datasource manually in the NeedDataSource event.  I recently upgraded from Q2 2011 to Q3 2013.  Now when I run a report and select parameters, the report parameters' values do not reflect the choices selected. (they are either the initial value of the parameter, or NULL if there was no initial value) 

I am getting the parameter values via:  this.ReportParamaters["paramName"].Value.

What has changed in this area since Q2 2011, and what can I do to access the parameters in the NeedDataSource event?

Thanks,
Justin

Justin Lee
Top achievements
Rank 1
 answered on 27 Mar 2013
4 answers
144 views
I have a column, "Last File", that has a name and a hyperlink to the file on a server. 

On Excel export the file opens, e.g. the hyperlink, \\intut\PTA\Uploads\12422.pdf opens the PDF. Just what I want. 

In the Telerik Report, when I click the hyperlink Internet Exporer opens and I get, "The page cannot be found ".  In the address area is "http://localhost/intutPTAUploads12422.pdf".  It seems to have added "http://localhost", "localhost" is the server, replaced "\\intut" with "/intut" and removed all the "\"s.

What do I need to do to get a hyperlink to a file to work?
David
Top achievements
Rank 1
 answered on 27 Mar 2013
0 answers
122 views
Never mind, figured it out...
Sangeet
Top achievements
Rank 1
 asked on 27 Mar 2013
1 answer
392 views
Is it possible to install multiple verisons of Reporting? Our release code branch uses one version (7.0.13.220) and our vNext branch uses another version (7.0.13.228).  This keeps me from using the designer in visual studio in one branch or another depending on what version of reporting I have installed.  Is there anyway to make this work?
IvanY
Telerik team
 answered on 27 Mar 2013
2 answers
166 views
Hi Telerik,

I am using reporting, Since upgrading to version 7.0.13.220 some of the export to PDF reports are looking terrible.

I have attached an example.

'Shape1
        '
        Me.Shape1.Location = New Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Pixel(0.0R), Telerik.Reporting.Drawing.Unit.Pixel(41.0390625R))
        Me.Shape1.Name = "Shape1"
        Me.Shape1.ShapeType = New Telerik.Reporting.Drawing.Shapes.PolygonShape(4, 45.0R, 0)
        Me.Shape1.Size = New Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Pixel(83.149604797363281R), Telerik.Reporting.Drawing.Unit.Pixel(83.0R))
        Me.Shape1.Style.BackgroundColor = System.Drawing.Color.FromArgb(CType(CType(154, Byte), Integer), CType(CType(180, Byte), Integer), CType(CType(198, Byte), Integer))
        Me.Shape1.Style.BorderColor.Default = System.Drawing.Color.White
        Me.Shape1.Style.BorderWidth.Default = Telerik.Reporting.Drawing.Unit.Pixel(0.0R)
        Me.Shape1.Style.Color = System.Drawing.Color.White
        Me.Shape1.Style.LineWidth = Telerik.Reporting.Drawing.Unit.Pixel(0.0R)
David
Top achievements
Rank 2
 answered on 27 Mar 2013
1 answer
6.4K+ views
Hi,
             I know that Zoom Mode and Zoom Percent are now obsolete and  only worked on IE but I am trying to find a way around this situation that I have.

I have a multi column report that has to be displayed in print preview mode so that the columns render correctly (known limitation of Web Viewer). The problem is that this is an A4 landscape report and my site has to have a fixed width that is less than the print preview width for the report. 

This means that the print preview has to be scrolled horizontally to view the whole report which is less than ideal.

Is there any way to fit the print preview to the viewer size?

Thanks

Chris
IvanY
Telerik team
 answered on 27 Mar 2013
1 answer
296 views
An error has occurred while processing PictureBox 'pictureBox1':
Invalid image data.
------------- InnerException -------------
Access to the path {Path} is denied.

***************

I am passing a datafield with the path for the image.  Sometimes the image path will be blank.  I don't want the error to displayed in the browser.  

For TRDX file, is there anyway to suppress this error.
IvanY
Telerik team
 answered on 27 Mar 2013
5 answers
653 views
I'm attempting to use the report viewer ASP.Net control in an ASP.Net MVC application. When I include the viewer control on a page I get the folwwoing error.


The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).


I'm using the simplest possible view to display the report viewer and which I copied from a Telerik sample that demonstrates how to use the report viewer in an ASP.Net MVC application (the sample does not run).

<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
 
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=6.0.12.302, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Reports
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Test Report</h2>
 
     <script runat="server">
         
        public override void VerifyRenderingInServerForm(Control control)
        {
            // to avoid the server form (<form runat="server">) requirement
        }
 
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
             
            // bind the report viewer
            ReportViewer1.Report = new Mine.Web.UI.Reports.HelloWorld();
        }
    </script>
    <telerik:ReportViewer runat="server" ID="ReportViewer1" />
</asp:Content>


The error is being caused by the line below in my Site.Master file. Removing that line allows the report viewer to display but breaks the application because now the stylesheets needed for the Telerik ASP.NEt MVC controls aren't being loaded.

<%: Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.Add("telerik.common.css").Add("telerik.metro.css").Combined(true).Compress(true)) %>

This seems like a really common scenario? Surely I'm not the first person to try and use the report viewer and the MVC extensions at the same time?

Vassil Petev
Telerik team
 answered on 26 Mar 2013
3 answers
255 views
Hi,
Pl's find the attachment. These are from your live demo. I want to repeat the first column to every report pages. This fields are marked with red rectangles on the attachment. On your demo its working properly. How to achieve this?. 


Thanks & Regards
Anzar.M
Peter
Telerik team
 answered on 26 Mar 2013
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?