Telerik Forums
Reporting Forum
6 answers
218 views
Hello,

We just upgraded to Telerik Reporting Q1 2011 (5.0.11.316) from Telerik Reporting Q1 2010 (4.0.10.317) and are experiencing some issues with the Web ReportViewer's export and print buttons using IE8 (Chrome and Firefox work flawlessly).

I've installed the latest version of Adobe Reader (10.0.1) as well as added the site as a trusted site.

We have 3 dlls in our bin directory: Telerik.Reporting.dll, Telerik.Reporting.Service.dll and Telerik.ReportViewer.WebForms.dll.

After clicking the Print button it seems the page attempts to load the print dialog and I see the loading (green) bar along the bottom but nothing ever happens.  No Adobe Print Dialog or default print dialog.  That's the first issue.

Our second issue has to do with using the export functionality.  Regardless of what export option we choose we always get this error after the page attempts to serve the file:  

"Unable to download Telerik.ReportViewer.axd from www.oursite.com.  Unable to open this Internet site.  The requested site is either unavailable or cannot be found.  Please try again later."

I've searched the forums looking for a solution but haven't been able to find any solutions.

I'm thinking we're missing the boat on something.  Any ideas?  I've attached a screenshot of the export error for your viewing pleasure.

Let me know if you need any other information.

Thanks,
Allen
Travis
Top achievements
Rank 1
 answered on 05 Dec 2012
1 answer
209 views
I am trying to follow an example and set the report background image via a report parameter.  I have set the Style.BackgroundImage.ImageData to = GetPageBackgroundImage(Parameters.MangedByPartnerId.Value).

When I run the report I get the error:
An error has occurred while processing Report 'Invoice'.  The expresssion contains undefined function call GetPageBackgroundImage()

If I hard code a 1 or 0 in the binding call it works, it only breaks when I attempt to reference the report parameter.
Public Shared Function GetPageBackgroundImage(managedByPartnerId As Integer)
    If managedByPartnerId = 1 Then
      Return Bitmap.FromFile("P:\Billing Systems\BESTPASS AM\Invoice Templates\Current\DW Page Invoice.png")
    Else
      Return Bitmap.FromFile("P:\Billing Systems\BESTPASS AM\Invoice Templates\Current\Page Invoice.png")
    End If
  End Function
Peter
Telerik team
 answered on 05 Dec 2012
1 answer
59 views
I am pulling out a group of Crystal Reports (no more version madness!) and rewriting them with Telerik and need help to replace some functionality.  The application runs on a walk-up kiosk.  The reports work as follows - enter a customer number, select a report.  The report is dropped into a report viewer and a print dialog pops up.  A timer is set and after a minute the report viewer is cleared off, so the next walk-up customer doesn't see the activity of the previous customer.  Crystal runs synchronously, so a flag is set before the report prints and turned off after the report prints.  Telerik runs asynchronously - so do we know when the report has completed?  The existing code blanks out the report in the report viewer, because just because the command to produce the report has issued doesn't mean it has actually has.
Elian
Telerik team
 answered on 05 Dec 2012
2 answers
164 views

I have a picture box in my report. The images are dynamically generated based on the content of a query string. The problem I have is that I receive an access denied error message whenever I use a relative URL path (ie "~/test/generateimage.aspx?font=2&text=ouncil Agenda&size=58&style=regular").

When I use an absolute path (ie "http://localhost:53657/test/generateimage.aspx?font=2&text=ouncil Agenda&size=58&style=regular") it works with no problem.

(this works)
pictDocType.Value = "http://localhost:53657/test/generateimage.aspx?font=2&text=ouncil Agenda&size=58&style=regular"

(this does not work)
pictDocType.Value = "~/test/generateimage.aspx?font=2&text=ouncil Agenda&size=58&style=regular"
pictDocType.Value = "/test/generateimage.aspx?font=2&text=ouncil Agenda&size=58&style=regular"
pictDocType.Value = "../test/generateimage.aspx?font=2&text=ouncil Agenda&size=58&style=regular"

I want to be able to use relative paths when calling the images. Any help would be appreciated.

 

 

Hadib Ahmabi
Top achievements
Rank 1
 answered on 05 Dec 2012
1 answer
101 views
I just converted my Telerik reports to Q3 2012 and they all work except for two reports that have subreports.  The NeedDataSource event is not firing for the subreports.  Here is the code.  What am I doing wrong?  Thanks.
My report .aspx:
 
