Telerik Forums
Reporting Forum
8 answers
734 views
Hello,

We have an issue with one of our production systems, where we do not have a great deal of storage space on the primary drive of the server (Primary being C:\, where Windows lives). This causes issues, because we have functionality in place that can generate reports that are actually larger than we have disk space available. In an effort to fight this (without upgrading these servers), I was wondering if there was a way to tell Telerik Reporting use a different folder when it's creating the report? Alternatively, if we knew the size of the report, we could check to ensure that amount of space was available, but, I don't think we can determine the size of a file that hasn't yet been created, the best we could do would be a guestimate based off the amount of data.

Anyone else have an issue similar to this?

Any suggestions would be great!

Thanks,

Travis
Peter
Telerik team
 answered on 27 Jun 2013
3 answers
363 views
Hi,

I have put an HTMLTextBox on a report and inserted a hyperlink into it as follows:
 <a href="Visit'>http://www.w3schools.com/">Visit W3Schools</a>.

When I "Preview" the report the hyperlink works fine but when I switch to "Html Preview" the link just displays as blue underlined text and is not an active link. Also, the link doesn't work at all when I use the reportViewer control in a asp.net webforms web page.

I have tried this in VS2008 and VS2012 . I have also used .Net 3.5 and 4.0 . The Reporting version is Q1 2013 SP1

Is this an issue or am I just doing something wrong?

Thanks
Dan Rizzo
Stef
Telerik team
 answered on 27 Jun 2013
1 answer
210 views
I am running the following code:
and at this.TelSubRptLocations.Report = TelSubrpt; it throws the following error:
"Property or indexer Telerik.Reporting.ReportItemBase.Report cannot be assigned to -- it is read only.

so how do i get around this?
Telerik.Reporting.Report TelSubrpt = new TelSubRptContract();
((TelSubRptContract)TelSubrpt).UOM = "GAL";
((TelSubRptContract)TelSubrpt).RinsPrice = RinsPrice;
TelSubrpt.DataSource = dtLocations;
this.TelSubRptLocations.Report = TelSubrpt;
Squall
Top achievements
Rank 1
 answered on 27 Jun 2013
1 answer
155 views
If =fields.ContractedQty > 0 I want my value to show
txtQty.Value = Convert.ToDouble(txtQty.Value).ToString("###,###,##0") + " Gal"
if =fields.ContractedQty = 0 I want my value to show

txtQty.Value = Convert.ToDouble(txtQty.Value).ToString("###,###,##0") + " Gal (Optional Delv. Location)"
How can this be done.  I have tried txtQty.DocumentMapText but it is empty so that does not work.
Squall
Top achievements
Rank 1
 answered on 27 Jun 2013
2 answers
190 views
Hello,

I use Silverlight reports. I would like to change property Visible of report parameters "on fly" from Silverlight Report Viewer. For example in the method RenderBegin. Because on design time I do not know what parameters of report have I to display and what to hide.

In the MainPage.xaml.cs I am having:

private void reportViewer1_RenderBegin(object sender, Telerik.ReportViewer.Silverlight.RenderBeginEventArgs args)
{
    args.ParameterValues["StartDate"] = DateTime.Now.AddDays(x);

     // I would like someting like that
    args.ParameterValues["StartDate"].Visible = false;
}

How can I set property "Visible" of report parameters programmatically?

Thank you,
Andrew
Thomas
Top achievements
Rank 1
 answered on 27 Jun 2013
1 answer
599 views
Hello

My report table header includes two rows. Something like this:
row 1:  Column Name 1 |  Column Name 2 |  Column Name 3 |
row 2:                1          |          2                |               3           |
with data rows following that header.

When I set ColumnHeadersPrintOnEveryPage field of Telerik.Reporting.Table object to true, only the first row (row 1) is printed on every page. Can I include row 2 into table header to print both rows on every page?
Timur
Top achievements
Rank 1
 answered on 27 Jun 2013
1 answer
171 views

I have some reports embedded in an ASP.NET Razor View.

Everything works perfectly on my dev box, but as soon as I deploy to live I get the following error:

Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper'.;

