Telerik Forums
Reporting Forum
1 answer
129 views
Hi I am thinking about picking up the Telerik Reporting component.  However I am using other third party WinForm controls (Dundas Graph and Mind Fusion Flowchart Control).  Am I able to use these controls within the Telerik Report?  I spoke with Mindfusion a while back and they noted that:

"you can use the Flowchart.NET image and SVG export features to create diagram images and embed them into any kind of reporting tool that has bitmap or SVG support. To create image or SVG files, use the Diagram.CreateImage method, or the SvgExporter class"

I have not worked with a reporting tool before and I am not sure how you incorporate existing Visual Studio controls or 3rd party controls into the ouput of the report.

Thanks
Steve
Telerik team
 answered on 25 Nov 2009
1 answer
241 views

Hi.  I just got my license to Telerik Reporting and am excited to use it in my website in place of the SQL Reporting Services that I have used to now.

My site generates numerous reports to be printed on the client computer.  I use a window.open script to popup a single ReportRendering.aspx page to which I send report ID and parameters (parameters in a Session variable).  The page uses Response methods to stream the rendered report from the SQL Reporting engine.  I would like to replicate this process using Telerik Reporting.  So I created a page 'reportpage.aspx' that is empty except for the following code behind:

 

public partial class reporting_reportpage : System.Web.UI.Page  
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
        Telerik.Reporting.Report MyReport = new Telerik.Reporting.Report();  
        MyReport = (Telerik.Reporting.Report)Session["taljacreport"];  
        ExportToPDF(MyReport);  
    }  
 
    void ExportToPDF(Telerik.Reporting.Report reportToExport)  
    {  
        ReportProcessor reportProcessor = new ReportProcessor();  
        RenderingResult result = reportProcessor.RenderReport("PDF", reportToExport, null);  
 
        Response.Clear();  
        Response.ContentType = result.MimeType;  
        Response.Cache.SetCacheability(HttpCacheability.Private);  
        Response.Expires = -1;  
        Response.Buffer = true;  
        Response.BinaryWrite(result.DocumentBytes);  
        Response.End();  
    }      
}  
 

 
On a test page, I put a RadWindow, a test buton, and a javascript function to open the RadWindow:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TelerikTestForm.aspx.cs" Inherits="TelerikTestForm" %> 
 
<!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>  
</head> 
<body> 
    <form id="form1" runat="server">  
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
 
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
            <script type="text/javascript">  
                function PopUpReport() {  
                    var wnd = window.radopen("reporting/reportpage.aspx", "rdwReport");  
                    return false;  
                }  
            </script> 
        </telerik:RadCodeBlock> 
          
        <div> 
            <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /> 
        </div> 
 
        <telerik:RadWindowManager ID="rwmReport" runat="server" > 
            <Windows> 
                    <telerik:RadWindow ID="rdwReport" runat="server" Width="850px" Height="1100px" Modal="true" VisibleStatusbar="False"   
                        Behaviors="Move,Close" Left="" NavigateUrl="" Top="" > 
                    </telerik:RadWindow> 
            </Windows> 
        </telerik:RadWindowManager> 
 
    </form> 
</body> 
</html> 
 

On the test page's code-behind, I put the following:

public partial class TelerikTestForm : System.Web.UI.Page   
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
    }  
 
    protected void Button1_Click(object sender, EventArgs e)  
    {  
        Report myreport = new userdirectory();  
        myreport = ReportMethods.AddReportParameters(myreport, null);  
        Session["taljacreport"] = myreport;  
//        ClientScript.RegisterClientScriptBlock(this.GetType(), "openreport", "var wnd=window.open('reporting/reportpage.aspx', '_blank', 'height=1100,width=850,directories=no,status=no,titlebar=no,toolbar=no,menubar=no,location=no');", true);  
//        ClientScript.RegisterClientScriptBlock(this.GetType(), "openreport", "var wnd = window.radopen('reporting/reportpage.aspx', 'rdwReport'); return false;", true);  
        ClientScript.RegisterClientScriptBlock(this.GetType(), "openreport", "PopUpReport()", true);  
    }  
}  
 

The 'ReportMethods.AddReportParameters() method is one I wrote to append parameters bot the report class by parsing a concatenated string (none are needed for this report).

Note that I have three lines of ScriptBlock execution for opening the rendering page in a browser popup or in the RadWindow.  The first, with the browser popup works, but neither of the last two do, either writing the radopen script directly (nothin happens) or via the script function (script object reference error on 'PopUpReport()'.  I imagine that this is just my poor understanding of scripting the RadWindow, but I am stuck.  I would really like to use the RadWindow since it is so good on all the browsers.  If anyone could shed some light on this for me, I would be grateful.  Thank you!

Thomas Stanley

Georgi Tunev
Telerik team
 answered on 25 Nov 2009
1 answer
123 views
Hi All,

I am using Mozilla 3.0.15 build,
Still i am facing word wrap problem in report display.
I have read in one of Telerik post word-wrap accept  from 3.0 FF version.




Is there any work around solution available with this issue?

Thank you in advanced.




Steve
Telerik team
 answered on 24 Nov 2009
1 answer
136 views
Hi:

I need to use different a Subreport datasource as the information comes from different tables in my database, but I want to do this using code and not through the wizard.

How can I do to accomplish this, or another option I suggest a package?

Thank you.
Steve
Telerik team
 answered on 24 Nov 2009
1 answer
113 views
Hi

Is it possible to chnage the chart skin at runtime?  I can't find a property for this in the Telerik.Reporting.Chart namespace (there is a Skin property in Telerik.Reporting.Charting.Chart but I cannot access this.

Thanks,

John
Steve
Telerik team
 answered on 24 Nov 2009
2 answers
563 views
Hi.  I see that there is not very straightforward support for using parameterized SQL queries in the DataSets created by the designer wizard.  I have watched the video 'Telerik Reporting - Design Time Support for Parameterized Queries' which shows how to use a sqldataadapter and send it the parameter value from a windows (or web) app.  But what about using the report parameter on the report as the SQL parameter?  What code do I need for this?  I would like to use such a report as a multiple instance subreport on a main report that I can set report parameters from the main -> sub.  Thanks for your help.
Steve
Telerik team
 answered on 24 Nov 2009
1 answer
64 views
Hi,

 While the exporting to PDF, if the width of the Chart more than the margin it is cut into parts. i would like to avoid this from happening. Is there any way to fit the image without breaking or cutting it into parts.

Thanks in advance for any help
Steve
Telerik team
 answered on 24 Nov 2009
1 answer
1.1K+ views
Hello All,

Is telerik reporting latest tool have feature to modify paper size (width/height) of exporting report to PDF file, generating using Code?
As in my requirement columns may be more to fit in general A4 paper size page. So I have to change the width or orientation of page (to landscape) while generating PDF file.

Please provide help.

Thank you in advance.


Steve
Telerik team
 answered on 24 Nov 2009
1 answer
100 views
Hi Buddies,

     I have a requirement where I want to call Wizard of Creating Labels runtime so that users itself can create labels as per their need.

Please reply with ur valuable suggestion

Ravi Keshwani
Steve
Telerik team
 answered on 24 Nov 2009
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?