CPR_Reports.SalesActivityReport report1 = new CPR_Reports.SalesActivityReport(myConnectionstring, Convert.ToInt32(Session["pk"].ToString()), Convert.ToInt32(Session["cpruser_no"].ToString()), fromdate, todate);
InstanceReportSource instanceReportSource = new InstanceReportSource();
instanceReportSource.ReportDocument = report1;
this.ReportViewer1.ReportSource = instanceReportSource;
 
My report class:
 
public partial class SalesActivityReport : Telerik.Reporting.Report
{
    public SalesActivityReport(string myConnectionstring, int cfkwebuser, int cfkpnnames, string fromdate, string todate)
        {
            localConnectionstring = myConnectionstring;
            localCfkWebUser = cfkwebuser;
            localCfkPnnames = cfkpnnames;
            localFromDate = fromdate;
            localToDate = todate;
 
        InitializeComponent(reportHeaderBgColor, reportHeaderTextColor);
         
        SalesActivitySub1 salesActivitySub1 = new SalesActivitySub1();
            SubReport subReport1 = new Telerik.Reporting.SubReport();
            Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
            instanceReportSource.ReportDocument = salesActivitySub1;
            subReport1.ReportSource = instanceReportSource;
            subReport1.NeedDataSource += new EventHandler(subReport1_NeedDataSource);
 
    private void subReport1_NeedDataSource(object sender, EventArgs e)
        {
            EventLogger log1 = new EventLogger();
 
            string commandText = @"exec wa_SalesActivityCallsLogged2 " + localCfkPnnames + ",'" + localFromDate + "','" + localToDate + " 23:59:59'";
 
            try
            {
                SqlConnection sqlConnection1 = new SqlConnection();
                SqlCommand sqlSelectCommand1 = new SqlCommand();
                SqlDataAdapter sqlDataAdapter1 = new SqlDataAdapter();
                sqlConnection1.ConnectionString = localConnectionstring;
                sqlSelectCommand1.CommandText = commandText;
                sqlSelectCommand1.Connection = sqlConnection1;
                sqlDataAdapter1.SelectCommand = sqlSelectCommand1;
            this.DataSource = sqlDataAdapter1;
            }
            catch (Exception ex)
            {
                log1.WriteError(ex);
            }
            finally
            {
                log1.Dispose();
            }
        }
}
Dan
Top achievements
Rank 2
 answered on 05 Dec 2012
1 answer
280 views
Hello,
I have developed one report using Telerik reporting and I am getting some trouble in that. Please review this screenshot.
It shows image of my report, my problem is I ma getting extra spaces between Report header and Report detail part. So please any one can help me in how to remove that extra space?

Also I am getting my report footer very bottom of the page I want that after detailed section gets complete.

Please help me in both issues.


Thanks,
Anvesh
Elliott
Top achievements
Rank 2
 answered on 05 Dec 2012
11 answers
837 views
Hi, I have seen several posts on this and I cannot seem to solve this problem after trying what I found in those posts. I have Reporting installed on my VS 2008 system (running XP) and I successfully created my report and now want to add it to my webapp. I read that I must add the Report Viewer and that it can be found in the VS Toolbox. I have a Radcontrols for ASP.Net section in toolbox but nothing called Reportviewer. I have a Reporting section in my toolbox but nothing Telerik-related. I looked in the General section and also the Standard section of the toolbox to no avail.
I have uninstalled Reports and reinstalled Reports (with VS 2008 NOT running) and still do not see the Reportview control. I have reset the Toolbox and this did not change anything.

My VS menu bar has a Telerik menu item which has a Reporting item that only points to an UpgradeWizard utility.

thanks for your help.
Steve
Telerik team
 answered on 05 Dec 2012
0 answers
61 views
HI i want to move controls on webpage of telerik reporting tools. So when page loaded we can drag and drop the control.
Like DragPanel handler in AJAX.

Is this possible in Telerik Reporting Controls???  
Sam
Top achievements
Rank 1
 asked on 05 Dec 2012
1 answer
102 views
I tried to add a reference to the Report Viewer assembly for WPF and I got the error that you see in the attachment. For your description on your web site I understand that it is only the designer that requires .NET 4 and not the viewer.
What's happening!?
Steve
Telerik team
 answered on 05 Dec 2012
1 answer
270 views
Hello

I'm looking for a solution to modify the company logo size on the report (pdf format) according to the page number it is on.

On first page it should be bigger than the rest of the pages.

Is that in any way possible?

Thanks
Roland
Peter
Telerik team
 answered on 04 Dec 2012
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?