I’ve checked the versioning in the web.config, and it is using the web.config, and I have reinstalled the telerik reporting on the server, but to no avail.

The controller is:

public ActionResult Dashboard(int id)
        {
            var instanceReportSource = new Telerik.Reporting.InstanceReportSource();
            instanceReportSource.Parameters.Add(new Telerik.Reporting.Parameter() { Name = "BidId", Value = id });
            instanceReportSource.ReportDocument = new BidSummary();
            return View(instanceReportSource);
        }

And the view is

<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Telerik.Reporting.InstanceReportSource>" %>
<%@ Import Namespace="BidGovernance.Reports" %>
<%@ Register assembly="Telerik.ReportViewer.WebForms, Version=7.0.13.521, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerik" %>
<%@ Register assembly="Telerik.Reporting, Version=7.0.13.521, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.Reporting" tagprefix="telerik" %>
<!DOCTYPE html>
<html>
<head runat="server">
    <meta name="viewport" content="width=device-width" />
    <title>Dashboard</title>
</head>
<body>
    <div>
        <form id="form1" runat="server">
        <telerik:ReportViewer ID="ReportViewer1" runat="server"  Width="100%" Height="800px"></telerik:ReportViewer>
    <div>
        <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);
             //Telerik.Reporting.ObjectDataSource data = new Telerik.Reporting.ObjectDataSource();
             //data.DataSource = Model;
             //Telerik.Reporting.Report report = new Telerik.Reporting.Report();
             //report.DataSource = data;
             //     var instanceReportSource = new Telerik.Reporting.InstanceReportSource();
            //     instanceReportSource.ReportDocument = report;
             //     instanceReportSource.ReportDocument = new DSTest();
                  ReportViewer1.ReportSource = Model;
              }
       </script>
         
    </div>
            </form>
    </div>
</body>
</html>

Please help.

Eddie
Squall
Top achievements
Rank 1
 answered on 26 Jun 2013
4 answers
232 views
Hello Friends,

This is my first post...apologies if posting at the wrong place.

We have a .Net Silverlight application and a Telerik Report (used Telerik Q2 2012 to develop the report).

The SQL SP returns the results and report displays results in 2 pages as data cannot be fitted into one single page.(lets say 60 rows in total)

Now we want to show like say 20 rows in page 1 and rest 40 rows in page2.
How to achieve this...could someone please advise? 

Thanks in advance.
ShivaatT
Top achievements
Rank 1
 answered on 24 Jun 2013
1 answer
132 views
In our reports we are using some custom fonts. To have correct outlook of exported PDF we are embedding these fonts into PDF.
However some of our clients needs the functionality to edit these documents later without installed font on machine and with embedded fonts they are loosing signs of these fonts.
I know that some engines provide functionalities to convert font to outlines when exporitng to PDF. The question is, if Telerik Reporting can do that? If yes, can You provide any simple example?

Thanks in advance
Stef
Telerik team
 answered on 24 Jun 2013
1 answer
132 views

i have created a reportserver. This allows to display several independant reports in the browser.
The initial reportparameters are filled in with values from the url
but those parameters can be changed.
when i export the second render result (with different parameter values) to pdf in the code behind, it always saves the document with the initial report parameters.
when i use the export function from the reportviewer, it is correct

Dim succesful As Boolean = False

try

 Dim reportProcessor As New Processing.ReportProcessor()

 Dim instanceReportSource As New InstanceReportSource()

 instanceReportSource = ReportSelection(true)

 Dim result As Processing.RenderingResult = reportProcessor.RenderReport("PDF", instanceReportSource, deviceInfo)

 Dim fileName As String '= result.DocumentName + "." + result.Extension

 Dim directoryPath As String = servername.MapPath("../docs/")

 

 Dim contextDirectory As New DirectoryInfo(directoryPath)

 If contextDirectory.Exists Then

 Else

 contextDirectory.Create()
end If

 Using fs As New System.IO.FileStream(directoryPath & fileName, System.IO.FileMode.Create)

 fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length)

 fs.Close()

 

end Using


any suggestions?

 

 

 

Stef
Telerik team
 answered on 24 Jun 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?